LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apm and acpi (https://www.linuxquestions.org/questions/linux-software-2/apm-and-acpi-40787/)

boicraig 01-08-2003 09:57 PM

apm and acpi
 
On my laptop, in linux, my power button turns off the system without shutting down linux. is there any way to have it send the shutdown command to linux when pressed? my computer is acpi complaint and is running the apm demon.

craig

mcleodnine 01-08-2003 10:06 PM

You'll need to use ACPI instead of APM. You will need kernel suppoort for ACPI which is pretty starighforward (rebuild kernel with acpi modules). You can use the ospm_ modules and a script to interpret the different ospm events (power button, closed lid switch) and act upon them as you choose.


All times are GMT -5. The time now is 06:28 PM.