Inhaltsverzeichnis

Quelle1)

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

 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

 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 /sbin/fastshutdown.sh --ask

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