intel 945 gme; intel driver and external displays

Hi,
I try to connect an external display (1440x900) to a laptop (dell inspiron 640m) with intel 945 GME, intel driver and opensuse 11 64 bit.
Up to know I used as a workaround the i810 driver + profiles. (two different xorg.conf files).
Now I decided to try the intel driver.
So I launch Sax2 I configure the display for the right resolution I test it, save it and reboot.
Of course the things do not work by itself decides that 1024x768 is better for him.
Here is the xrandr output


Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1440 x 1440
VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 408mm x 255mm
1440x900       59.9 +   75.0     59.9 59.6                                  
   1280x1024      75.0     59.9                                                    
   1366x768       72.0                                                             
   1360x768       70.8                                                             
   1280x800       74.0     73.0     59.8                                           
   1152x864       75.0     75.0     74.8     70.0     65.0     73.9     60.0       
   1280x768       75.0     70.0     65.0     73.9     60.0                         
   1280x720       75.0     70.0     65.0     73.8     60.0                         
   1024x768       75.0     75.1     70.0     70.1     65.0     73.7     60.0     60.0  
   1280x600       75.0     70.0     65.0     74.0     60.0                             
   1024x600       75.0     70.0     73.7     65.0     60.0                             
   832x624        74.6                                                                 
   800x600        72.2     75.0     75.0     70.0     73.7     65.0     60.3     60.0     56.2  
   768x576        75.0     70.0     73.6     65.0     60.0                                      
   640x480        75.0     72.8     75.0     66.7     73.6     70.0     65.0     60.0           
   720x400        70.1                                                                          
   1024x768_60    60.0*                                                                         
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 304mm x 190mm            
   1280x800       59.9*+                                                                        
   1024x768       60.0                                                                          
   800x600        60.3                                                                          
   640x480        59.9                                                                          
TV disconnected (normal left inverted right x axis y axis)

If I manually set the resolution wit xrandr things seem to be perfect

The xserver is started by kdm4

Any thought about?

Alin

the xorg.conf is


# /.../
# SaX generated X11 config file
# Created on: 2008-10-16T09:09:56+0100.
# Version: 8.1
Section "Files"
  FontPath     "/usr/share/fonts/misc:unscaled"
  FontPath     "/usr/share/fonts/local"
  FontPath     "/usr/share/fonts/75dpi:unscaled"
  FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/URW"
  FontPath     "/usr/share/fonts/Speedo"
  FontPath     "/usr/share/fonts/PEX"
  FontPath     "/usr/share/fonts/cyrillic"
  FontPath     "/usr/share/fonts/latin2/misc:unscaled"
  FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/Type1"
  FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/share/fonts/baekmuk:unscaled"
  FontPath     "/usr/share/fonts/japanese:unscaled"
  FontPath     "/usr/share/fonts/kwintv"
  FontPath     "/usr/share/fonts/truetype"
  FontPath     "/usr/share/fonts/uni:unscaled"
  FontPath     "/usr/share/fonts/CID"
  FontPath     "/usr/share/fonts/ucs/misc:unscaled"
  FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/misc:unscaled"
  FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/Type1"
  FontPath     "/usr/share/fonts/misc/sgi:unscaled"
  FontPath     "/usr/share/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"
EndSection

Section "ServerFlags"
  Option       "AIGLX" "off"
  Option       "AllowMouseOpenFail" "on"
  Option       "ZapWarning" "on"
EndSection

Section "Module"
  Load         "dbe"
  Load         "type1"
  Load         "freetype"
  Load         "extmod"
  Load         "glx"
EndSection

Section "InputDevice"
  Driver       "kbd"
  Identifier   "Keyboard[0]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "gb"
  Option       "XkbModel" "microsoftpro"
  Option       "XkbRules" "xfree86"
EndSection

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "Darfon Electronics Benq Mouse"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  Driver       "synaptics"
  Identifier   "Mouse[3]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Emulate3Buttons" "on"
  Option       "HorizScrollDelta" "0"
  Option       "InputFashion" "Mouse"
  Option       "Name" "Synaptics;Touchpad"
  Option       "Protocol" "explorerps/2"
  Option       "SHMConfig" "on"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
  DisplaySize  408 255
  HorizSync    29-83
  Identifier   "Monitor[0]"
  ModelName    "DELL 1908WFP"
  Option       "DPMS"
  Option       "PreferredMode" "1440x900"
  VendorName   "DEL"
  VertRefresh  43-75
  UseModes     "Modes[0]"
EndSection

Section "Modes"
  Identifier   "Modes[0]"
  Modeline 	"1366x768" 104.73 1368 1448 1592 1816 768 769 772 801
  Modeline 	"1360x768" 85.50 1360 1408 1440 1520 768 771 776 794 +HSync -VSync
  Modeline 	"1280x800" 105.78 1280 1360 1496 1712 800 801 804 835
  Modeline 	"1280x800" 87.00 1280 1328 1360 1440 800 803 809 828 +HSync -VSync
  Modeline 	"1152x864" 104.99 1152 1224 1352 1552 864 865 868 902
  Modeline 	"1152x864" 96.77 1152 1224 1344 1536 864 865 868 900
  Modeline 	"1152x864" 89.56 1152 1224 1344 1536 864 865 868 897
  Modeline 	"1152x864" 86.75 1152 1200 1232 1312 864 867 871 895 +HSync -VSync
  Modeline 	"1152x864" 81.62 1152 1216 1336 1520 864 865 868 895
  Modeline 	"1280x768" 102.98 1280 1360 1496 1712 768 769 772 802
  Modeline 	"1280x768" 94.98 1280 1352 1488 1696 768 769 772 800
  Modeline 	"1280x768" 87.97 1280 1352 1488 1696 768 769 772 798
  Modeline 	"1280x768" 84.75 1280 1328 1360 1440 768 771 778 796 +HSync -VSync
  Modeline 	"1280x768" 80.14 1280 1344 1480 1680 768 769 772 795
  Modeline 	"1280x720" 95.65 1280 1352 1488 1696 720 721 724 752
  Modeline 	"1280x720" 89.04 1280 1352 1488 1696 720 721 724 750
  Modeline 	"1280x720" 81.68 1280 1344 1480 1680 720 721 724 748
  Modeline 	"1280x720" 79.25 1280 1328 1360 1440 720 723 728 746 +HSync -VSync
  Modeline 	"1280x720" 74.48 1280 1336 1472 1664 720 721 724 746
  Modeline 	"1024x768" 81.80 1024 1080 1192 1360 768 769 772 802
  Modeline 	"1024x768" 76.16 1024 1080 1192 1360 768 769 772 800
  Modeline 	"1024x768" 69.71 1024 1080 1184 1344 768 769 772 798
  Modeline 	"1024x768" 69.50 1024 1072 1104 1184 768 771 775 796 +HSync -VSync
  Modeline 	"1024x768" 64.11 1024 1080 1184 1344 768 769 772 795
  Modeline 	"1280x600" 79.00 1280 1344 1480 1680 600 601 604 627
  Modeline 	"1280x600" 72.80 1280 1336 1472 1664 600 601 604 625
  Modeline 	"1280x600" 66.74 1280 1336 1464 1648 600 601 604 623
  Modeline 	"1280x600" 66.25 1280 1328 1360 1440 600 603 613 622 +HSync -VSync
  Modeline 	"1280x600" 61.50 1280 1336 1464 1648 600 601 604 622
  Modeline 	"1024x600" 63.20 1024 1080 1184 1344 600 601 604 627
  Modeline 	"1024x600" 58.10 1024 1072 1176 1328 600 601 604 625
  Modeline 	"1024x600" 54.25 1024 1072 1104 1184 600 603 613 622 +HSync -VSync
  Modeline 	"1024x600" 53.78 1024 1072 1176 1328 600 601 604 623
  Modeline 	"1024x600" 48.96 1024 1064 1168 1312 600 601 604 622
  Modeline 	"800x600" 48.91 800 840 920 1040 600 601 604 627
  Modeline 	"800x600" 45.50 800 840 920 1040 600 601 604 625
  Modeline 	"800x600" 44.00 800 848 880 960 600 603 607 622 +HSync -VSync
  Modeline 	"800x600" 42.11 800 840 920 1040 600 601 604 623
  Modeline 	"800x600" 38.22 800 832 912 1024 600 601 604 622
  Modeline 	"768x576" 45.51 768 808 888 1008 576 577 580 602
  Modeline 	"768x576" 41.66 768 800 880 992 576 577 580 600
  Modeline 	"768x576" 40.75 768 816 848 928 576 579 583 597 +HSync -VSync
  Modeline 	"768x576" 38.56 768 800 880 992 576 577 580 598
  Modeline 	"768x576" 34.96 768 792 872 976 576 577 580 597
  Modeline 	"640x480" 30.72 640 664 728 816 480 481 484 502
  Modeline 	"640x480" 29.25 640 688 720 800 480 483 487 497 +HSync -VSync
  Modeline 	"640x480" 28.56 640 664 728 816 480 481 484 500
  Modeline 	"640x480" 25.95 640 656 720 800 480 481 484 499
  Modeline 	"640x480" 23.86 640 656 720 800 480 481 484 497
  Modeline 	"1440x900" 106.00 1440 1520 1672 1904 900 903 909 934
EndSection

Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "1440x900" "1366x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

Section "Device"
  BoardName    "945 GM"
  BusID        "0:2:0"
  Driver       "intel"
  Identifier   "Device[0]"
  Option       "monitor-VGA" "Monitor[0]"
  VendorName   "Intel"
EndSection

Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  InputDevice  "Mouse[3]" "SendCoreEvents"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection

Section "DRI"
    Group      "video"
    Mode       0660
EndSection

Section "Extensions"
  Option       "Composite" "on"
EndSection

there is also an annoying side effect. The display flickers too.

Alin

Found a kind of solution

in /etc/sysconfig/displaymanager

look for

Type: string

Default: “1024x768_60 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync”

Mode to use for laptops for DISPLAYMANAGER_RANDR_MODE_* on laptops only,

when the according variable is set to “auto”.

(RANDR 1.2 compatible drivers only).

and set
DISPLAYMANAGER_RANDR_MODE_auto=""

This seems to cure both the strange resolution + the flicker.

Alin