Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Keep computer on when laptop lid is closed (Read 869 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Keep computer on when laptop lid is closed

This feels like a basic question but how am I able to keep my laptop on (which I am using as a searx server) when the lid is closed and keep the display off. I am used to the quick windows setting I am able to change but how am I able to do this on S6. I am only able to find tutorials or explinations with systemd systems.

Re: Keep computer on when laptop lid is closed

Reply #1
https://forums.linuxmint.com/viewtopic.php?t=214890

this seems relevant.  open your file manager and do a search for logind.conf.  i found it in /etc/elogind/logind.conf

there are other suggestions there also that are relevant.  i use dinit.  i suspect artix puty it there universally for all the inits for simplicity

https://unix.stackexchange.com/questions/52643/how-to-disable-auto-suspend-when-i-close-laptop-lid

this also looks relevant
Cat Herders of Linux

Re: Keep computer on when laptop lid is closed

Reply #2
This is nothing to do with S6 itself. You can configure this behaviour with the acpid daemon which has hooks on lid open/close. Alternatively, if you are using a DE, you can specify what to do on various events via corresopnding power manager's GUI, e.g. xfce4-power-manager, mate-power-manager, etc.

Re: Keep computer on when laptop lid is closed

Reply #3
What should work is to update file /etc/elogind/logind.conf to have line:
Code: [Select]
HandleLidSwitch=ignore
artist

 

Re: Keep computer on when laptop lid is closed

Reply #4
Thank you it worked :).
Now to try to make the server https...