Bug 54512 - xrandr does not detect HDMI screen
Summary: xrandr does not detect HDMI screen
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 22:00 UTC by Jean-Louis Dupond
Modified: 2012-09-05 06:44 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg log (215.35 KB, text/plain)
2012-09-04 22:00 UTC, Jean-Louis Dupond
no flags Details
xorg log (36.70 KB, text/x-log)
2012-09-05 05:31 UTC, Jean-Louis Dupond
no flags Details

Description Jean-Louis Dupond 2012-09-04 22:00:24 UTC
Created attachment 66641 [details]
dmesg log

Hi

I'm having some issue with my GeForce GT 540M card.

The problem is that xrandr doesn't detect my screen when I connect it with HDMI:
HDMI1 disconnected (normal left inverted right x axis y axis)

But if I manually configure the HDMI device in xorg.conf, I can get video output on my screen. So that part seems to be working correctly.

But as xrandr doesn't detect my screen, i'm unable to configure dualscreen correctly.

Attached you can find my dmesg log with drm.debug=0x4.
The last line is when I pulled out the HDMI cable.

I tested the current Ubuntu Quantal kernel, but also the daily kernel, and both have the issue.

I hope somebody can take a look and fix the issue!
Thanks for all the work on nouveau :)
Comment 1 Ben Skeggs 2012-09-05 02:03:25 UTC
Can I see your Xorg.0.log please.  Nouveau appears to be detecting your HDMI display just fine from what I can see.. Not sure yet why X thinks it doesn't...
Comment 2 Jean-Louis Dupond 2012-09-05 05:31:06 UTC
Thanks for the quick response.

Attached my Xorg.0.log now.
This is when I booted my system WITHOUT a xorg.conf.
I do get the boot logo on my HDMI screen, but still xrandr doesn't see my screen.

Also notice something strange in the xrandr output:
HDMI2 disconnected (normal left inverted right x axis y axis)

It now says HDMI2 somehow
Comment 3 Jean-Louis Dupond 2012-09-05 05:31:38 UTC
Created attachment 66653 [details]
xorg log
Comment 4 Jean-Louis Dupond 2012-09-05 05:35:11 UTC
When I pull out my HDMI cable, dmesg outputs the following also:
Sep  5 07:33:01 laptop-jl kernel: [  496.934150] [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid, remainder is 179
Sep  5 07:33:01 laptop-jl kernel: [  496.934158] Raw EDID:
Sep  5 07:33:01 laptop-jl kernel: [  496.934163]  	00 ff ff ff ff ff ff 00 4c 2d 86 04 00 00 00 00
Sep  5 07:33:01 laptop-jl kernel: [  496.934167]  	06 13 01 03 80 10 09 78 0a ee 91 a3 54 4c 99 26
Sep  5 07:33:01 laptop-jl kernel: [  496.934169]  	0f 50 54 bf ef 80 71 4f 81 40 81 80 a9 40 00 00
Sep  5 07:33:01 laptop-jl kernel: [  496.934172]  	00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep  5 07:33:01 laptop-jl kernel: [  496.934175]  	ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep  5 07:33:01 laptop-jl kernel: [  496.934178]  	ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep  5 07:33:01 laptop-jl kernel: [  496.934181]  	ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep  5 07:33:01 laptop-jl kernel: [  496.934183]  	ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep  5 07:33:01 laptop-jl kernel: [  496.935274] [drm] nouveau 0000:01:00.0: DDC responded, but no EDID for HDMI-A-1
Sep  5 07:33:01 laptop-jl kernel: [  496.991554] [drm] nouveau 0000:01:00.0: no native mode, forcing panel scaling

And plugin:
Sep  5 07:33:21 laptop-jl kernel: [  517.132141] [drm] nouveau 0000:01:00.0: no native mode, forcing panel scaling


Xorg.0.log:
Remove cable:
[   496.925] removing GPU device /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 838326512
[   496.925] xf86: remove device 0 /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
[   496.925] (II) config/udev: Adding drm device (/dev/dri/card0)


Insert cable:
[   517.017] removing GPU device /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 838070656
[   517.017] xf86: remove device 0 /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
[   517.017] (II) config/udev: Adding drm device (/dev/dri/card0)
Comment 5 Jean-Louis Dupond 2012-09-05 05:46:33 UTC
Now I booted my system without HDMI cable in. When I insert the cable after bootup:

dmesg:
Sep  5 07:43:53 laptop-jl kernel: [   69.233511] [drm] nouveau 0000:01:00.0: no native mode, forcing panel scaling

Xorg.0.log:
[    68.990] removing GPU device /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1 1889035200
[    68.990] xf86: remove device 0 /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[    68.990] (II) config/udev: Adding drm device (/dev/dri/card1)


xrandr still:
HDMI1 disconnected (normal left inverted right x axis y axis)

(notice its HDMI1 again)
Comment 6 Ben Skeggs 2012-09-05 06:42:39 UTC
(In reply to comment #2)
> Thanks for the quick response.
> 
> Attached my Xorg.0.log now.
> This is when I booted my system WITHOUT a xorg.conf.
> I do get the boot logo on my HDMI screen, but still xrandr doesn't see my
> screen.
Yes, I suspected this was your issue initially and your X log confirms it.  You're using an Optimus laptop, and the Intel GPU (which is the one X is using) is NOT wired up the the HDMI connector.

The boot logo on your screen *is* nouveau's doing, and show's nouveau's (mostly, see below) done its job correctly.

If possible in you BIOS setup, you can select "Discrete Graphics" mode and your NVIDIA GPU will become the primary adaptor and X should JustWork with the HDMI display.  But, a great deal of manufacturers don't allow this mode, so it may not be available.

Your last resort until X is able to handle Optimus properly (coming up in the next X server release), is to create an xorg.conf specifying two X screens, one on the intel (to drive the laptop panel) and another on nouveau (to handle your external outputs).

> 
> Also notice something strange in the xrandr output:
> HDMI2 disconnected (normal left inverted right x axis y axis)
> 
> It now says HDMI2 somehow
This will highly depend on the ordering of which the Intel and Nouveau drivers load and create the connector objects.
Comment 7 Ben Skeggs 2012-09-05 06:43:38 UTC
(In reply to comment #4)
> When I pull out my HDMI cable, dmesg outputs the following also:
> Sep  5 07:33:01 laptop-jl kernel: [  496.934150] [drm:drm_edid_block_valid]
> *ERROR* EDID checksum is invalid, remainder is 179
> Sep  5 07:33:01 laptop-jl kernel: [  496.934158] Raw EDID:
> Sep  5 07:33:01 laptop-jl kernel: [  496.934163]      00 ff ff ff ff ff ff 00
> 4c 2d 86 04 00 00 00 00
> Sep  5 07:33:01 laptop-jl kernel: [  496.934167]      06 13 01 03 80 10 09 78
> 0a ee 91 a3 54 4c 99 26
> Sep  5 07:33:01 laptop-jl kernel: [  496.934169]      0f 50 54 bf ef 80 71 4f
> 81 40 81 80 a9 40 00 00
> Sep  5 07:33:01 laptop-jl kernel: [  496.934172]      00 ff ff ff ff ff ff ff
> ff ff ff ff ff ff ff ff
> Sep  5 07:33:01 laptop-jl kernel: [  496.934175]      ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff ff ff
> Sep  5 07:33:01 laptop-jl kernel: [  496.934178]      ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff ff ff
> Sep  5 07:33:01 laptop-jl kernel: [  496.934181]      ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff ff ff
> Sep  5 07:33:01 laptop-jl kernel: [  496.934183]      ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff ff ff
> Sep  5 07:33:01 laptop-jl kernel: [  496.935274] [drm] nouveau 0000:01:00.0:
> DDC responded, but no EDID for HDMI-A-1
> Sep  5 07:33:01 laptop-jl kernel: [  496.991554] [drm] nouveau 0000:01:00.0: no
> native mode, forcing panel scaling
This is expected if the unplug happens while the driver is in the middle of fetching the EDID.

> 
> And plugin:
> Sep  5 07:33:21 laptop-jl kernel: [  517.132141] [drm] nouveau 0000:01:00.0: no
> native mode, forcing panel scaling
> 
> 
> Xorg.0.log:
> Remove cable:
> [   496.925] removing GPU device
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 838326512
> [   496.925] xf86: remove device 0
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
> [   496.925] (II) config/udev: Adding drm device (/dev/dri/card0)
> 
> 
> Insert cable:
> [   517.017] removing GPU device
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 838070656
> [   517.017] xf86: remove device 0
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
> [   517.017] (II) config/udev: Adding drm device (/dev/dri/card0)
Comment 8 Ben Skeggs 2012-09-05 06:44:46 UTC
(In reply to comment #5)
> Now I booted my system without HDMI cable in. When I insert the cable after
> bootup:
> 
> dmesg:
> Sep  5 07:43:53 laptop-jl kernel: [   69.233511] [drm] nouveau 0000:01:00.0: no
> native mode, forcing panel scaling\
This is probably a bug in nouveau I'd say, but it deserves a new report.

I'm closing this bug due to it not actually being a bug :)

> 
> Xorg.0.log:
> [    68.990] removing GPU device
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1 1889035200
> [    68.990] xf86: remove device 0
> /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
> [    68.990] (II) config/udev: Adding drm device (/dev/dri/card1)
> 
> 
> xrandr still:
> HDMI1 disconnected (normal left inverted right x axis y axis)
> 
> (notice its HDMI1 again)


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.