Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181067 - [2.6.20.11 regression] wrong framebuffer-resolution in intelfb
Summary: [2.6.20.11 regression] wrong framebuffer-resolution in intelfb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.20.11-regression linux-2.6.23
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 11:30 UTC by Alexander Weber
Modified: 2007-12-14 20:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Working kernel dmesg (dmesg-2.6.20-gentoo-r7.log,12.06 KB, text/plain)
2007-06-09 16:21 UTC, Alexander Weber
Details
failing kernel dmesg (dmesg-2.6.20-gentoo-r8.log,12.24 KB, text/plain)
2007-06-09 16:22 UTC, Alexander Weber
Details
intel-agp change (agp.patch,1.15 KB, patch)
2007-06-09 16:47 UTC, Daniel Drake (RETIRED)
Details | Diff
VBE/DDC change (patch,3.20 KB, patch)
2007-06-18 23:42 UTC, Daniel Drake (RETIRED)
Details | Diff
more recent VBE tweak (vbe.patch,3.39 KB, patch)
2007-06-29 02:31 UTC, Daniel Drake (RETIRED)
Details | Diff
Xorg.log wit 2.6.22-rc6-mm1 (Xorg.0.log,38.69 KB, text/plain)
2007-07-06 21:49 UTC, Alexander Weber
Details
/usr/src/linux-2.6.22-rc6-mm1/.config (config-linux-2.6.22-rc6-mm1,33.13 KB, text/plain)
2007-07-09 16:11 UTC, Alexander Weber
Details
Config file for working linux-2.6.20-gentoo-r7 (config-linux-2.6.20-gentoo-r7,38.08 KB, text/plain)
2007-07-10 16:03 UTC, Alexander Weber
Details
dmesg-2.6.22.rc6.mm1.log (dmesg-2.6.22.rc6.mm1.log,10.54 KB, text/plain)
2007-07-10 21:36 UTC, Alexander Weber
Details
Kernel messages from 2.6.23-rc1 kernel (dmesg-2.6.23-rc1.log,10.10 KB, text/plain)
2007-07-28 06:54 UTC, Alexander Weber
Details
kernel debug patch (fbmon.patch,333 bytes, patch)
2007-08-01 02:27 UTC, Daniel Drake (RETIRED)
Details | Diff
2.6.23-rc1 patch to fix VBE DDC read (edid.patch,3.38 KB, patch)
2007-08-02 14:13 UTC, Daniel Drake (RETIRED)
Details | Diff
read-edid output edid.txt (edid.dat,128 bytes, application/octet-stream)
2007-08-02 16:27 UTC, Alexander Weber
Details
xorg log - vesa driver (xorg-vesa.log,44.57 KB, text/plain)
2007-08-02 17:50 UTC, Alexander Weber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Weber 2007-06-06 11:30:37 UTC
i using a LCD TV with resolution 1360x768. 
The intelfb framebuffer starts with kernel append line
video=intelfb:accel,hwcursor,mode=1360x768-32@60
with gentoo-sources-2.6.20-r7 its works fine, but
with gentoo-sources-2.6.20-r8 and later the framebuffer 
starts with 1366x768.(fbset says that)
TV says it is 1360x768, the output is cut of on the left site.

the bug is: mode=1360x768 should be set 1360x768. For Users with 1366x768 TV use mode=1366x768


Reproducible: Always

Steps to Reproduce:
1.boot gentoo-sources-2.6.20-r7 - works fine
2.boot gentoo-sources-2.6.20-r8 - with same config and append line 
3.wrong resolution, fbsplash does not work because no 1366x768 splashes exists
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2007-06-09 15:35:12 UTC
Please attach dmesg output from the failing kernel
Comment 2 Alexander Weber 2007-06-09 16:21:19 UTC
Created attachment 121590 [details]
Working kernel dmesg
Comment 3 Alexander Weber 2007-06-09 16:22:30 UTC
Created attachment 121593 [details]
failing kernel dmesg
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2007-06-09 16:47:21 UTC
Created attachment 121599 [details, diff]
intel-agp change

please REVERT this patch (patch -p1 -R) from the failing kernel and see if the problem goes away
Comment 5 Alexander Weber 2007-06-09 19:51:28 UTC
revert patch 121599 does not help.
same error, no changes in dmesg.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-06-18 23:42:14 UTC
Created attachment 122488 [details, diff]
VBE/DDC change

