Translations of this page:

Remove the Shutdown Dialog Box

Some people find the shutdown dialog box annoying. You can change the behaviour so that hitting the power button turns off the EEE without the dialog box. This is for for easy mode only.

Easy Mode

  • Open a terminal (Ctrl+Alt+t) and type:
 sudo su
 cd /opt/xandros/bin
 mv shutdown_dialog shutdown_dialog.backup
 echo -e '#!/bin/bash\nsudo /sbin/fastshutdown.sh' > shutdown_dialog
 chmod +x shutdown_dialog
 exit

Undoing this

  • Open a terminal and type:
 sudo su
 cd /opt/xandros/bin
 mv shutdown_dialog.backup shutdown_dialog
 exit

How this works

Pressing the power button runs a script called /etc/acpi/powerbtn.sh This script then calls the shutdown_dialog file. Initially this file is the annoying dialog box, but we have changed it to run a script called /sbin/fastshutdown.sh This script kills the processes and shuts down the EEE.

Alternative Options

If you would like an easier confirmation box, that asks “Are You Sure?”, then (this assumes you have done the steps above):

  • sudo kwrite /opt/xandros/bin/shutdown_dialog
  • Edit the 2nd line to:
 sudo /sbin/fastshutdown.sh --ask
  • Save (Ctrl+s) and Exit (Ctrl+q)

The general consensus seems to be the fastshutdown.sh script is the best way to shut down. However, some people are happy with editing /etc/acpi/powerbtn.sh to just say:

 #!/bin/sh
 /bin/kill -SIGUSR2 1

Another Alternative - Two presses to shutdown

If you want the Standby / Restart / Shut Down options but don't want the hassle of the “Sure you want to proceed” dialog, add the following lines after the # comments in the /etc/acpi/powerbtn.sh script.

if ps -Af | grep '[s]hutdown_dialog'
then
        killall shutdown_dialog
        sync
        /sbin/fastshutdown.sh
fi

The first press of the power button will bring up the normal options, but a second press will shut down fully.

See also Close lid to shut down instead of suspend

 
howto/fastshutdown.txt · Last modified: 2008/06/03 23:35 by sal-e
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
This website is no longer under a Creative Commons license.
All rights are reserved by Eeeuser.com and each individual author
If you want to reproduce content, all individual contributers must be identified and you must seek permission from Eeeuser.com