Debian – Disable laptop screen and use only VGA

debianmulti-monitor

I have an old laptop with a faulty screen (The screen works in random intervals). Recently I bought a screen and I thought I can use my old laptop as a media centre.

Can I disable completely my laptop's screen? I have done this for my user, but I don't know how to do this systemwise. I have installed debian stretch with th default desktop environment.

Best Answer

Run the command xrandr -q to shows the exact names.

xrandr -q | grep 'VGA\|HDMI\|DP\|LVDS'

This is a sample command to turn off LVDS-1 and enable VGA-1:

xrandr --output LVDS-1 --off --output VGA-1 --auto

To switch back:

xrandr --output VGA-1 --off --output LVDS-1 --auto
Related Question