On Thu, Apr 25, 2013 at 11:17:26PM +0200, Alexander Hall wrote: > On 04/25/13 21:56, Ted Unangst wrote: > >I have a laptop. I have a VGA monitor. I want to use them together. > >The native panel (LVDS1) is 1600x900. The monitor (VGA1) is 1920x1080 > >and sits to the right of my laptop. intel graphics, amd64 -current. > > > >When I start X, by default I have a mirrored display of 1024x768. I > >want 1600x900 on the LCD, 1920x1080 on the monitor, and for the > >desktop to extend from the latop to the right onto the monitor. I > >would also like for my fonts to have somewhat predictable sizes and > >not engage in crazy dpi hijinks. > > > >To accomplish this, I have found some combination of the following > >xrandr commands works: > >xrandr --auto > >xrandr -s 1600x900 > >xrandr --output LVDS1 -s 1600x900 > >xrandr --output VGA1 -s 1920x1080 > >xrandr --output VGA1 --right-of LVDS1 > >xrandr --dpi 96 > > > >The problem is that running these commands in any particular order > >doesn't always work. I have to run random permutations of them until > >everything is correct. Sometimes the commands do nothing, sometimes > >the monitor just goes blank, sometimes the command does exactly what I > >want it to do. > > > >Is there a single command I can put in .xinitrc? A single correct > >sequence of commands? > > It's been a while since I had dual screens set up, but my script > basically did sth like: > > xrandr --output VGA1 --auto > xrandr --output LVDS1 --auto > xrandr --output VGA1 --right-of LVDS1 > > Don't know if issues can be related to specific hardware or if any > recent changes would make it not work though. > > /Alexander >
First line on my .xinitrc: xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1 Adding --verbose (outside .xinitrc, especially) might also give some insight on what's going on/wrong... Zé --

