121
problemi e soluzioni / Re: Risolvere Bug XServer una volta per tutte !!
« il: Febbraio 17, 2012, 07:33:25 pm »sul forum americano ho trovato questi suggerimenti:
modifica il file menu.lst in /boot/grub/
ed aggiungi dopo vga=normal pfix=fsck
modifica il file /etc/rc.d/rclocal aggiungendo:
echo -n "false" > /etc/.XLOADED
modifica il file xwin aprendolo come testo posto in /usr/bin/ aggiungendo exec xwin
#v1.0.7 J_Reys idea (see note further down)...
if [ -f /etc/.XLOADED ];then
if [ "`cat /etc/.XLOADED`" = "true" ];then
#last time X ran, PC hung and had to be rebooted, or wasnt shut down properly
dialog --yes-label "Start Normally" --no-label "Recovery Console" --yesno "Last time the computer was on, it didnt shut down properly. This could be because it wasnt shutdown properly from the icon on the desktop or the start button, or possibly (though unlikely) that it has developed a fault. Just press [Enter] to start normally (recommended), or the other option to go to the repair console. Remember to always shut down the computer properly when you have finished using it." 0 0
if [ $? = 0 ]; then
rm /etc/.XLOADED
exec xwin
else
echo -en "\\033[1;31m" #34=blue, 33=yellow, 32=green, 31=red, 35=purple, 36=aquablue, 38=black.
echo '
Have now dropped down to the commandline. If you want to run the Xorg
Video Wizard, type "xorgwizard" and press [enter]. After setting up the graphics again,
type "xwin" to start X.'
echo -e "\\033[0;39m"
rm -f /etc/.XLOADED #otherwise cannot start X.
exit
fi
fi
fi
e cambia i valori
dialog --yes-label
in
dialog --timeout 5 --yes-label
if [ $? = 0 ]; then
in
if [ $? -ne 1 ]; then
bene,ho provato a fare le modifiche su 2 notebook,1 con LuPu5.2.5 ed 1 con Puppy4.3.1,e senza le batterie ho tolto lo spinotto.Però al riavvio il boot si ferma col classico #.Digitando xwin i pc partono regolarmente.Da quel che ho capito il tutto dovrebbe essere eseguito in automatico con la stringa exec xwin,o sbaglio?
funziona perfettamente nell'installazione frugale
