Wednesday, April 30, 2008

Intel GM945 causes Gnome to choose the wrong monitor

So I recently upgraded to a new monitor ($318 on the Sun Matching Grant Program -- which really isn't a matching program anymore, but I digress).

The problem is that I now want to use that as my primary display, and my Dell monitor as my secondary display off my D620 laptop with the Intel 945GM display. That means I'll have a primary display DVI at 1920x1600 and my secondary VGA at 1680x1050. Unfortunately for whatever reason, the Intel 945GM lists the VGA first in xrandr, which is roughly the way the server sees it. This causes Gnome to choose that display as the primary place it shows the login screen, shows the menus, and so forth.

My current solution is to login and then run this script:


xrandr --output TMDS-1 --off
xrandr --output VGA --off
xrandr --output TMDS-1 --auto
xrandr --output VGA --auto
xrandr --output VGA --pos 1920x0

This turns off both displays, and turns them both back on. This causes them to overlap at position 0x0 (meaning you'll see the displays mirrored). Then it slides the VGA display to the right, which is what I want. I'm not sure if it'd work the other way.

1 comment:

James said...

Just before 5 months i was facing exact this problem. Finally i solved it by one hardware engg.