Xorg automatic detection

As Xorg 7.5 has automatic detection and can even run without file /etc/X11/xorg.conf, I have added automatic detection into Woof.

The bootup sequence is /etc/rc.sysinit passes control to /etc/profile, then to /usr/bin/xwin, which on the first boot (or a video hardware change detected) calls /usr/sbin/xorgwizard.

Now however, xwin tests for xorg-server >= 1.7.x and if true then calls /usr/sbin/xorgwizard-automatic, otherwise calls /usr/sbin/xorgwizard.

xorgwizard-automatic reads a skeleton /etc/X11/xorg.conf-auto-pc and fleshes it out a bit and creates xorg.conf. So, there will be a xorg.conf to guide X as it starts.

This will be in the next release of Quirky. It is highly likely that xorgwizard-automatic will have some issues, that we can resolve.

One issue that I am aware of is a serial mouse will not work. The user will have to run the full xorgwizard.
Note, we gave up on automatic detection of a serial mouse a long time ago -- forum member Jesse developed a utility to do it -- if my memory serves me correctly, it was called 'inputserialdetect'. But, I think that it had issues, including not being 100% correct and slow, even hanging maybe -- again, this is only what I remember.

But, I just had a thought -- we do have a utility that returns mouse pointer coordinates -- if that does not change after X startup, we could assume mouse not working --yes, I'm onto it!


Posted on 28 Mar 2011, 16:34


Comments:

Posted on 28 Mar 2011, 18:19 by L18L
Xorg with VIA video
That's good news.
So I am hoping my problem with very cheap low power mini-ITX board VIA VB7002 will be solved.



Posted on 28 Mar 2011, 21:42 by BarryK
Serial mouse fix
Ok, I have implemented a fix for a serial mouse. As Woof is now going straight into X at first startup, if the mouse doesn't work, you are in trouble.

So, in /usr/sbin/delayedrun, if PUPMODE=5 (first boot, or boot with "pfix=ram"), if the mouse pointer has not moved after 7 seconds of X being launched, then a text-mode dialog box pops up that enables to choose between USB, PS/2 or serial mouse, then optionally restart X -- usable by keyboard only.



Posted on 28 Mar 2011, 22:52 by technosaurus
'inputserialdetect'
I have made some changes to 'inputserialdetect' and started a patch to add it to busybox. I just removed some superfluous code and replaced printfs with writes. I could probably cut it down even more if you have a specific use case (such as you only need to know usb/ps2/serial and not all of the other random data).

I have done quite a few patches to busybox to add initrd programs as applets, including e2fsprogs-full-old, cddetect, fuse, replaced waitmax with busybox timeout applet and use busybox new rev applet (although many places that rev was used, I replaced the whole line with a substring manipulation) ... let me know if you want any extra applets added to busybox for your initrd - I have already started on most of the binaries in woof's initrd (except ntfs3g - the code is just too scattered)


Posted on 29 Mar 2011, 9:28 by BarryK
puppyserialdetect
Now I recall, we have Jesses 'puppyserialdetect' executable in all puppies for sometime.

Source:
http://bkhome.org/sources/alphabetical/p/



Posted on 30 Mar 2011, 5:06 by technosaurus
puppyserialdetect
the program itself runs in .00 seconds regardless of options according to "time", so I would imagine that parsing the output is what takes so long. If a different output is desirable, I can hack it into submission for you.


Posted on 30 Mar 2011, 7:00 by ttuuxxx
Xorg automatic detection
Hi Barry could you maybe make a pet with the extra files included, It would make it easier to adapt into other earlier puppies.
ttuuxxx