X11 tips and tricks

From HPCWIKI
Jump to navigation Jump to search

Turn on/off display from command line

# To turn monitor on 
$ xset -display :0 dpms force on

# To turn monitor off
$ xset -display :0 dpms force off

Get current display name

#see the capability of display :0 
xrandr --current -display  :0

Get input device list and properties

get stable video output names

xrandr -q | grep connected

get input devices

$ DISPLAY=:0 xinput list
$ DISPLAY=:0 xinput list-props 8

References