Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have been using Linux for a little over 20 years. I remarked a the start it did not sleep when it closed. My current laptop is also Linux and it still does not always sleep when I close it. I need to get up to speed on BSD or something.


On Ubuntu:

sudo nano /etc/systemd/logind.conf

Looking for HandleLidSwitch, options are lock, hibernate, poweroff (might be more that I am unaware of)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: