LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Doesn't suspend when lid is closed in 13.37 (https://www.linuxquestions.org/questions/slackware-14/doesnt-suspend-when-lid-is-closed-in-13-37-a-881192/)

enine 05-17-2011 07:34 AM

Doesn't suspend when lid is closed in 13.37
 
In 13.1 I had my laptop set to suspend when the lid is closed and have installed 13.37 now and even though its set to suspend when lid is closed it never does. I am in the power group and if I click on the battery in and choose suspend it will so I have to suspend manually.

vbisis 05-18-2011 03:17 AM

I had the same problem, you have to edit /etc/acpi/acpi_handler.sh like that:
Quote:

#!/bin/sh
# Default acpi script that takes an entry for all actions

IFS=${IFS}/
set $@

case "$1" in
button)
case "$2" in
power) /sbin/init 0
;;
lid) pm-suspend
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*)
logger "ACPI group $1 / action $2 is not defined"
;;
esac

enine 05-18-2011 08:04 PM

Thank you, that was it wonder how it got missed in 13.37.

The_Avatar 05-24-2011 09:20 PM

Quote:

Originally Posted by vbisis (Post 4359652)
I had the same problem, you have to edit /etc/acpi/acpi_handler.sh like that:

Unfortunately it creates a new issue. After editing the file, I'm not able to setup power manager to only block the screen when the netbook is on AC power. It suspends no matter whether I set power devil to block screen or not.

vbisis 05-25-2011 02:30 AM

Have a look at /var/log/messages to find out what acpi-event is triggered. Then you can edit the file to fit your needs.


All times are GMT -5. The time now is 11:27 PM.