Bug 22757

Summary: [GM45] [KMS] Disabled display not disabled after VT switching
Product: xorg Reporter: Bryce Harrington <bryce>
Component: Driver/intelAssignee: Jesse Barnes <jbarnes>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: low CC: bugs
Version: 7.4 (2008.09)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
CurrentDmesg.txt
none
XorgLog.txt none

Description Bryce Harrington 2009-07-13 14:37:16 UTC
Created attachment 27649 [details]
CurrentDmesg.txt

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

[Problem]
If you disable a display then vt switch to console the display gets re-enabled.  Also, vt switching back into X does not re-disable the display.

[Original Report]
I have an internal laptop display and an external display attached via DVI. Both displays are enabled during boot.

1. Disable laptop display (System -> Settings -> Display), leaving the external display the only one being enabled
2. Switch to another vt -> both displays are activated and show the console
3. Switch back to X -> laptop display is not disabled and still showing the console, while the external display is displaying X

ProblemType: Bug
Architecture: amd64
Date: Sun Jun 14 10:56:49 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 14:38:10 UTC
Created attachment 27650 [details]
XorgLog.txt
Comment 2 Bryce Harrington 2009-07-15 01:41:07 UTC
Sort of a different use case, but seems to be essentially the same bug:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/398278
Comment 3 Kai Jauch 2009-07-29 04:03:01 UTC
Just noticed the following:
LVDS1 is disabled by GNOME according to the display settings set there. VT-switching enables LVDS1 and shows the console. If I switch back to X, I first have to manually enable LVDS1 (xrandr --output LVDS1 --auto) before I can turn it off again (xrandr --output LVDS1 --off). After I've done that, LVDS1 isn't enabled anymore when I vt-switch and stays off, on console and X.

xrandr -q reports the following (before switching to vt1 the first time, while LVDS1 displays the console although I switched back to X and after I manually disabled it):

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)
Comment 4 Kai Jauch 2009-07-29 04:14:29 UTC
Forgot to include package versions. Tested with xserver-xorg-video-intel 2:2.8.0-0ubuntu1 and linux-image-2.6.31-4-generic.
Comment 5 Jesse Barnes 2009-10-05 11:12:19 UTC
I think this should be fixed by the kernel commit:

commit e87b2c42b397ae64ac13a390011931f7ef222321
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Thu Sep 17 18:14:41 2009 -0700

    drm: fix drm_fb_helper handling of kernel crtcs

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.