Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sleep setting linux

// disable sleep
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

// enable sleep
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #sleep #setting #linux
ADD COMMENT
Topic
Name
2+4 =