How to permanently disable internal laptop screen?
#1
Hi all,

I have a laptop with a cracked LCD. I connected another screen via the VGA port.
The problem is that when XBMC launches, it detects two screen and spreads the display across the two of them resulting in a 3200x1080 resolution (1280x800+1920x1080).

I would like XBMC to only display over VGA at 1920x1080.

I found a way to do this in XBMCbuntu using this script:
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

Or by disabling the LVDS screen in display settings.

However, these parameters are reset when I log out and back in with XBMC window manager.

How to permanently disable the LVDS display when running XBMC window manager?

It kinda works now when I go to change the resolution, set it to 640x480, wait until it times out then it goes back to a normal 1920x1080 displaying nothing on the internal screen but it's not very convenient nor clean.

Thanks for your help,
Reply
#2
you need a xorg.conf
Reply
#3
Or you could remove the screen :-)
Platforms: macOS - iOS - OSMC
co-author: Red Bull TV add-on
Reply
#4
Save the script you wrote above somewhere on your computer (I put mine in /home/myhomedir/bin)
Edit your /etc/lightdm/lightdm.conf file and add this at the bottom:

display-setup-script=/path/to/your/script.sh

Works for me, hope it works for you!
Reply

Logout Mark Read Team Forum Stats Members Help
How to permanently disable internal laptop screen?0