Xorg Wizard test screen improved

I have fixed the Xorg Wizard so that when the test screen displays, it is not required to press CTRL-ALT-BACKSPACE anymore to terminate the test. Wow, this has been a problem ever since Puppy first started using Xorg, and now appears to be solved.

I enabled CTRL-ALT-BACKSPACE in xorg.conf, but when I typed that combination in the test window, my computer hung. This is something new. So, on my laptop I had no way of exiting from the test screen back to the Wizard. Something had to be done...

The thing is, we haven't had these hanging problems quite so much when exiting from the desktop. When Xorg is started from the /usr/bin/xwin script, the 'xinit' application is used to launch Xorg. xinit is also responsible for terminating X, and does so in such a way that we fairly reliably get back to the text mode screen.

So, I implemented something that has been in the back of my mind for ages. The xorgwizard script now has this simple one-liner to test X:

xinit /usr/sbin/xinitrc_test -- /usr/bin/Xorg :0

Where the 'xinitrc_test' script has code to read the video frequency parameters and display a message using 'xmessage'. Exiting from 'xmessage' then terminates 'xinitrc_test', then 'xinit' closes down X. 'xmessage' can be terminated either by clicking on the 'OK' button, or just pressing the ENTER key -- yes, keyboard exit without having to type CTRL-ALT-BACKSPACE. Works like a charm!


Posted on 13 Apr 2009, 21:04


Comments:

Posted on 14 Apr 2009, 6:21 by Raffy
Xdialog in remaster
That's good to hear. :)

May I also mention that the Puppy remaster script fails with an Xdialog error, just after choosing the working partition. This happens only in the netbooks.