Xrandr crashes X11

I have a laptop. I have a docking station hooked up to an external display. I am trying to disable the built-in display when I am docked, however, using xrandr to do this just completely crashes X11. But X11 does not ever exit and thus never outputs any error to tty. All displays become completely unusable until reboot.
the command im attempting to use is

xrandr --output LVDS --off --output DisplayPort-0 --off --output DisplayPort-1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output DisplayPort-2 --mode 1920x1080 --pos 3840x0 --rotate normal --output VGA-0 --off

I’ve been using multi monitors on Linux for a very long time, and I’ve never seen anything like this.
Dell precision m6800

Please help.

Update, it seems to happen as well when I simply do xrandr --output LVDS --off

Still no idea when all displays become useless until reboot just from attempting to switch off the internal screen.

What is the output of:

xrandr --listmonitors

I’m just thinking LVDS might actually be LVDS-0.

1 Like
Monitors: 3
 0: +*DisplayPort-2 1920/531x1080/299+1920+0  DisplayPort-2
 1: +LVDS 1920/382x1080/215+0+0  LVDS
 2: +DisplayPort-1 1920/531x1080/299+0+0  DisplayPort-1

My apologizes. I realized after I asked I should have looked up LVDS to see if it gets suffixed.

I use arandr on arch to control my screens. It writes a small script for me that I put in my .xinitrc. I wonder if it might give you a hint as to what is going on.

#!/bin/sh
xrandr --output DisplayPort-1 --off --output DisplayPort-2 --off --output HDMI-A-1 --off --output HDMI-A-2 --mode 1920x1080 --pos 0x0 --rotate normal --output DVI-D-1 --off --output DisplayPort-1-0 --off --output HDMI-1-0 --mode 1366x768 --pos 3842x0 --rotate normal --output DVI-1-0 --mode 1920x1080 --pos 1922x0 --rotate normal

1 Like