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

  • 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

 
Nach oben
eeepc/fastshutdown.txt · Zuletzt geändert: 2024/02/29 13:36 von 127.0.0.1
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp