Making suspend on lid-close work with Arch Linux on the HP Chromebook 11
The more time that I spend using Arch Linux on my HP Chromebook 11, the more things I find to tweak and tinker with (like getting a proper editor working with Zed).
The latest thing I’ve addressed is making suspend work when the lid is closed. After speaking to my resident Arch guru about it, he pointed me to a blog post that he wrote on the subject, before actually showing me how to make it work.
The steps for what I wanted to achieve are actually a bit different to his guide, so I’ll summarise them here:
Install acpid and pm-utils
$ sudo pacman -S acpid pm-utils
Edit /etc/acpi/handler.sh
$ nano /etc/acpi/handler.sh
Find the button/lid case
button/lid)
case "$3" in
close)
logger 'LID closed'
;;
open)
logger 'LID opened'
;;
*)
logger "ACPI action undefined: $3"
;;
esac
;;
Add the pm-suspend command inside the close case
button/lid)
case "$3" in
close)
logger 'LID closed'
pm-suspend
;;
open)
logger 'LID opened'
;;
*)
logger "ACPI action undefined: $3"
;;
esac
;;
And there you go. For this to work straight away you’ll need to restart the acpi service:
$ systemctl restart acpid
And that’s it. Now when you close the lid, you should see that the lights on the back turn off, so you can tell it has suspended. To make this permanent you’ll need to enable acpid on boot:
$ systemctl enable acpid
Related posts
- Installing Arch Linux ARM on the HP Chromebook 11
I concluded in my previous post about the HP Chromebook 11 that it’s a good device for casually browsing the internet, but it’s no replacement for a regular laptop or desktop for getting stuff done. Since that post I’ve not used the Chromebook very much, so with a vacant weekend I’ve decided to blow the dust off of the Chromebook and try to squeeze some more functionality out of it.
- Video: Installing Arch Linux ARM on the HP Chromebook 11
Just to follow up from my earlier post about Installing Arch Linux on the HP Chromebook 11, I’ve put together a video of the process to show how simple it really is.
- Running a Tailscale exit node in a local VM
I run Tailscale on my laptops, phone and NAS, and wanted to add an exit node so I could route traffic through my own connection when I’m out and about. The obvious place to put it was the NAS, since it’s already always on, but the NAS also holds everything I’d least like exposed if something went wrong. Making it double up as an exit node, with every device’s outbound traffic flowing through it, didn’t sit right. What I wanted instead was a disposable, isolated VM living on the same machine doing that job, leaving the NAS untouched.
Discussion
- 2016
- A
Thanks, you are a genius!!!
- AS
Thank You!Its Work For me.
- WP
Thank you very much! Worked for me…
Join the conversation
Reply from your own site with a Webmention (how?).
