Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 06:08
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Phoenix CE - Automatic restart of X windows after "crash"
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Wed 31 Oct 2007, 19:23    Post subject:  Phoenix CE - Automatic restart of X windows after "crash"
Subject description: Should this feature be included in puppy, and how?
 

Hi all

I know this has been brought up many times on the forum by new users. When using puppy in the cybercafe with pre 2.15ce versions (which has this feature by default) this used to cause more problems than anything else. I was surprised when I first (re) booted 3.00 that it hadnt made it into the mainstream distro release as yet.

Basically the theory goes, if x crashes (or more frequently, the inexperienced user does not restart/shutdown the computer properly) currently puppy dumps you unexpectedly at a black screen full of (to a new linux user) unintelligible writing. Surely this can be handled more gracefully? The theory of handling the user interface of this feature would be to

1. Explain what happened
2. explain what could have caused it
3. suggest possible solutions (just restart x, drop to the command line or edit xorg.conf)

There are already discussions and fixes to this problem here and here

_________________
Puppy Linux's Mission

Sorry, my server is down atm!

Last edited by ecomoney on Mon 11 Feb 2008, 11:22; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Wed 31 Oct 2007, 22:43    Post subject:  

I like the fix in the second post which is basically what was in 2.15CE it really is a good feature for noobs

Code:
#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 --timeout 5 --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 [ $? -ne 1 ]; then
  #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

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Mon 11 Feb 2008, 11:25    Post subject: 2.14r base  

with the new puppy 2.14r base from Dougal and Pakt, this feature is already implemented!

something that does cause problems though (and Ive noticed this with 2.15ce as well) is that if the ethernet cable is unplugged then the word "getting I.P. Address from eth0) is displayed along the bottom of the message, obscuring the "continue" or "recovery console" buttons. Just a little bug, but it could cause confusion when, say the user moves the computer and has to disconnect the cables.

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0878s ][ Queries: 11 (0.0447s) ][ GZIP on ]