No HDMI Video with Optimus Intel i915

Bug #794503 reported by David Schoen
70
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When I plug in or remove a HDMI connected screen I am getting this single line in dmesg:
[ 2472.767030] ACPI Exception: AE_NOT_FOUND, Evaluating _DOD (20110112/video-1139)
the message is the same for plugging in or removing the plug.

When listing the monitors under "System > Monitors" I can only detect either the laptop screen or screens connected via the Mini DisplayPort. Anything plugged in to the HDMI port is not detected.

I can use the HDMI connection with the version of Windows supplied with the laptop so I do not suspect a hardware fault.

The Intel graphics card is reported by lspci as:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 050e
        Flags: bus master, fast devsel, latency 0, IRQ 45
        Memory at f1400000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 4000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915

The nVidia card is reported as:
01:00.0 VGA compatible controller: nVidia Corporation Device 0df4 (rev a1) (prog-if 00 [VGA controller])
        Flags: fast devsel, IRQ 16
        [virtual] Memory at f0000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 3000 [size=128]
        [virtual] Expansion ROM at f1000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel modules: nvidia-current, nouveau, nvidiafb

I am using a Dell XPS L502X laptop.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-8-generic 2.6.38-8.42
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC665 Analog [ALC665 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: dschoen 8363 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xf1c00000 irq 55'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10ec0665,1028050e,00100003 HDA:80862805,80860101,00100000'
   Controls : 26
   Simple ctrls : 12
Date: Wed Jun 8 21:27:13 2011
HibernationDevice: RESUME=UUID=addfffe7-af25-4eef-a73b-e076a7245d2b
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426)
MachineType: Dell Inc. Dell System XPS L502X
ProcEnviron:
 LANGUAGE=en_AU:en
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-2.6.38-8-generic root=/dev/mapper/dave-ubuntu--root ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-8-generic N/A
 linux-backports-modules-2.6.38-8-generic N/A
 linux-firmware 1.52
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/04/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A05
dmi.board.name: 0NJT03
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnDellInc.:bvrA05:bd05/04/2011:svnDellInc.:pnDellSystemXPSL502X:pvr:rvnDellInc.:rn0NJT03:rvrA00:cvnDellInc.:ct8:cvr0.1:
dmi.product.name: Dell System XPS L502X
dmi.sys.vendor: Dell Inc.

Revision history for this message
David Schoen (neerolyte) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
madbiologist (me-again) wrote :

I'm not sure if this is actually an Optimus related bug, but:

Thanks to Rocko (rockorequin) in bug #700646

"This will give you nvidia optimus support in Linux: https://github.com/MrMEEE/bumblebee

ie do something like:

mkdir ~/src
cd ~/src
git clone https://github.com/MrMEEE/bumblebee.git
cd bumblebee
sudo ./install.sh

Note that you can uninstall it if you want via the ~/src/bumblebee/install-files/bumblebee-uninstall script.

bumblebee uses the Intel card for normal graphics and VirtualGL to use the nvidia card if you run the application preceding it with optirun64 (or optirun32 for 32 bit applications like wine). It works great on my i7 + 540M!"

More information about the bumblebee (prime-ng 2.0) for Optimus that Rocko described above can be found at http://www.phoronix.com/scan.php?page=news_item&px=OTQxNg
An alternative approach for some Optimus laptops was also added to the Linux 3.0 kernel which will be used by the upcoming Ubuntu 11.10 "Oneiric Ocelot" - see http://www.phoronix.com/scan.php?page=news_item&px=OTQzMA for further details (this article refers to the 2.6.40 kernel but it was decided to rename this kernel to 3.0).

Ubuntu 11.10 "Oneiric Ocelot" alpha 3 was released on August 4th 2011 if you want to test it before it's final release on October 13th 2011 - see https://wiki.ubuntu.com/OneiricReleaseSchedule

Revision history for this message
David Schoen (neerolyte) wrote :

Hi, Thanks for following up.

I have tried with bumblebee both installed and removed, bumblebee allows optirun to let a single process befit from the Nvidia chipset, the intel chipset still needs to drive the HDMI port (which is where the current issue is).

Cheers,
Dave

Revision history for this message
Julian Wiedmann (jwiedmann) wrote :

It seems like the HDMI port is only wired up to the Nvidia chip, see https://lists.launchpad.net/hybrid-graphics-linux/msg00701.html

Revision history for this message
David Schoen (neerolyte) wrote :

Hi, You're right it is definitely wired up to the nvidia GPU.

After a bit of prodding I was able to pick up events on the HDMI port with the nouveau module loaded:
[ 529.473101] [drm] nouveau 0000:01:00.0: unplugged HDMI-A-2
[ 533.386255] [drm] nouveau 0000:01:00.0: plugged HDMI-A-2

which is better! but I haven't yet managed to get the hdmi port to display anything using any of the recommended configurations or work arounds on the link posted.

xrandr is still only seeing the plug for the screen that's part of the laptop:
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080 60.0*+ 59.9
[...]
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)

It's worth noting for anyone interested in using this laptop with Ubuntu that the Mini DisplayPort does "just work".

Revision history for this message
David Schoen (neerolyte) wrote :

Ahah, I was missing the dmesg line:
[ 127.878392] vga_switcheroo: client 0 refused switch

Stopping X and performing the switch does allow switching to the nvidia GPU ("DIS"crete):
# cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD: :Pwr:0000:00:02.0
1:DIS:+:Pwr:0000:01:00.0

and picking up the screen:
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-2 connected (normal left inverted right x axis y axis)
   1024x768 60.0
   800x600 60.3 56.2
   848x480 60.0
   640x480 59.9
HDMI-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080 60.0*+ 50.0
[...]

So it's now almost there, I can use Intel xor nVidia GPUs but not both at the same time.

I don't know what the VGA plug that xrandr is picking up is, I can enable it but it doesn't show up anywhere and I have no external VGA plugs.

Revision history for this message
madbiologist (me-again) wrote :

David - one of the Nouveau developers is working on improving support for MXM (Mobile PCI Express Module) chips (including many Optimus laptops) and needs some more data to check his implementation.

To see if you can help, please navigate to /sys/firmware/acpi/tables and run:

grep MXMS *

(note the space before the *) Please let us know whether there is any output or not, and if there is please post the output here.

Revision history for this message
David Schoen (neerolyte) wrote :

No matches:
root@dave-xps:/sys/firmware/acpi/tables# strings * | grep MXMS
root@dave-xps:/sys/firmware/acpi/tables#

I've uploaded the whole directory in case that helps too:
http://lyte.id.au/paste/tables_for_launchpad_294503.tgz

Revision history for this message
David Schoen (neerolyte) wrote :

Actually I just realised that the tar of those tables was useless as all the files tar as 0 bytes :S sorry.

Revision history for this message
David Schoen (neerolyte) wrote :

And the command you actually asked for (clearly not enough coffee today):
root@dave-xps:/sys/firmware/acpi/tables# grep MXMS *
root@dave-xps:/sys/firmware/acpi/tables#

Revision history for this message
madbiologist (me-again) wrote :

Thanks for testing. I don't think we need the whole directory of all the tables.

Revision history for this message
penalvch (penalvch) wrote :

David Schoen, thank you for reporting this and helping make Ubuntu better. This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux <replace-with-bug-number>

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: needs-upstream-testing
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.