hmm... Please try reverting this patch from the broken kernel
Comment 7 Alexander Weber 2007-06-26 15:30:39 UTC
(In reply to comment #6)
> Created an attachment (id=122488) [edit]
> VBE/DDC change
> 
> hmm... Please try reverting this patch from the broken kernel
> 

after reverting this patch it works fine :-)
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2007-06-29 02:31:13 UTC
Created attachment 123355 [details, diff]
more recent VBE tweak

Please reapply that patch and apply this one on top, and see if anything is improved. It's a stab in the dark, but worth a try. Thanks.
Comment 9 Alexander Weber 2007-06-29 08:53:21 UTC
(In reply to comment #8)
> Created an attachment (id=123355) [edit]
> more recent VBE tweak
> 
> Please reapply that patch and apply this one on top, and see if anything is
> improved. It's a stab in the dark, but worth a try. Thanks.
> 
with this patch its works too. :-)

Comment 10 Daniel Drake (RETIRED) gentoo-dev 2007-07-02 12:39:43 UTC
http://marc.info/?l=linux-kernel&m=118324350811283&w=2

Please could you now test mm-sources-2.6.22_rc6-r1 (2.6.22-rc6-mm1)?

You don't need to add or remove any patches from this kernel - hopefully it just works.

The -mm kernel is highly experimental so unless you're feeling adventurous, I'd suggest you simply boot it once, check the resolution, and then return to a stable/testing kernel.
Comment 11 Alexander Weber 2007-07-06 21:49:09 UTC
Created attachment 124090 [details]
Xorg.log wit 2.6.22-rc6-mm1

