Sleep-remove-linux: Difference between revisions

From Essential
Jump to navigation Jump to search
(Created page with "<pre> #remove sleep systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target grep -E '^space:*HandleLidSwitch=' /etc/systemd/logind.conf 2>&1 >/dev...")
 
(No difference)

Latest revision as of 16:55, 6 April 2023

#remove sleep
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
grep -E '^[[:space:]]*HandleLidSwitch=' /etc/systemd/logind.conf 2>&1 >/dev/null ||(echo HandleLidSwitch=ignore >>/etc/systemd/logind.conf)