Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When resuming from suspended state...
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
gr0x0rd
Guru
Guru


Joined: 12 Aug 2006
Posts: 311

PostPosted: Wed Dec 22, 2010 3:08 am    Post subject: When resuming from suspended state... Reply with quote

I've spent the last few hours trying to sort out my suspend/hibernate issues on my laptop. I have almost everything sorted except for a few things. I'm using pm-suspend to enter sleep state.

The first is, whenever I suspend my machine (via xfce4-power-manager or /etc/acpi/default.sh) it doesn't wake up when I open the lid- I have to press the power button or mash the key pad for it to wake. Is it possible to get the system to resume once it detects an "open" lid switch event once it is in sleep mode?

The second is, whenever I resume from sleep mode, my backlight is set to 50%, regardless of what it was set to before. This seems like it must be hard-coded somewhere in the wakeup process. Where would I find such a setting? Is it possible to simply restore the backlight to its previous state?

Thanks in advance for any help.
_________________
~g
emerge -FML...
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Wed Dec 22, 2010 9:12 am    Post subject: Reply with quote

As for the wakeup events: to the best of my knowledge, this is more or less hardwired and out of control of the operating system which is completely inactive during suspend. There might be some level of control through the BIOS setup, your best shot is to check your options there.

As for the brightness: this is likely controlled by ACPI. However, if you find some way to read and set the brightness from userspace (e.g., on my thinkpad, I can do that via /proc/acpi/ibm/brightness), you could write a script that reads it prior to suspend and resets upon resuming. If you are using hibernate-script, you can hook this up nicely into the suspend process.
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