Bug 876295

Summary: [vgaswitcheroo] Switching to discrete graphics disconnects Internal display
Product: Red Hat Enterprise Linux 6 Reporter: Jiri Koten <jkoten>
Component: kernelAssignee: Dave Airlie <airlied>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: airlied, tpelka, vsharapo
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 11:44:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dmesg output
none
Xorg log none

Description Jiri Koten 2012-11-13 18:38:56 UTC
Description of problem:
I have ThinkPad T430 (2349G6G) with NV Optimus. When I switch to discrete graphics I get output only from  display port. Internal LVDS1 display is disconnected.

On the other hand with integrated graphics I only get LVDS1 and VGA output, no DP or DVI.  

$ xrandr -q
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
LVDS-1 disconnected (normal left inverted right x axis y axis)
VGA-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 459mm x 296mm
   1680x1050      59.9*+
   1680x945       60.0  
   1400x1050      59.9  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       74.9     59.9  
   1152x864       75.0  
   1280x768       74.9     60.0  
   1024x768       75.1     70.1     60.0  
   1024x576       60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   848x480        60.0  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  


hw: 
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [Quadro NVS 5400M] [10de:0def] (rev a1)



Version-Release number of selected component (if applicable):
kernel-2.6.32-340.el6.x86_64
mesa-dri-drivers-9.0-0.2.el6.x86_64
xorg-x11-server-Xorg-1.13.0-7.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. switch to discrete graphics
# echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch
2. start Xorg

  
Actual results:
LVDS-1 disconnected (normal left inverted right x axis y axis)
Internal Laptop screen is dead

Expected results:
Internal screen is on

Additional info:

Comment 1 Jiri Koten 2012-11-13 18:42:00 UTC
Created attachment 644322 [details]
dmesg output

[snip]
...
VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG_.VID_ handle
...
vga_switcheroo: enabled
vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem
...
i915: switched off
i915 0000:00:02.0: power state changed by ACPI to D3

Comment 2 Jiri Koten 2012-11-13 18:44:25 UTC
Created attachment 644324 [details]
Xorg log

Comment 3 Dave Airlie 2012-12-12 03:16:51 UTC
does it work with the bios option?

most of the new optimus laptops don't really support old style GPU switching.

Comment 4 Jiri Koten 2012-12-12 10:00:36 UTC
(In reply to comment #3)
> does it work with the bios option?
No sure what you mean exactly. When I switch to discrete graphics mode (nV graphics) in BIOS a get internal screen and all the outputs (VGA included). When I switch to integrated Intel graphics I'm still limited to Internal LVDS screen ans VGA output. 

> most of the new optimus laptops don't really support old style GPU switching.
What the "old style" refers to?

Comment 5 RHEL Program Management 2012-12-16 06:48:32 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 7 RHEL Program Management 2013-10-14 04:39:30 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 8 Jan Kurik 2017-12-06 11:44:05 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/