On Thu, Apr 25, 2013 at 03:56:50PM -0400, 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?

I've never used xrandr. My working configuration for dual monitor setup
consists of the following house of cards in xorg.conf. I say "house of
cards" since I'm not sure why it works in the first place and because I
definitely do not dare to touch it to find out.


Section "ServerLayout"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
EndSection

Section "Monitor"
        Identifier   "Eizo"
        DisplaySize   408   306        # mm
        Option       "PreferredMode" "1600x1200"
EndSection

Section "Monitor"
        Identifier   "Dell"
        DisplaySize   359   287        # mm
        Option       "PreferredMode" "1280x1024"
        Option       "RightOf"       "Eizo"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        BusID       "PCI:1:0:0"
        Option      "monitor-DVI-1" "eizo"
        Option      "monitor-DVI-0" "dell"
EndSection

Section "Device"
        Identifier  "Card1"
        Driver      "vesa"
        BusID       "PCI:1:0:0"
        Option      "monitor-DVI-1" "eizo"
        Option      "monitor-DVI-0" "dell"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Eizo"
        DefaultDepth        24
        SubSection "Display"
                Viewport   0 0
                Depth      24
                Modes     "1600x1200"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Dell"
        DefaultDepth        24
        SubSection "Display"
                Viewport   0 0
                Depth      24
                Modes     "1280x1024"
        EndSubSection
EndSection


(Irrelevant lines left out.)

Reply via email to