Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-24-2007, 01:08 PM   #1
Registered: Jul 2007
Posts: 70

Rep: Reputation: 15
ACPI events

Hi all.

I have HP-Compaq 6710s laptop

wWho can advice any acpi scripts for slackware to supend it via s2ram (uswsusp) when the lid is closed, switch governors when adapter is present|is not present, etc...

I looked at ubuntu scripts, but they seem to be ubuntu-specific.
Old 10-24-2007, 01:18 PM   #2
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,015

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Here is what I have for s2ram on lid close.
Note that I've also got a custom modification to my rc.S and rc.6 scripts to remove/create /etc/powerdown file when halt/reboot occurs - I'm impatient, and I often shutdown the system and immediately close the lid. This ugly hack prevents that from occurring. :-)

root@liberty:~# cat /etc/acpi/events/lid 
action=/etc/acpi/actions/ %e
root@liberty:~# cat /etc/acpi/actions/ 

# Suspend to ram when the lid is closed

# First, let's make sure we're not shutting down or rebooting
if [ ! -e /etc/powerdown ]; then
  sync ; sync # Just in case...
  echo -n mem > /sys/power/state


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
acpi actions don't trigger events xnomad Linux - Software 0 04-30-2007 10:03 PM
No ACPI battery events on HP compaq nx9000 (kernel 2.6.14-suspend2-r7) wookie2 Linux - Laptop and Netbook 5 01-12-2006 08:08 PM
no gnome sound events, mtrr overlaps, acpi sleep resume Markup Linux - Software 2 07-27-2005 05:19 AM
Question on creating ACPI events... sephkeene Linux - Laptop and Netbook 0 08-27-2004 01:15 AM
acpi events? raven Linux - Laptop and Netbook 2 10-12-2003 02:23 PM

All times are GMT -5. The time now is 10:54 AM.

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