Ubuntu – Custom Shortcut for switching off the display


I want to add a Custom Shortcut (Keyboard → Custom Shortcuts → Add) for turning off the display but to do that, what 'Command' should I should use?

I want to set a button to switch off the display and switch on.

Best Answer

$ xset dpms force off

Screen wakes up after moving the mouse or pressing a key.

Manually turn off monitor

Related Question