(In reply to comment #10)
>
> Please could you now test mm-sources-2.6.22_rc6-r1 (2.6.22-rc6-mm1)?

this kernel version does not work for me. same error.
one change is that the X-Server does not work correctly.
the XServer Log attached.
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2007-07-07 16:10:41 UTC
but what about from before when you start X? does fbsplash work (because framebuffer resolution is 1360x768) or does it fail (because it's 1366x768)?

Issues with the X server are probably unrelated.
Comment 13 Alexander Weber 2007-07-08 12:33:47 UTC
(In reply to comment #12)
> but what about from before when you start X? does fbsplash work (because
> framebuffer resolution is 1360x768) or does it fail (because it's 1366x768)?
> 
> Issues with the X server are probably unrelated.
> 

It does not work. Framebuffer resolution is 1366x768, same log-entries in dmesg as first.
What Information do you need for beter stab in the dark?
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2007-07-09 01:10:35 UTC
Please attach your kernel .config from a broken kernel
Comment 15 Alexander Weber 2007-07-09 16:11:01 UTC
Created attachment 124339 [details]
/usr/src/linux-2.6.22-rc6-mm1/.config

there is the config file from broken 22-r6-mm1
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2007-07-10 13:21:18 UTC
Can also I see your .config from gentoo-sources-2.6.20-r7 or previous? Sorry for all the requests, progress is being made though :)
Comment 17 Alexander Weber 2007-07-10 16:03:40 UTC
Created attachment 124435 [details]
Config file for working linux-2.6.20-gentoo-r7

there is the config file for working linux-2.6.20-gentoo-r7.
Without changes in this config file and with more recent VBE tweak patch it's work in 2.6.20-gentoo-r8.
Comment 18 Daniel Drake (RETIRED) gentoo-dev 2007-07-10 21:05:03 UTC
Thanks again. Can you try enabling CONFIG_FIRMWARE_EDID in the 2.6.22-rc6-mm1 kernel? If it's still broken under that configuration, please post a new dmesg.
Comment 19 Alexander Weber 2007-07-10 21:36:24 UTC
Created attachment 124479 [details]
dmesg-2.6.22.rc6.mm1.log

I tested CONFIG_FIRMWARE_EDID.
Same error. 
One change is: 
TV starts with default resolution (800x600)
but fbset says 1366x768
Comment 20 Daniel Drake (RETIRED) gentoo-dev 2007-07-10 21:49:22 UTC
So in the above configuration, when you boot to a framebuffer, even before you start X, fbset says 1366x760 but the TV reports 800x600? Is the display that appears on the TV visibly corrupt in any way?
Comment 21 Alexander Weber 2007-07-11 05:09:22 UTC
(In reply to comment #20)
> So in the above configuration, when you boot to a framebuffer, even before you
> start X, fbset says 1366x760 but the TV reports 800x600? 
Yes

> Is the display that appears on the TV visibly corrupt in any way?

the framebuffer does not start (No resolution change on begin of boot).
800x600 is the default resolution in bios.
Output is 640x480 (??) centered in 800x600 with borders.


Comment 22 Daniel Drake (RETIRED) gentoo-dev 2007-07-17 12:33:20 UTC
Thanks for the info so far. To make this a little less confusing I'm going to wait for 2.6.23-rc1 before suggesting further tests... (the x86 boot setup code is changing wildly at this point)
Comment 23 Daniel Drake (RETIRED) gentoo-dev 2007-07-27 02:27:06 UTC
OK. Please test 2.6.23-rc1. Also enable CONFIG_FIRMWARE_EDID and continue to leave it enabled from this point onwards.
Comment 24 Alexander Weber 2007-07-28 06:54:50 UTC
Created attachment 126203 [details]
Kernel messages from 2.6.23-rc1 kernel

today i tested 2.6.23-rc1 kernel. 
same error as on 2.6.22-rc6-mm1.
no resolution change on boot. 
TV has default VGA resolution 800x600.
fbset says 1366x768.
dmesg is attached.
Comment 25 Daniel Drake (RETIRED) gentoo-dev 2007-08-01 02:20:59 UTC
Thanks. We now need to identify the VBE version. Under a working kernel, please configure X to use the "vesa" video driver (may need to emerge xf86-video-vesa), start X, and upload /var/log/Xorg.0.log here. You can change back to your old driver after doing so, we just need the log.
Comment 26 Daniel Drake (RETIRED) gentoo-dev 2007-08-01 02:27:12 UTC
Created attachment 126562 [details, diff]
kernel debug patch

Let's be thorough. In addition to the above, please also apply this patch to a working kernel, recompile and boot into it, and attach dmesg output here.

Final request for now: again under a working kernel, as root run "get-edid > edid.txt" and upload edid.txt here. get-edid is found in the x11-misc/read-edid package.

Thanks!!
Comment 27 Daniel Drake (RETIRED) gentoo-dev 2007-08-02 14:13:24 UTC
Created attachment 126708 [details, diff]
2.6.23-rc1 patch to fix VBE DDC read

We made some progress upstream. Ignore the latest requests for now, please apply this patch to 2.6.23-rc1 and see if it helps. Please also ensure that CONFIG_FIRMWARE_EDID and CONFIG_FRAMEBUFFER_CONSOLE are set in your .config
Comment 28 Alexander Weber 2007-08-02 16:16:09 UTC
On my last test CONFIG_FRAMEBUFFER_CONSOLE was not set.

today i tested 2.6.23-rc1 without and with patch to fix VBE DDC read

Without: -> wrong 1366x768 and scrambled TV-Output
With     -> right 1360x768 and scrambled TV-Output too
Comment 29 Alexander Weber 2007-08-02 16:27:15 UTC
Created attachment 126716 [details]
read-edid output edid.txt
Comment 30 Alexander Weber 2007-08-02 17:50:00 UTC
Created attachment 126720 [details]
xorg log - vesa driver
Comment 31 Daniel Drake (RETIRED) gentoo-dev 2007-08-03 02:31:22 UTC
hmm, ok... How about if you run 2.6.23-rc1, with the latest patch, with CONFIG_FIRMWARE_EDID, *without* CONFIG_FRAMEBUFFER_CONSOLE ?

i.e. same as comment #24 but with the patch
Comment 32 Alexander Weber 2007-08-03 05:37:03 UTC
(In reply to comment #31)
> hmm, ok... How about if you run 2.6.23-rc1, with the latest patch, with
> CONFIG_FIRMWARE_EDID, *without* CONFIG_FRAMEBUFFER_CONSOLE ?
> 
> i.e. same as comment #24 but with the patch
> 

 I have no framebuffer console.
It is the same error as #24 but with right resoluton on fbset.
-No resolution change on boot. 
-TV has default VGA resolution 800x600.
-fbset has the right resolution 1360x768.
Comment 33 Alexander Weber 2007-12-08 10:02:54 UTC
today i tested with 2.6.23-gentoo-r3.
Framebuffer works now with 1360x768

but i don't have fbsplash with this kernel.

/sbin/fbcondecor_ctl -t mytheme -c on
give FBIOCONDECOR_SETSTATE failed, error code 22.
and dmesg give 
fbcondecor_ctl[4858]: segfault at 00000020 eip 4e64d94f esp bfdf4a10 error 4
Comment 34 Daniel Drake (RETIRED) gentoo-dev 2007-12-14 20:43:24 UTC
Great, thanks for letting us know about the fix!
Please open a new bug for the 2.6.23 fbcondecor issues.