You are not logged in.
Hello,
I need to plug and unplug my laptop several times a day to an external VGA beamer.
Before recently, I switched on the external VGA (DP1) ONE time by:
xrandr --output eDP1 --mode 1366x768 --output DP1 --mode 1366x768
and no matter how I pluged VGA in and out, the VGA output stayed active and usable.
But since recently, when I unplug VGA and plug it in again, there is no signal at the VGA output. I have to do
xrandr --output eDP1 --mode 1366x768 --output DP1 --off && xrandr --output eDP1 --mode 1366x768 --output DP1 --mode 1366x768
in order to get the VGA output working again.
So I would like to have it still the old way, with VGA output staying on, no matter how I unplug and plug. How can I achieve that?
Reference:
before switching VGA on and pluging in:
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
1366x768 60.00*+
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
after pluging VGA in and activating by
xrandr --output eDP1 --mode 1366x768 --output DP1 --mode 1366x768
:
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
1366x768 60.00*+
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
DP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x800 59.81 +
1600x1200 60.00
1680x1050 59.95
1400x1050 74.87
1600x900 60.00
1280x1024 75.02
1440x900 59.89
1280x960 60.00
1366x768 59.79*
1152x864 75.00
1280x720 59.97
1024x768 85.00 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 60.00
720x400 87.85 70.08
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
after unpluging VGA:
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
1366x768 60.00*+
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
DP1 disconnected 1366x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
1366x768 (0xe1) 85.500MHz
h: width 1366 start 1436 end 1579 total 1792 skew 0 clock 47.71KHz
v: height 768 start 771 end 774 total 798 clock 59.79Hz
after repluging VGA without setting xrandr: VGA ouptput (DP1) has NO signal, although:
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
1366x768 60.00*+
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
DP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x800 59.81 +
1600x1200 60.00
1680x1050 59.95
1400x1050 74.87
1600x900 60.00
1280x1024 75.02
1440x900 59.89
1280x960 60.00
1366x768 59.79*
1152x864 75.00
1280x720 59.97
1024x768 85.00 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 60.00
720x400 87.85 70.08
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
after applying
xrandr --output eDP1 --mode 1366x768 --output DP1 --mode 1366x768
:
nothing changed, output of xrandr as before, no signal on VGA=DP1.
after applying
xrandr --output eDP1 --mode 1366x768 --output DP1 --off && xrandr --output eDP1 --mode 1366x768 --output DP1 --mode 1366x768
:
VGA=DP1 signal is there again, and:
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
1366x768 60.00*+
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
DP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x800 59.81 +
1600x1200 60.00
1680x1050 59.95
1400x1050 74.87
1600x900 60.00
1280x1024 75.02
1440x900 59.89
1280x960 60.00
1366x768 59.79*
1152x864 75.00
1280x720 59.97
1024x768 85.00 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 60.00
720x400 87.85 70.08
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Offline