Results 1 to 6 of 6

Thread: Command to turn off display

  1. #1
    Join Date
    Feb 2013
    Beans
    18

    Command to turn off display

    In xubuntu, are there any way to give a command in the terminal which will turn off the display?
    Last edited by Smajjk; March 15th, 2013 at 05:11 AM.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Command to turn off display

    I guess it depends on monitor you're using. You can try
    Code:
    sudo apt-get install ddccontrol
    and play with it.

  3. #3
    Join Date
    Apr 2012
    Beans
    5,480

    Re: Command to turn off display

    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

  4. #4
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Command to turn off display

    Try...
    Code:
    xset dpms force suspend

  5. #5
    Join Date
    Feb 2013
    Beans
    18

    Re: Command to turn off display

    Quote Originally Posted by stinkeye View Post
    Try...
    Code:
    xset dpms force suspend
    As this seemed like the simplest option I tried it first, and it WORKED! Thank you

    Btw, I'm on a Thinkpad T61 and this command turned off its display.

  6. #6
    Join Date
    Nov 2013
    Beans
    1

    Smile Re: Command to turn off display

    Just run this in the terminal and you are good to go,
    Code:
    perl -e 'select(undef,undef,undef,.5)' && xset dpms force off

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •