At Mon, 10 Sep 2007 00:33:35 +0200 Daniel Pielmeier <[EMAIL PROTECTED]> wrote:

> the update to xorg-server-1.3 broke my dual-screen setup. It creates a
> virtual screen size with the same size of the primary monitor for the
> second monitor which is my TV. So i can only reach a zone with 800x600
> on the second device, even scrolling within the virtual screen is
> impossible. I want 1280x1024 for the primary and 800x600 for the
> secondary Monitor which displays the complete desktop on any screen.

I also had breakage.  I have an 1680x1050 laptop and a 1600x1200
external monitor.  When I have the monitor connected, it is all I use.

When I don't have the monitor connected, I naturally use the laptop
screen.

I will give my fix below, but to understand it, I think it is helpful
to know what I did previously.

Previously, when I went into X (gnome) I have a shell script
(~/bin/Xinitialize) run by gnome-session that included

   xrandr -s 2    (the 2 is from memory and might be wrong)

this worked because when I had the ext monitor in I made sure to do fn-f8
before the system went into X.  This insured that X came up on the
monitor and size #2 was it turns out 1600x1200 (thank you
915resolution, for enabling 1600x120 all together).

When the ext monitor was not in, by dumb luck, size number 2 was
1680x1050 so it all worked.

With the new server, the dumb luck disappeared, but a better xrandr
appeared to take its place (the real improvement is that the server
supports 1.2 RandR).

Now my ~/bin/Xinitialize begins

#!/bin/sh
sleep 2

if xrandr | grep "VGA connected" ; then
    xrandr --verbose --output VGA --mode 1600x1200 --output LVDS --off
else
    xrandr --verbose --output VGA --off --output LVDS --mode 1680x1050
fi
xset s reset                    # above seems to blank the screen
sleep 3

This sets 1600x1200 and turns off the laptop screen when the ext
monitor is in.  It sets 1680x1050 and turns off driving the external
monitor connector (which may well be a useless step) when there is no
ext monitor connected.

Perhaps something similar will help you.

Good luck,
allan
-- 
[EMAIL PROTECTED] mailing list

Reply via email to