Subject: xserver-xorg-video-intel: [945GM + KMS] Misdetection of TV output

From: Piotr Lewandowski <[email-masked]>
Date: Fri, 3 Apr 2009 05:34:36 +0200

Package: xserver-xorg-video-intel
Version: 2:2.6.1-1
Severity: normal

When I start X on a freshly booted system (kernel mode-setting enabled) 
it starts with allegedly TV output connected, thus setting the wrong 
resolution (1024x768 with native LVDS resolution 1280x800).

After starting X server again the resolution is correct and no TV output 
is connected (which is consistent with reality).

First run of X:
#v+
Screen 0: minimum 320 x 200, current 1360 x 1360, maximum 1360 x 1360
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 330mm x 210mm
     1280x800       60.0 +
     1360x768       59.8  
     1024x768       60.0* 
     800x600        60.3  
     640x480        59.9  
TV1 disconnected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
#v-

Subsequent runs:
#v+
Screen 0: minimum 320 x 200, current 1360 x 1360, maximum 1360 x 1360
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 330mm x 210mm
     1280x800       60.0*+
     1360x768       59.8  
     1024x768       60.0  
     800x600        60.3  
     640x480        59.9  
TV1 disconnected (normal left inverted right x axis y axis)
#v-

As a bonus there is a backtrace at the end of log from every subseqent 
run which appear during termination of X server.

-- Package-specific info:
Contents of /var/lib/x11/X.roster:
xserver-xorg

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 Oct 12  2006 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 1690172 Feb 12 12:25 /usr/bin/Xorg

Contents of /var/lib/x11/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)

/var/lib/x11/xorg.conf.md5sum does not exist.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 79 Apr  2 18:21 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
Section "ServerFlags"
	Option "DontZap" "off"
EndSection

# vim:ts=2 sw=2 noet

Xorg X server log files on system:
-rw------- 1 root root 16080 Apr  3 05:23 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file are attached.

-- System Information:
Debian Release: squeeze/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/1 CPU core)
Shell: /bin/sh linked to /bin/dash

Versions of packages xserver-xorg-video-intel depends on:
ii  libc6                     2.9-6          GNU C Library: Shared libraries
ii  libdrm-intel1             2.4.5-2        Userspace interface to intel-speci
ii  libdrm2                   2.4.5-2        Userspace interface to kernel DRM 
ii  libpciaccess0             0.10.5-3       Generic PCI access library for X
ii  libxext6                  2:1.0.4-1      X11 miscellaneous extension librar
ii  libxv1                    2:1.0.4-1      X11 Video extension library
ii  libxvmc1                  1:1.0.4-2      X11 Video extension library
ii  xserver-xorg-core         2:1.5.99.902-1 Xorg X server - core server

xserver-xorg-video-intel recommends no packages.

xserver-xorg-video-intel suggests no packages.

-- no debconf information

-- 
Piotr Lewandowski
--- /var/log/Xorg.0.log.old	2009-04-02 21:34:32.000000000 +0200
+++ /var/log/Xorg.0.log	2009-04-02 21:35:05.000000000 +0200
@@ -19,7 +19,7 @@
 Markers: (--) probed, (**) from config file, (==) default setting,
 	(++) from command line, (!!) notice, (II) informational,
 	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
-(==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr  2 21:34:06 2009
+(==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr  2 21:34:35 2009
 (==) Using config file: "/etc/X11/xorg.conf"
 (==) No Layout section.  Using the first Screen section.
 (==) No screen section available. Using defaults.
@@ -178,10 +178,9 @@
 (II) intel(0): Output TV1 has no monitor section
 (II) intel(0): Output VGA1 disconnected
 (II) intel(0): Output LVDS1 connected
-(II) intel(0): Output TV1 connected
-(II) intel(0): Using fuzzy aspect match for initial modes
-(II) intel(0): Output LVDS1 using initial mode 1024x768
-(II) intel(0): Output TV1 using initial mode 1024x768
+(II) intel(0): Output TV1 disconnected
+(II) intel(0): Using exact sizes for initial modes
+(II) intel(0): Output LVDS1 using initial mode 1280x800
 (==) intel(0): video overlay key set to 0x101fe
 (==) intel(0): Will not try to enable page flipping
 (==) intel(0): Triple buffering disabled
@@ -241,12 +240,11 @@
 (II) intel(0): 0x00000000:            end of aperture
 (II) intel(0): BO memory allocation layout:
 (II) intel(0): 0x00000000:            start of memory manager
-(II) intel(0): 0x00be0000-0x0167ffff: front buffer (10880 kB)
-(II) intel(0): 0x00bd7000-0x00bdefff: logical 3D context (32 kB)
-(II) intel(0): 0x00bc7000-0x00bd0fff: HW cursors (40 kB)
+(II) intel(0): 0x01d30000-0x027cffff: front buffer (10880 kB)
+(II) intel(0): 0x01bf0000-0x01bf7fff: logical 3D context (32 kB)
+(II) intel(0): 0x01be0000-0x01be9fff: HW cursors (40 kB)
 (II) intel(0): 0xffff5000:            end of memory manager
 fb id is 26
-fb id is 26
 (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
 (II) intel(0): DPMS enabled
 (==) intel(0): Intel XvMC decoder disabled
@@ -273,7 +271,7 @@
 (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
 (EE) GLX: could not load software renderer
 (II) GLX: no usable GL providers found for screen 0
-(II) intel(0): Setting screen physical size to 270 x 203
+(II) intel(0): Setting screen physical size to 330 x 210
 (II) config/hal: Adding input device SynPS/2 Synaptics TouchPad
 (II) LoadModule: "synaptics"
 (II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
@@ -331,3 +329,38 @@
 (II) UnloadModule: "evdev"
 (II) Video Bus: Close
 (II) UnloadModule: "evdev"
+
+Backtrace:
+0: /usr/bin/X11/X(xorg_backtrace+0x3b) [0x813158b]
+1: /usr/bin/X11/X(xf86SigHandler+0x51) [0x80c5451]
+2: [0xb7ee2400]
+3: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb79401dc]
+4: /usr/bin/X11/X(FreePicture+0x144) [0x816c964]
+5: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb795b6e8]
+6: /usr/lib/xorg/modules/drivers//intel_drv.so(uxa_glyphs_fini+0x4c) [0xb795b77c]
+7: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb79594b9]
+8: /usr/bin/X11/X [0x810ee9c]
+9: /usr/bin/X11/X [0x8179104]
+10: /usr/bin/X11/X [0x811b1bc]
+11: /usr/bin/X11/X [0x8121a1c]
+12: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb791ccd7]
+13: /usr/bin/X11/X [0x815c78b]
+14: /usr/bin/X11/X [0x80cca5e]
+15: /usr/bin/X11/X [0x80c4f4b]
+16: /usr/bin/X11/X [0x80c9673]
+17: /usr/bin/X11/X [0x8147525]
+18: /usr/bin/X11/X [0x8176c0c]
+19: /usr/bin/X11/X [0x81412eb]
+20: /usr/bin/X11/X(main+0x454) [0x8071784]
+21: /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7ab1775]
+22: /usr/bin/X11/X [0x8070ba1]
+
+Fatal server error:
+Caught signal 11.  Server aborting
+
+
+Please consult the The X.Org Foundation support 
+	 at http://wiki.x.org
+ for help. 
+Please also check the log file at "/var/log/Xorg.0.log" for additional information.
+