You are not logged in.

#1 2016-11-10 18:12:27

null
Member
Registered: 2009-05-06
Posts: 398

Ignore second screen on startx

Hi,

I've got a ThinkPad T520 with a docking station which is connected to a VGA beamer.

If I start the laptop in the docking station with the connected beamer my desktop gets totally messed up and it looks like if dwm tries to display both screens in my laptop screen (if I connect to a second display after x is started dwm behaves just fine):
http://i67.tinypic.com/24wvp1g.png
And $ xrandr:

Screen 0: minimum 8 x 8, current 1600 x 900, maximum 32767 x 32767
LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1600x900      60.00*+  50.00  
   1368x768      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   800x450       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
VGA1 connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x600       60.32*+ 120.09    72.19    75.00    56.25  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      60.00  
   1024x768     120.05    75.03    70.07    60.00  
   640x480      119.99    75.00    72.81    66.67    59.94  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

And fo comparison that's how it should look:
http://i67.tinypic.com/2qjd1r4.png
And $ xrandr:

Screen 0: minimum 8 x 8, current 1600 x 900, maximum 32767 x 32767
LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1600x900      60.00*+  50.00  
   1368x768      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   800x450       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
VGA1 connected (normal left inverted right x axis y axis)
   800x600       60.32 + 120.09    72.19    75.00    56.25  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      60.00  
   1024x768     120.05    75.03    70.07    60.00  
   640x480      119.99    75.00    72.81    66.67    59.94  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

I'd like my laptop to just ignore the VGA1 connection until I explicitly change the view to it via

xrandr --output VIRTUAL1 --off --output LVDS1 --off --output VGA1 --auto --pos 0x0 --rotate normal

Couldn't find to much with google, so any help would be appreciated smile

Last edited by null (2016-11-10 18:12:45)

Offline

Board footer

Powered by FluxBB