Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hibernate when closing laptop lid (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
IMELucky
n00b
n00b


Joined: 11 Sep 2005
Posts: 21

PostPosted: Tue Mar 21, 2006 8:13 pm    Post subject: hibernate when closing laptop lid (SOLVED) Reply with quote

Hi everybody!
I just installed Gentoo on a HP Compaq nc6230 and I'm almost done with configuring the system to exactly the way I want it :-)
There's just one thing that I can't figure out how to do:

How do I make the computer suspend to disk when I close the laptop lid?

FYI:
I have correclty setup Software Suspend Version 2 and if works great when I call it from the terminal
I'm using the Vanilla Sources
ACPI is installed, but it only has the default script in it (Does portage have any scripts that I can simply emerge?)


Last edited by IMELucky on Wed Mar 22, 2006 1:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
chrismortimore
l33t
l33t


Joined: 03 Dec 2005
Posts: 721
Location: Edinburgh, UK

PostPosted: Tue Mar 21, 2006 8:15 pm    Post subject: Reply with quote

Just write your own ACPI script (or mod default.sh), its quite easy. The lid switch event is button/lid.*
_________________
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB 7200rpm Maxtor DiamondMax 10, 2x320GB WD 7200rpm Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Mar 21, 2006 8:16 pm    Post subject: Reply with quote

Something like this should work.
_________________
KDE
Back to top
View user's profile Send private message
IMELucky
n00b
n00b


Joined: 11 Sep 2005
Posts: 21

PostPosted: Tue Mar 21, 2006 10:22 pm    Post subject: Solved Reply with quote

That did it...Thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum