LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-17-2011, 07:34 AM   #1
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 807
Blog Entries: 3

Rep: Reputation: 90
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.
 
Old 05-18-2011, 03:17 AM   #2
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
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
 
1 members found this post helpful.
Old 05-18-2011, 08:04 PM   #3
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 807
Blog Entries: 3

Original Poster
Rep: Reputation: 90
Thank you, that was it wonder how it got missed in 13.37.
 
Old 05-24-2011, 09:20 PM   #4
The_Avatar
LQ Newbie
 
Registered: Dec 2003
Location: Brazil
Distribution: Slackware 9.1
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by vbisis View Post
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.
 
Old 05-25-2011, 02:30 AM   #5
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no audio when lid closed. GordonShumway Linux - Laptop and Netbook 5 04-29-2009 01:47 AM
Standby on laptop when lid closed LDJ Linux - Newbie 5 01-16-2007 06:08 PM
Closed lid = KDE lockup Steven_Shelton Linux - Laptop and Netbook 2 08-29-2006 04:05 AM
laptop lid won't shut off when closed houler Slackware 32 08-27-2005 11:59 PM
Will not startup after lid is closed WindowsVeteran Linux - Laptop and Netbook 1 03-24-2004 08:59 PM


All times are GMT -5. The time now is 07:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration