LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
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
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration