The officially official Devuan Forum!

You are not logged in.

#1 2021-09-10 20:48:03

lea2501
Member
Registered: 2021-09-10
Posts: 4  

(SOLVED) Runit. Correct way to handle suspend on lid close

Hi! im using devuan with the runit init system and everything went smooth, but i cannot figure out how to manage the bevaviour of the 'lid close' suspend, because i want the computer to remain active if i don't tell it to suspend, so the default behaviour of suspend-on-close is not what i want. How can i manage that using runit? i found how to make it in sysvinit but not for runit. Thanks!

EDIT: Solved it, found solution here https://dev1galaxy.org/viewtopic.php?id=2021

I think the simplest fix would be to completely disable the laptop lid detection. Here is what I already did:

1. HandleLidSwitch=ignore in /etc/elogind/logind.conf
2. IgnoreLid=true in /etc/UPower/UPower.conf
3. delete /etc/acpi/events/lid-acpi-support
4. reboot

Last edited by lea2501 (2021-09-10 21:00:48)

Offline

Board footer