Hello ; I delved deeper into the
xwin code , and maybe the described loop by me and 01micko could have been left with code like this :
Code: Select all
@@ -537,6 +537,19 @@
echo -n "false" > /etc/.XLOADED #see note above.
#...if PC hung, run xorgwizard at next bootup (see further up).
+fatalServerError=`grep -i 'Fatal server error' /tmp/xerrs.log`
+if [ "$fatalServerError" ] ; then
+echo -e "\e[1;31m"'To start the Xserver='"$HAVEX"' apparently failed !'"\e[0;39m"
+echo -e "\e[0;31m"'Now dumping the first 10 and last 6 lines of /tmp/xerrs.log :'"\e[0;39m"
+head -n 10 /tmp/xerrs.log
+echo -e "\e[0;33m"'-------------------------'"\e[0;39m"
+tail -n 6 /tmp/xerrs.log
+echo -e "\e[0;33m"'-------------------------'"\e[0;39m"
+[ "$HAVEX" = "Xorg" ] && echo "For more information , type 'mp /var/log/Xorg.0.log'"
+echo -n 'exit' > /tmp/wmexitmode.txt
+rm -f /tmp/videomode ##edit changed '-r' to '-f' :Ooops:
+fi
+
Not sure about the right grep syntax for 'Fatal server error' at the moment , though .
[edit]
For the Puppy-43 xorg-server 1-3-0 it looks like that :
Code: Select all
grep -i -A1 'Fatal server error' xerrs.Xnvidia.log
Fatal server error:
No matching cards found!
There is another syntax for the second line with something like
"Failed to map the device" ; but to check this I have to boot another kernel with maybe different drivers loaded .
I have a
vendor: NVIDIA Corporation
product: NV18 Board Chip Rev A2
card and "Xorg (1-3-0,1-7-X,1-11-X)" and the "Xchips" and "Xvesa" (1-3-0) do run it , but not "Xnvidia" and almost all other kdrives [ with or without the appropriate vendorFramebuffer.ko 's inserted ] .
Funny , choosing 'chips' as Xorg driver , did start 'X' with max resolution (1600x1200) as the ^Lupu Xorg boot directly to desktop^ did - with the whole device section missing in xorg.conf . Racy Xorg or xorgwizard gives me 1024x768 in PUPMODE=5 .
That's it for now .
[/edit]
________________________________________
Another [ unproblematic ] occurrence is , that if
echo $LANG
de_DE@euro
is given ,
dc returns numbers like 123
,456
comma instead of a dot for floats !
There are quite some scripts , that use "
cut -f X -d '.'" to format the output of the 'dc' command to be useable for the 'expr' command ; example from /tmp/xerrs.log :
expr: non-numeric argument
/usr/sbin/background_reshape: line 56: [: -ge: unary operator expected
could need a
LANG=C to prevent this .
"grep 'dc ' /usr/sbin/* | grep 'cut'" in /usr/*/*[/*] and /etc/*/*
did not throw much and the scripts that show additionally have already LANG=C set . So background_reshape may be [ one of ] the last leftovers , that did not get updated for that until now .
Anyway , reading
grep LANG=C /usr/sbin/re*
/usr/sbin/remasterpup2:LANG=C #faster, plus Xdialog happier.
may be the solution for the Xdialog warnings described in one of my former posts :
I recompiled Xdialog from debian lenny , because there is no Xdialog for later debians , including the patch on my machine "uname -m 'i686'" with "./configure --with-gtk2" which installs to /usr/local and the Xdialog of bootmanager is working correctly now . The size of the binary is still 'ls -s 69KB" .
The only thing is
"(Xdialog:26076): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()"
that spits out .