Sleep-remove-linux

From Essential
Revision as of 16:55, 6 April 2023 by Tcepo (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#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)