PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Prevnting Sleep Mode On Laptop Using Kali Linux

Go down

Prevnting Sleep Mode On Laptop Using Kali Linux Empty Prevnting Sleep Mode On Laptop Using Kali Linux

Post by jamied_uk 15th February 2022, 15:59

sudo gedit /etc/systemd/logind.conf


add this to bottom save and exit


Code:
#Will keep computer running as the lid was not closed
HandleLidSwitch=kexec



One Liner

Code:
sudo echo "HandleLidSwitch=kexec" >> /etc/systemd/logind.conf




Now restart logond

Code:
sudo systemctl restart systemd-logind
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum