In an X session, you may be able to do it with xrandr - you will need to know the name of the output device e.g. by running 'xrandr -q'
Code:
$ xrandr -q
Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
1680x1050 60.0*+ 50.0
DVI-D-0 disconnected (normal left inverted right x axis y axis)
Then in my case I would turn it off with
Code:
xrandr --output LVDS-0 --off
Setting the value to 'auto' should turn it back on e.g.
Code:
xrandr --output LVDS-0 --auto
Bookmarks