Results 1 to 7 of 7

Thread: How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

  1. #1
    Join Date
    Aug 2009
    Beans
    9

    How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

    I need to turn off the internal monitor of laptop as it is broken and i m using an external display.

    At present i do this using xrandr, where i have to manually disable LVDS everytime i start the OS.

    I want this to happen automatically on boot possibly without the internal monitor turning on at all.

    Also my bios doesn't have the option to turn off the monitor.

    PLEASE HELP

  2. #2
    Join Date
    Aug 2009
    Beans
    9

    Re: How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

    Finally Found The Solution

    Have to create a script in /etc/X11/Xsession.d/ called "45custom_xrandr-settings"

    Contents are:

    Code:
    EXTERNAL_OUTPUT="VGA"
    INTERNAL_OUTPUT="LVDS"
    
    xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
    if [ $? -eq 0 ]; then
        xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto 
    else
        xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
    fi
    At startup this checks if external display is connected.
    If it is connected then the laptop monitor turns OFF and external monitor turns ON.
    If the external display is NOT connected then only internal monitor works.
    Last edited by sumantagogoi; August 19th, 2009 at 10:23 PM.

  3. #3
    Join Date
    May 2009
    Beans
    3

    Re: How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

    This worked great for me, since the display would get scrambled when both monitors were turned on. I would manually disable the laptop monitor but rebooting or even locking/unlocking the screen would turn it back on again.

    If anyone else uses this, be sure to check the names of the devices. In my case they were VGA1 and LVDS1.

  4. #4
    Join Date
    Dec 2007
    Beans
    1

    Re: How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

    Just what I was looking for. Works perfectly with my Xubuntu 10.04. Thanks a ton!
    Last edited by Lightfast; September 21st, 2010 at 04:33 PM. Reason: typo

  5. #5
    Join Date
    Jan 2008
    Beans
    6

    Re: How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

    This worked for me as well!
    Had to change VGA to VGA-0 though but that was no biggie.

    The real issue I have since like you my monitor is broken is that I am unable get the image to my external monitor unless I enter x.org.
    If anyone has a solution to only use the VGA-port on the back and never use internal monitor please give me a shout

    Thx again for this solution though!

  6. #6
    Join Date
    Jul 2011
    Location
    Ireland
    Beans
    2
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Post Re: How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

    This alternative script adapts to variations in output names: VGA, VGA1, VGA-01 etc

    Code:
    VGA_MONITOR_LINE=$(xrandr | grep "^VGA.*connected")
    VGA_MONITOR_LINE=${VGA_MONITOR_LINE%%ed*}
    VGA_MONITOR=${VGA_MONITOR_LINE%% *}
    VGA_MONITOR_STATUS=${VGA_MONITOR_LINE#* }
    
    LVDS_MONITOR_LINE=$(xrandr | grep "^LVDS.*connected")
    LVDS_MONITOR=${LVDS_MONITOR_LINE%% *}
    
    if [ $VGA_MONITOR_STATUS = "connect" ]; then
        xrandr --output $LVDS_MONITOR --off --output $VGA_MONITOR --auto 
    else
        xrandr --output $LVDS_MONITOR --auto --output $VGA_MONITOR --off
    fi

  7. #7
    Join Date
    Jun 2008
    Beans
    119

    Re: How to Turn OFF Laptop LCD monitor (LVDS)?? HELP

    I have an Asus Mini ITX with Built in LVDS port, abd no way to disable in BIOS. WHen I ran Linux Mint 10 (ubuntu 10.10) I only had to turn off the LVDS in the Gnome setings. However with Linux Mint 14 Cinnamon the GUI settings had no effect on XBMC, so I used the above modified. I am sure it is more than is needed I just want the LVDS always disabled, and dont really need it, then but was unsure of editing. I did this

    Code:
    VGA_MONITOR_LINE=$(xrandr | grep "^VGA.*connected")
    VGA_MONITOR_LINE=${VGA_MONITOR_LINE%%ed*}
    VGA_MONITOR=${VGA_MONITOR_LINE%% *}
    VGA_MONITOR_STATUS=${VGA_MONITOR_LINE#* }
    
    LVDS_MONITOR_LINE=$(xrandr | grep "^LVDS.*connected")
    LVDS_MONITOR=${LVDS_MONITOR_LINE%% *}
    
    if [ $VGA_MONITOR_STATUS = "connect" ]; then
        xrandr --output $LVDS_MONITOR --off --output $VGA_MONITOR --auto 
    else
        xrandr --output $LVDS_MONITOR --off --output $VGA_MONITOR --auto
    fi
    the above works for me but I think I could probably just use

    Code:
    VGA_MONITOR_LINE=$(xrandr | grep "^VGA.*connected")
    VGA_MONITOR_LINE=${VGA_MONITOR_LINE%%ed*}
    VGA_MONITOR=${VGA_MONITOR_LINE%% *}
    VGA_MONITOR_STATUS=${VGA_MONITOR_LINE#* }
    
    LVDS_MONITOR_LINE=$(xrandr | grep "^LVDS.*connected")
    LVDS_MONITOR=${LVDS_MONITOR_LINE%% *}
    
        xrandr --output $LVDS_MONITOR --off --output $VGA_MONITOR --auto
    fi
    but did not test
    Last edited by markosjal; January 8th, 2013 at 11:30 PM.

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
  •