WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Xorg and touchscreen  (Read 10176 times)

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Xorg and touchscreen
« Reply #15 on: July 05, 2010, 06:01:46 PM »
I believe the X server configuration is controlled by '/usr/bin/xsetup.sh'. This contains the line XCOMMAND="$XSERVER -nolisten tcp &" (which controls the 'Xorg' parameters). Adding your option to that line should do the trick.

For the problem to ensure persistence I see two ways:
  • via backup (e.g. echo 'usr/bin/xsetup.sh' >> /opt/.filetool.lst && /etc/init.d/tc-restore.sh backup), or
  • via remastering of the initrd (see the Wiki)
Whether the first option will work depends on the timely restoration of the changed file from the backup. I believe that 'xsetup.sh' gets called "late" enough during start-up so that it should work. If my assumption is wrong you still have the second option, which is sure to succeed.

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #16 on: July 06, 2010, 03:36:24 AM »
I've modified xsetup.sh and it create a ~/.xsession with "/usr/local/bin/Xorg -retro -nolisten tcp &".
However if I launch startx I obtain a black screen and it is not possible to give more command (even CAPS LOCK doesn't turn on/off the relative keyboard led...)

Even if I launch only .xsession I obtain the black screen. On the other side, the only "/usr/local/bin/Xorg -retro -nolisten tcp &" from prompt works.

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #17 on: July 06, 2010, 03:53:55 AM »
I suppose the problem is that I run out of memory. Is it possible?

In fact if I launch manually Xorg, then flwm_topside, then wbar, when I try to set a background Linux kill Xorg because there is no free memory.

If I don't set a background, but use aterm, the system freezes itself.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Xorg and touchscreen
« Reply #18 on: July 06, 2010, 04:34:15 AM »
How much ram is there? Any swap?
The only barriers that can stop you are the ones you create yourself.

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #19 on: July 06, 2010, 05:00:43 AM »
I've got 128MB of RAM.
On boot 58MB is free. So I've decided for no swap.
After I install Xorg and its dependeces I've got only 9MB free  :(

How can I save RAM? Hybrid mode? If I understand correctly, this mode will not mount file in a loopback file and so I save RAM, is it right?

Other solutions?


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Xorg and touchscreen
« Reply #20 on: July 06, 2010, 05:16:33 AM »
If you're going with no swap, the 3.x series is better at that due to ramzswap. Otherwise, yeah PPI would help.
The only barriers that can stop you are the ones you create yourself.

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #21 on: July 06, 2010, 05:58:33 AM »
I've tried to boot with local=hda2.
It seems great. When I load Xorg, TC put it on my disk, and I save RAM.

However, when I launch Xorg, it returns immediately, with no output neither a /var/log/Xorg.0.log file

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #22 on: July 06, 2010, 06:32:43 AM »
I suppose that not all the components of Xorg go in /usr/local.

Which is the right way to use PPI? where can I find documentation?

Thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Xorg and touchscreen
« Reply #23 on: July 06, 2010, 07:04:08 AM »
Docs on PPI/hybrid mode are a bit scarce. Core Concepts is the main doc.

startx filters errors out, anything if you launch Xorg manually?
The only barriers that can stop you are the ones you create yourself.

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #24 on: July 06, 2010, 08:34:42 AM »
There's no message if I launch Xorg manually

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #25 on: July 06, 2010, 09:07:42 AM »
As you can guess I've got low hardware resources. My HD is in fact a Disk OnModule of 64 MB. When I install Xorg with "tce-load -i Xorg-7.4" I have a "Xorg-7.4.tcz: OK".
If I do a ll of /usr/local/bin then I see that I have a lot of file with 0 byte length.

So, now I'll try to find a DOM of 256 MB.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Xorg and touchscreen
« Reply #26 on: July 06, 2010, 10:35:50 AM »
I think it would be cheaper to use the normal tcz mode, and double the ram.
The only barriers that can stop you are the ones you create yourself.

Offline asclepix

  • Newbie
  • *
  • Posts: 19
Re: Xorg and touchscreen
« Reply #27 on: July 06, 2010, 11:32:11 AM »
I don't know, but I have problem to find RAM while we have some 256MB DOM.

Now I've rebuilt everything with such a DOM. I have not understood why, but I have more free memory.

I've installed input-2.6.29.1-tinycore and Xorg-7.4 manually (before input-2.6.29.1-tinycore was installed on boot).
I have enough memory for run Xorg -retro (manually, not with startx), flwm_topside, wbar and setting a little image as background.

Then I've seen I have more than 40MB of free RAM, so I've installed xvkbd and qt-3.3.8b, because my software need that library. I am now able to test my software with touchscreen  :D :D

Ok, When I poweroff the machine every go away, but I now know it can work. I'll make it working automatically.

Thank you for your support.

Do you know why I have so many more free memory changing only the DOM?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Xorg and touchscreen
« Reply #28 on: July 06, 2010, 11:35:32 AM »
No, no idea :)
The only barriers that can stop you are the ones you create yourself.