Other Help Topics :: Power down the system with the power button



I want to use my mini linux system without the keyboard and the mouse, so i need to power down it simply pressing the power button. I want also that the screen don't enter in standby mode after a few minutes. It's possible ?
I think you can use the xset command to avoid screen blanking, you could try this (not quite sure if it's correct): xset s 0
I guess that if your PC is acpi compatible, you could load the acpi modules, load acpid and then use the acpid powerbutton event to run a script.

I don't know where it is, but you could probably call the same script that is called by right clicking on the desktop and chosing "shutdown"

My pc is acpi compatible, but i don't know how can i set these information.
At the moment i put in .xintrc file the xset 0 command ... but i think there's a more useful way to do that.

How can i disable the screensaver definitively and set the powerdown button the shootdown script ?

I guess the first step would be to verify that your system will work with acpi.

Note that you may need to add "apm=off" and/or "acpi=force" to your syslinux.cfg file to encourage DSL to work with acpi.

Once booted, try to "modprobe" the acpi modules "thermal", "processor", "fan", "button", "battery" & "ac".

If the above works, then try "apt-get install acpid"

If all of the above works, you should be in good shape to have acpid detect a "button" event and run the powerdown script of your choice.

The /share/doc/acpid readme files or the /share/man/acpid files installed with acpid may give some explanation on how to set-up acpi events/scripts. If not, you could try a Google search on acpid and the name of your laptop - in my case this gave several links to explanations on how various people set up their system to work with acpi.

Next Page...
original here.