Bug 1059 - Mageia fails to set the correct resolution on widescreen Thinkpad SL510
Summary: Mageia fails to set the correct resolution on widescreen Thinkpad SL510
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: High normal
Target Milestone: ---
Assignee: Anssi Hannula
QA Contact:
URL:
Whiteboard:
Keywords:
: 1105 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-29 14:16 CEST by cheer xiao
Modified: 2011-05-24 10:02 CEST (History)
3 users (show)

See Also:
Source RPM: drakx-kbd-mouse-x11
CVE:
Status comment:


Attachments
Detailed information of ATI Mobility Radeon HD 4500 card, obtained by sudo lspci -vv -s01:00.0 (2.15 KB, text/plain)
2011-05-01 13:55 CEST, cheer xiao
Details
Output of monitor-edid (479 bytes, text/plain)
2011-05-04 09:03 CEST, cheer xiao
Details
xorg.conf of the live system (1.95 KB, text/plain)
2011-05-04 09:04 CEST, cheer xiao
Details
Xorg.0.log of live system (43.60 KB, text/plain)
2011-05-04 09:05 CEST, cheer xiao
Details
monitor-edid (479 bytes, text/plain)
2011-05-04 19:35 CEST, Magnus Rasche
Details
xorg.conf (Live) (1.95 KB, text/plain)
2011-05-04 19:38 CEST, Magnus Rasche
Details
Xorg.0.log (39.92 KB, text/plain)
2011-05-04 19:40 CEST, Magnus Rasche
Details

Description cheer xiao 2011-04-29 14:16:50 CEST
Description of problem:

I have a Thinkpad SL510, with ATI graphics card. Most other major distros with the vanilla open-source radeon driver is able to set the natural resolution, which is 1366x768. (Early or late during startup. For example, Ubuntu would usually present me with a 1024x768 splash screen, but after some flicker the resolution jumps to 1366x768. Fedora is able to get the right resolution just after I hit the entry in the bootloader.) However Mageia fails... Here is how it fails, quite a long tale.

In the bootloader screen I left the "resolution" menu untouched. Mageia boots and I see the splash screen, in resolution 1024x768. After a while the screen goes blank, and I'm dropped in the console, which says "entering non-interactive startup". I noticed that the resolution gets right, i.e. 1366x768. And when the pre-login setup appears (asking keyboard layout, time zone, etc.), the resolution goes to 1024x768. After I finish this, I can see the getty prompt "login: " for about two seconds, and this time the resolution is right. But immediately I'm taken into X, and the resolution is wrong again. I found "Monitor" in the GNOME menu, and was able to confirm that the resolution is 1024x768. I can change the resolution right here, but after that the panel layout looks funny as applets that are supposed to align to the right retained their previous absolute coordination.

It seems Mageia struggled many times to get the resolution right, but failed in the end. I'm a guru in debugging graphics related issues, but I'm willing to help to investigate the problem if guidance is offered.

Version-Release number of selected component (if applicable):
1 beta 2, the GNOME Live CD, though I believe other live / installation media would suffer from the same problem

How reproducible:
Every time Mageia boots.

Steps to Reproduce:
1. Have a Thinkpad SL510 ;) It's a natural assumption that some other types with ATI graphics card and widescreen monitor will also do, although I cannot name any.
2. Boot into the Live or installation media.
3. Observe the resolution.
4. You may need to reboot and observe several times to memorize what happens in which order ;)
cheer xiao 2011-04-29 14:17:04 CEST

CC: (none) => xiaqqaix

Comment 1 Magnus Rasche 2011-05-01 13:45:01 CEST
What kind of ATI graphic card do you use?

It seems I have a similar problem with my 
Thinpad Edge13 with a ATI Mobility Radeon HD4225

CC: (none) => magnus.mud

Comment 2 cheer xiao 2011-05-01 13:55:42 CEST
Created attachment 329 [details]
Detailed information of ATI Mobility Radeon HD 4500 card, obtained by sudo lspci -vv -s01:00.0
Comment 3 cheer xiao 2011-05-01 13:56:15 CEST
~% lspci | grep -i vga
01:00.0 VGA compatible controller: ATI Technologies Inc M92 [Mobility Radeon HD 4500 Series]

~% sudo lspci -vv -s01:00.0
(result attached)
Comment 4 Magnus Rasche 2011-05-02 21:12:36 CEST
The KDE-Live-Cd don't get the right solution (only 1024x768)
After the installation I can change to 1366x768
Wgen I stop the system I see some flicker with the last display


[magnus@localhost ~]$ lspci | grep -i vga
01:05.0 VGA compatible controller: ATI Technologies Inc M880G [Mobility Radeon HD 4200]


[root@localhost magnus]# lspci -vv -s01:05.0
01:05.0 VGA compatible controller: ATI Technologies Inc M880G [Mobility Radeon HD 4200] (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 21c6
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 18
        Region 0: Memory at c0000000 (32-bit, prefetchable) [size=256M]
        Region 1: I/O ports at 9000 [size=256]
        Region 2: Memory at d0500000 (32-bit, non-prefetchable) [size=64K]
        Region 5: Memory at d0400000 (32-bit, non-prefetchable) [size=1M]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Kernel driver in use: radeon
        Kernel modules: radeon
Comment 5 Magnus Rasche 2011-05-03 22:16:30 CEST
Same problem with the incorrect display size with Mandriva One KDE 2010.2
Comment 6 Ahmad Samir 2011-05-04 04:32:15 CEST
What's the output of:
su
monitor-edid

Also please attach /etc/X11/xorg.conf and /var/log/Xorg.0.log after you boot the live CD (i.e. from the live session).
Comment 7 Magnus Rasche 2011-05-04 07:36:13 CEST
I will test in the evening
Comment 8 cheer xiao 2011-05-04 09:03:56 CEST
Created attachment 346 [details]
Output of monitor-edid
Comment 9 cheer xiao 2011-05-04 09:04:41 CEST
Created attachment 347 [details]
xorg.conf of the live system
Comment 10 cheer xiao 2011-05-04 09:05:08 CEST
Created attachment 348 [details]
Xorg.0.log of live system
cheer xiao 2011-05-04 09:05:23 CEST

Attachment 347 description: xorg.conf of the live CD => xorg.conf of the live system

Comment 11 Magnus Rasche 2011-05-04 19:35:54 CEST
Created attachment 351 [details]
monitor-edid

monitor-edid
Comment 12 Magnus Rasche 2011-05-04 19:38:17 CEST
Created attachment 352 [details]
xorg.conf (Live)
Comment 13 Magnus Rasche 2011-05-04 19:40:26 CEST
Created attachment 353 [details]
Xorg.0.log
Comment 14 Magnus Rasche 2011-05-04 19:46:11 CEST
Do you need the same three infos from the system with the running proprietary driver?
Ahmad Samir 2011-05-04 19:55:28 CEST

Attachment 353 mime type: text/x-log => text/plain

Comment 15 Magnus Rasche 2011-05-04 19:57:57 CEST
Do you need the same three infos from the system with the running proprietary driver?
Comment 16 Ahmad Samir 2011-05-04 20:26:54 CEST
I think the problem here is the EDID data is confusing X, so it defaults to 1024x768:
[    69.735] (II) RADEON(0): Unknown vendor-specific block f
[    69.735] (II) RADEON(0):  LP133WH2-TLM3
[    69.735] (II) RADEON(0): EDID (in hex):
[    69.735] (II) RADEON(0): 	00ffffffffffff0030ae904000000000
[    69.735] (II) RADEON(0): 	00140103801d1178eafae59358568f28
[    69.735] (II) RADEON(0): 	20505400000001010101010101010101
[    69.735] (II) RADEON(0): 	0101010101013a1b5668500012302020
[    69.735] (II) RADEON(0): 	350026a6100000199116566850001230
[    69.735] (II) RADEON(0): 	2020350026a6100000190000000f008b
[    69.735] (II) RADEON(0): 	09328b092814090030e40000000000fe
[    69.735] (II) RADEON(0): 	004c503133335748322d544c4d330004

and:
[   208.353] (II) RADEON(0): EDID vendor "LEN", prod id 16528
[   208.353] (II) RADEON(0): Printing DDC gathered Modelines:
[   208.353] (II) RADEON(0): Modeline "1366x768"x0.0   69.70  1366 1398 1430 1470  768 771 776 786 -hsync -vsync (47.4 kHz)
[   208.353] (II) RADEON(0): Modeline "1366x768"x0.0   57.77  1366 1398 1430 1470  768 771 776 786 -hsync -vsync (39.3 kHz)



If you open as root:
drakx11

open Monitor, expand "Generic" and select "Flat Panel 1366x768", then log out -> log in, does it use the correct resolution? if so, please attach the new xorg.conf and Xorg.0.log (without restarting X again).

Assignee: bugsquad => anssi.hannula

Comment 17 Anssi Hannula 2011-05-04 20:47:42 CEST
The problem is known to me, and the correct fix for this issue is to rely on X.org autodetection instead of 1024x768 when EDID detection fails, at least on laptops.

I'll try to fix this as soon as I have some time.
Comment 18 Magnus Rasche 2011-05-04 20:55:44 CEST
I must change both the monitor to "Flat Panel 1366x768" and the resolution to "1366x768".
After log out/in the resolution is ok :-)

Do you need xorg.conf and Xorg.0.log?
Comment 19 Ahmad Samir 2011-05-04 21:18:12 CEST
No need, Anssi already acknowledged the bug, so he has all the needed info :)

Priority: Normal => High
Component: Installation => RPM Packages
Assignee: anssi.hannula => bugsquad
Source RPM: (none) => drakx-kbd-mouse-x11

Comment 20 Magnus Rasche 2011-05-04 21:20:05 CEST
ok, thanks for helping and if testing is necessary, call me
Ahmad Samir 2011-05-04 21:25:24 CEST

Assignee: bugsquad => anssi.hannula

Comment 21 Anssi Hannula 2011-05-04 22:59:01 CEST
Fixed in drakx-kbd-mouse-x11 0.96.

Thanks for the report.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 22 Thierry Vignaud 2011-05-24 10:02:46 CEST
*** Bug 1105 has been marked as a duplicate of this bug. ***

CC: (none) => lebarhon


Note You need to log in before you can comment on or make changes to this bug.