Skip to contentSkip to conversation

New: xrandr does not detect screen

Bug 54512 [email protected] 1 participant 10 messages Sep 4, 2012 – Sep 5, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=54512

Bug #: 54512
Summary: xrandr does not detect screen
Classification: Unclassified
Product: xorg
Version: unspecified
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]

Created attachment 66641
--> https://bugs.freedesktop.org/attachment.cgi?id=66641
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 :)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

Jean-Louis Dupond <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|xrandr does not detect      |xrandr does not detect HDMI
                   |screen                      |screen
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

--- Comment #1 from Ben Skeggs <[email protected]> 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...

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

--- Comment #2 from Jean-Louis Dupond <[email protected]> 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

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

--- Comment #3 from Jean-Louis Dupond <[email protected]> 2012-09-05 05:31:38 UTC --- Created attachment 66653
--> https://bugs.freedesktop.org/attachment.cgi?id=66653
xorg log

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

--- Comment #4 from Jean-Louis Dupond <[email protected]> 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)
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

--- Comment #5 from Jean-Louis Dupond <[email protected]> 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)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

--- Comment #6 from Ben Skeggs <[email protected]> 2012-09-05 06:42:39 UTC --- (In reply to comment #2)

Quoted 6 lines

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).

Quoted 5 lines

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.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

--- Comment #7 from Ben Skeggs <[email protected]> 2012-09-05 06:43:38 UTC --- (In reply to comment #4)

Quoted 23 lines

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
Quoted 1 line

native mode, forcing panel scaling

This is expected if the unplug happens while the driver is in the middle of fetching the EDID.

Quoted 21 lines

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)
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 54512] xrandr does not detect HDMI screen

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=54512

Ben Skeggs <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |NOTABUG

--- Comment #8 from Ben Skeggs <[email protected]> 2012-09-05 06:44:46 UTC --- (In reply to comment #5)

Quoted 6 lines

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 :)

Quoted 13 lines

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)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.