Advertisement
metalx1000

Linux Xorg Prevent suspend Hibernate sleep screen blank

Mar 16th, 2022
1,990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. #to generate xorg.conf if it does not exist
  2.  
  3. #make sure X11 is not running including login managers
  4. /etc/init.d/gdm stop || /etc/init.d/gdm3 stop || /etc/init.d/kdm stop || /etc/init.d/xdm stop || /etc/init.d/lightdm stop
  5.  
  6. Xorg -configure
  7. #copy generated file to xorg folder
  8. cp xorg.conf.new /etc/X11/xorg.conf.d/{custom_name}.conf
  9.  
  10. #add the following "options"to the conf file:
  11.  
  12. Section "ServerLayout"
  13.     Identifier     "Layout0"
  14.     Screen      0  "Screen0"
  15.     InputDevice    "Keyboard0" "CoreKeyboard"
  16.     InputDevice    "Evdev Mouse" "CorePointer"
  17.       Option "BlankTime" "0"
  18.       Option "StandbyTime" "0"
  19.       Option "SuspendTime" "0"
  20.       Option "OffTime" "0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement