Advertisement
metalx1000

Linux Screen/Display power management

Jul 9th, 2018
1,057
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #get some display info
  2. xset q
  3.  
  4. #Screen blank after 300 seconds and off after 420 (120 after it blanks)
  5. xset dpms 0 300 420
  6.  
  7. #disable screen blanking and off
  8. xset s off -dpms
  9. #or
  10. xset dpms 0 0 0
  11.  
  12. #force screen off (turn back on with mouse or keyboard)
  13. xset -display :0.0 dpms force off
  14.  
  15. #Turn screen back on
  16. xset -display :0.0 dpms force on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement