Skip to contentSkip to conversation

New: nouveau - incorrect resolution on an external monitor attached to a laptop

Bug 20361 [email protected] 1 participant 21 messages Feb 27, 2009 – Aug 18, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

http://bugs.freedesktop.org/show_bug.cgi?id=20361

Summary: nouveau - incorrect resolution on an external monitor
attached to a laptop
Product: xorg
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]

Created an attachment (id=23375)
--> (http://bugs.freedesktop.org/attachment.cgi?id=23375)
X log

I'm using the nouveau driver and offb shipped with Fedora 10 (xorg-x11-drv-nouveau-0.0.11-1.20090106git133c1a5.fc10.ppc) on my Powerobook G4 12" (NV34M [GeForce FX Go5200]). When an external monitor is connected, incorrect (lower) resolution is used with it (seems to be the same resolution as the one of laptop's built-in LCD screen). X logs, dmesg output and X config attached.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #1 from Alex Kanavin <[email protected]> 2009-02-27 11:06:09 PST --- Created an attachment (id=23376)
--> (http://bugs.freedesktop.org/attachment.cgi?id=23376)
dmesg output

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #2 from Alex Kanavin <[email protected]> 2009-02-27 11:06:46 PST --- Created an attachment (id=23377)
--> (http://bugs.freedesktop.org/attachment.cgi?id=23377)
X configuration

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

Alex Kanavin <[email protected]> changed:

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

  Attachment #23375|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

Alex Kanavin <[email protected]> changed:

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

  Attachment #23376|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

Alex Kanavin <[email protected]> changed:

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

  Attachment #23377|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #3 from Maarten Maathuis <[email protected]> 2009-02-27 11:11:22 PST --- Is the monitor attached at X startup?

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #4 from Alex Kanavin <[email protected]> 2009-02-27 11:15:33 PST --- Yes, it is. I'm not trying to hotplug anything yet.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #5 from Maarten Maathuis <[email protected]> 2009-02-27 11:19:59 PST --- My guess is that the arbitrary choice is made that your lvds size is the
starting size. Which results in a framebuffer which cannot support larger
resolutions.

You'll have to add a virtual line (grep
http://www.thinkwiki.org/wiki/Xorg_RandR_1.2).

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #6 from Alex Kanavin <[email protected]> 2009-02-27 11:32:52 PST --- Adding virtual did not help. I'll attach the new xorg.conf in case I did it
wrong.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #7 from Alex Kanavin <[email protected]> 2009-02-27 11:33:27 PST --- Created an attachment (id=23378)
--> (http://bugs.freedesktop.org/attachment.cgi?id=23378)
X configuration with virtual keyword

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #8 from Maarten Maathuis <[email protected]> 2009-02-27 11:36:04 PST --- Tried manually setting the desired resolution (if it isn't doing it
automatically in the first place it won't start magically doing something
else)?

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #9 from Alex Kanavin <[email protected]> 2009-02-27 11:51:52 PST --- Yep, works great after
[ak@localhost SPECS]$ xrandr --output DVI-I-0 --mode 1920x1200

except I'm seeing slight pixel corruption, but that'd be a separate bug.

Anyway, this doesn't explain the non-sensible default choices - I'm no xrandr guru, but it's supposed to just work, no?

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #10 from Maarten Maathuis <[email protected]> 2009-02-27 11:54:37 PST --- Default choices became better at some point, not sure if xserver 1.5.3 already
had them. Dynamic resizing of framebuffer will happen when we have a good
memory manager.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #11 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-02-28 06:09:52 PST --- As Maarten says, this is an xserver feature. See
http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/modes/xf86Crtc.c?h=server-1.5-branch
and search for "Using exact sizes for initial modes" as appears in your log
just before it picks 1024x768 for both heads.

Looking at the xf86TargetPreferred function (in the same file) that selects this behaviour, it tries to pick the largest preferred mode (an attribute specified in the screen's EDID) where the mode is available on all screens, hence you get 1024x768 as the laptop screen's preferred mode. This behaviour appears mostly unchanged in master (
http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/modes/xf86Crtc.c ), so if you want it fixed you'll have to file an xserver bug, but I suspect they'd argue it's reasonable and intended behaviour.

Alternatively, before using this method of mode selection, the xserver allows consideration of user-specified preferences, so you could configure it in your xorg.conf (see http://wiki.debian.org/XStrikeForce/HowToRandR12 for details). Also any DM you use may have a control panel to set this up for you when X starts.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #12 from Alex Kanavin <[email protected]> 2009-02-28 07:50:17 PST --- I didn't mention this (thought it'd be obvious) but the notebook lid is closed.
I think it's reasonable to detect this and not take the internal screen into
consideration at all, and just set the external screen to its native
resolution. Could it be that the driver somehow incorrectly assumes the
internal screen is visible/enabled?

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #13 from Maarten Maathuis <[email protected]> 2009-02-28 09:09:25 PST --- As far as i'm aware we don't know when a lid is open or closed, so we assume
it's always on.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #14 from Alex Kanavin <[email protected]> 2009-02-28 09:29:07 PST --- The lid status is very easy to find out though, for example from hal:

udi = '/org/freedesktop/Hal/devices/pmu_lid'
button.has_state = true (bool)
button.state.value = true (bool)
button.type = 'lid' (string)
info.addons = {'hald-addon-pmu'} (string list) info.capabilities = {'button'} (string list) info.category = 'button' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string) info.product = 'Lid Switch' (string)
info.udi = '/org/freedesktop/Hal/devices/pmu_lid' (string) linux.hotplug_type = 6 (0x6) (int)
linux.pmu_path = '/proc/pmu/info' (string) linux.pmu_type = 2 (0x2) (int)

Does X track the lid in any way?

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #15 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-03-11 18:12:59 PST --- (In reply to comment #14)

Quoted 1 line

Does X track the lid in any way?

I don't believe so.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=20361

--- Comment #16 from Alex Kanavin <[email protected]> 2009-03-12 04:58:03 PST --- So seems like correctly supporting all scenarios is a distribution's job?

Nouveau is the default driver in upcoming Fedora, so I should probably file this issue with them, if they haven't made the correct tweaks yet.

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

[Bug 20361] nouveau - incorrect resolution on an external monitor attached to a laptop

In reply to a message not in the archive

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

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #17 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- It appears that this bug report has laid dormant for quite a while. Sorry we haven't gotten to it. Since we fix bugs all the time, chances are pretty good that your issue has been fixed with the latest software. Please give it a shot. (Linux kernel 3.10.7, xf86-video-nouveau 1.0.9, mesa 9.1.6, or their git versions.) If upgrading to the latest isn't an option for you, your distro's bugzilla is probably the right destination for your bug report.

In an effort to clean up our bug list, we're pre-emptively closing all bugs that haven't seen updates since 2011. If the original issue remains, please make sure to provide fresh info, see http://nouveau.freedesktop.org/wiki/Bugs/
for what we need to see, and re-open this one.

Thanks,

The Nouveau Team

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau