Bug 22753 - [GM45] [KMS] calling xrandr freezes X for a few seconds
Summary: [GM45] [KMS] calling xrandr freezes X for a few seconds
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: low normal
Assignee: Jesse Barnes
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 13:16 UTC by Bryce Harrington
Modified: 2009-10-05 11:13 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
CurrentDmesg.txt (6.05 KB, text/plain)
2009-07-13 13:16 UTC, Bryce Harrington
no flags Details
XorgLog.txt (416.69 KB, text/plain)
2009-07-13 13:19 UTC, Bryce Harrington
no flags Details

Description Bryce Harrington 2009-07-13 13:16:57 UTC
Created attachment 27642 [details]
CurrentDmesg.txt

Forwarding this bug from Ubuntu reporter Kai Jauch:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/386920

[Problem]
With KMS enabled, xrandr calls take several seconds, which causes the login process to be delayed.

[Original report]
Calling xrandr takes nearly 3 seconds with KMS, during which X is not usable (mouse pointer not movable, static image).

This probably causes the login process (gnome) to delay considerably (as AFAIK during gnome startup the resolutions are probed and set to user defined settings):
- Login and move mouse
- Mouse cursor begins to stutter for several seconds
- Everything is fine after the panel has loaded, although it has taken considerably longer than without KMS

$ time xrandr -q
Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected (normal left inverted right x axis y axis)
   1440x900 60.0 + 40.0
DVI1 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 432mm x 324mm
   1600x1200 60.0*+
   1280x1024 75.0
   1152x864 75.0
   1024x768 75.1 70.1 60.0
   832x624 74.6
   800x600 72.2 75.0 60.3 56.2
   640x480 72.8 75.0 66.7 60.0
   720x400 70.1
DVI2 disconnected (normal left inverted right x axis y axis)
TV1 disconnected (normal left inverted right x axis y axis)

real 0m2.799s
user 0m0.000s
sys 0m0.008s

ProblemType: Bug
Architecture: amd64
Date: Sun Jun 14 11:47:12 2009
DistroRelease: Ubuntu 9.10
MachineType: Dell Inc. Latitude E6400
Package: xserver-xorg-video-intel 2:2.7.99.1+git20090602.ec2fde7c-0ubuntu2
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.30-9-generic root=UUID=8a24f1b2-f134-4248-b51f-c06d4095205f ro quiet i915.modeset=1
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.30-9.10-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4~5ubuntu21
 libgl1-mesa-glx 7.4.1-1ubuntu2
 libdrm2 2.4.11-0ubuntu1
 xserver-xorg-video-intel 2:2.7.99.1+git20090602.ec2fde7c-0ubuntu2
 xserver-xorg-video-ati 1:6.12.2-2ubuntu1
SourcePackage: xserver-xorg-video-intel
Uname: Linux 2.6.30-9-generic x86_64
dmi.bios.date: 05/11/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A14
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA14:bd05/11/2009:svnDellInc.:pnLatitudeE6400:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Latitude E6400
dmi.sys.vendor: Dell Inc.
fglrx: Not loaded
system:
 distro: Ubuntu
 architecture: x86_64kernel: 2.6.30-9-generic
Comment 1 Bryce Harrington 2009-07-13 13:19:11 UTC
Created attachment 27643 [details]
XorgLog.txt

In the Xorg.0.log it seems X may be having some trouble parsing the EDID
(WW) intel(0): Unknown vendor-specific block 0

User's xorg.conf has stock/default settings.
Comment 2 Bryce Harrington 2009-07-13 13:20:00 UTC
User's follow up comment:

"This appears to be only the case if something is attached to the DVI1 port:

$ time xrandr
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 303mm x 190mm
   1440x900 60.0*+ 40.0
DVI1 disconnected (normal left inverted right x axis y axis)
DVI2 disconnected (normal left inverted right x axis y axis)
TV1 disconnected (normal left inverted right x axis y axis)

real 0m0.446s
user 0m0.000s
sys 0m0.004s"
Comment 3 Kai Jauch 2009-07-29 04:13:10 UTC
Appears to be fixed with xserver-xorg-video-intel 2:2.8.0-0ubuntu1 and linux-image-2.6.31-4-generic.

$ time xrandr -q
Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected (normal left inverted right x axis y axis)
   1440x900 60.0 + 59.9 40.0
   1360x768 59.8
   1152x864 100.0 85.1 85.0 75.0 75.0 70.0 60.0
   1024x768 85.0 75.0 70.1 60.0
   832x624 74.6
   800x600 85.1 72.2 75.0 60.3 56.2
   640x480 85.0 72.8 75.0 59.9
   720x400 85.0
   640x400 85.1
   640x350 85.1
DVI1 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 432mm x 324mm
   1600x1200 60.0*+
   1280x1024 75.0
   1152x864 75.0
   1024x768 75.1 70.1 60.0
   832x624 74.6
   800x600 72.2 75.0 60.3 56.2
   640x480 72.8 75.0 66.7 60.0
   720x400 70.1
DP1 disconnected (normal left inverted right x axis y axis)
DVI2 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
TV1 disconnected (normal left inverted right x axis y axis)

real 0m0.364s
user 0m0.000s
sys 0m0.004s

I'm unable to reproduce the freezes anymore.
Comment 4 Jesse Barnes 2009-10-05 11:13:13 UTC
Thanks for the update.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.