Xorg automatic detection
March 28, 2011 —
BarryK
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!
Comments
Xorg with VIA videoUsername: L18L
That's good news. So I am hoping [url=http://murga-linux.com/puppy/viewtopic.php?t=53292]my problem with very cheap low power mini-ITX board VIA VB7002 will be solved.
Serial mouse fix
Username: BarryK
"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.
'inputserialdetect'
Username: technosaurus
"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)
puppyserialdetect
Username: BarryK
"Now I recall, we have Jesses 'puppyserialdetect' executable in all puppies for sometime. Source: http://bkhome.org/sources/alphabetical/p/
Xorg automatic detection
Username: ttuuxxx
"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
Tags: woof