You are not logged in.
Hi everyone
I am in the process of setting up Arch on my new HP Elitebook 840 G1 and I am kind of lost when it comes to suspend and resume.
After a basic arch install (base system + xorg + lightdm + xmonad) "suspend" worked. When I close the lid the system is somehow halted; music stops playing etc. When I open the lid again nothing happens. I have to press the power button to "resume" the system.
Not being satisfied with this (I want it to resume when the lid is opened), I searched a bit for "arch resume lid open" and found people talking about /etc/acpi/handler.sh which is used by the acpid daemeon which comes with the acpid package.
The output of acpi_listen for a lid close followed by lid open is:
$ acpi_listen
button/lid LID close
PNP0C14:00 00000080 00000000
button/lid LID open
thermal_zone LNXTHERM:00 00000081 00000000
ac_adapter ACPI0003:00 00000080 00000000
processor LNXCPU:00 00000081 00000000
processor LNXCPU:01 00000081 00000000
processor LNXCPU:02 00000081 00000000
processor LNXCPU:03 00000081 00000000
thermal_zone LNXTHERM:01 00000081 00000000
thermal_zone LNXTHERM:04 00000081 00000000
battery PNP0C0A:00 00000080 00000001
battery PNP0C0A:00 00000080 00000001
The "button/lid LID open" event is printed once I open the lid AND press the power button.
/etc/acpi/handler.sh looks like this for the button/lid event:
button/lid)
case "$3" in
close)
logger 'LID closed'
;;
open)
logger 'LID opened'
;;
*)
logger "ACPI action undefined: $3"
;;
esac
;;
Where should I start digging to find out why pressing the powwer button is necessary to get the "lid/button open" event?
And what is causing this / whose responsibility is it to fire this event; kernel, bios/UEFI or?
To summarize: I want my laptop to resume on lid open, right now (with or without acpid installed) I need to press the power button to resume/wake.
Thank you for your iput!
/ Jonas
Last edited by jonascj (2014-05-20 19:49:07)
Offline
It turns out the laptop have an bios / UEFI option for this:
BIOS Setup / UEFI >> Advanced >> Built-in deice options >> Wake unit from sleep when lid is opened
After selecting (enabling) this feature the "button/lid open" even is now fired when the lid is opened. The default action for lid open is, according to the above paste, to do nothing but log "LID opened", but the display turns on and takes me right back to where I were before I closed the lid. I have no screen lock in place yet, but once I get to that I suspect it will take me to the screen lock / login screen.
Sorry for not checking this before posting. Typing "bios" in my last reply made me check.
Offline