Bug 19459 - Resolution and VT switch result on white screen at internal Laptopdisplay on X700
Summary: Resolution and VT switch result on white screen at internal Laptopdisplay on ...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: Other All
: medium major
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-08 00:27 UTC by Jan Kreuzer
Modified: 2010-08-22 21:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.log (45.44 KB, text/plain)
2009-01-08 00:27 UTC, Jan Kreuzer
no flags Details
dmidecode of the laptop (14.70 KB, text/plain)
2009-01-08 00:31 UTC, Jan Kreuzer
no flags Details
output of lspci -vn (1.17 KB, text/plain)
2009-01-08 00:31 UTC, Jan Kreuzer
no flags Details
xorg.conf (4.84 KB, application/octet-stream)
2009-01-08 00:36 UTC, Jan Kreuzer
no flags Details
xorg.log with latest radeon.git (169.31 KB, text/plain)
2009-03-06 08:22 UTC, Jan Kreuzer
no flags Details
possible fix (451 bytes, patch)
2009-03-06 08:55 UTC, Alex Deucher
no flags Details | Splinter Review
comparison of modes fglrx vs radeon (2.11 KB, text/plain)
2009-03-07 04:12 UTC, Jan Kreuzer
no flags Details
xorg.log radeon git with resolution change and vt-switch (158.67 KB, text/plain)
2009-03-07 04:13 UTC, Jan Kreuzer
no flags Details
dump from radeondriver (xorg.conf without modelines) (17.96 KB, text/plain)
2009-03-07 07:27 UTC, Jan Kreuzer
no flags Details
dump from fglrx (17.95 KB, text/plain)
2009-03-07 07:27 UTC, Jan Kreuzer
no flags Details
dump from modesetkernel after laptoplid close (17.93 KB, text/plain)
2009-05-13 00:10 UTC, Jan Kreuzer
no flags Details
radeontool dump working screen (17.93 KB, text/plain)
2009-06-14 04:30 UTC, Jan Kreuzer
no flags Details
radeontool dump white screen (17.93 KB, text/plain)
2009-06-14 04:32 UTC, Jan Kreuzer
no flags Details

Description Jan Kreuzer 2009-01-08 00:27:10 UTC
Created attachment 21792 [details]
Xorg.log

Whenever i switch from my Default-resolution (1280x800) to another, or do an VT-switch, or stop X the internal Laptop-Display becomes white. This happend more or less since driver-ver 6.8.0. Same Problem when testing KMS on Fedora-10. Seems to be an timing problem i assume, as the default resolution is always fine.
Comment 1 Jan Kreuzer 2009-01-08 00:31:04 UTC
Created attachment 21794 [details]
dmidecode of the laptop
Comment 2 Jan Kreuzer 2009-01-08 00:31:43 UTC
Created attachment 21795 [details]
output of lspci -vn
Comment 3 Jan Kreuzer 2009-01-08 00:36:41 UTC
Created attachment 21796 [details]
xorg.conf

Note that i tried nearly all combinations of available options in xorg.conf, from purely autodetect to the ones no active in my conf, they didnt made an difference.
Comment 4 Jan Kreuzer 2009-03-06 08:20:59 UTC
Upgrading to latest git does not change the problem. However now additional modelines are in the xorg.log, resolution switching with xrandr or vt-swith still produces the white screen.

As amd no ceased support for fglrx, i am a little bit lost, as the opensource driver does not work correctly and the fglrx-driver will not be supported on later xorg versions.

Attached is the new xorg.log in case someone fins it useful.
Comment 5 Jan Kreuzer 2009-03-06 08:22:20 UTC
Created attachment 23591 [details]
xorg.log with latest radeon.git
Comment 6 Alex Deucher 2009-03-06 08:55:17 UTC
Created attachment 23592 [details] [review]
possible fix

Does this patch help?
Comment 7 Jan Kreuzer 2009-03-06 09:16:16 UTC
Unfortunately not. After applying the patch the screen flickers like crazy, with some stripes running from right to left. I could still see the desktop, however resolution switching to 800x600 resulted in the whitescreen. I havent tested further because i feared i could damage my panel, however i have the xorg-log if you need it.
Thanks Jan
Comment 8 Jan Kreuzer 2009-03-07 04:11:26 UTC
I compared the modelines from fglrx and radeon, it seems that radeon uses wrong / miscalculated (?) modelines, i attached a file where both modelines are listed. After that i added the modelines from fglrx to the xorg.conf. modeswitching using xrandr still produces the whitescreen, but after an vt-switch and a switch back to X the correct resolution is displayed. Note that i reverted the fix from alex as it only produced a flickering display. Also attached is the xorg.log from the vt-switch in case it is useful.

Comment 9 Jan Kreuzer 2009-03-07 04:12:29 UTC
Created attachment 23625 [details]
comparison of modes fglrx vs radeon
Comment 10 Jan Kreuzer 2009-03-07 04:13:48 UTC
Created attachment 23626 [details]
xorg.log radeon git with resolution change and vt-switch
Comment 11 Alex Deucher 2009-03-07 06:45:07 UTC
Any chance you could use radeontool to dump the regs under fglrx and under radeon and post them here?  You can grab it here:
http://cgit.freedesktop.org/~airlied/radeontool
You'll need to install the libpciaccess-dev package for your distro.  Once it's built run the following:

(as root)
./radeontool regmatch '*' > radeon.dump
./radeontool regmatch '*' > fglrx.dump
Comment 12 Jan Kreuzer 2009-03-07 07:27:18 UTC
Created attachment 23632 [details]
dump from radeondriver (xorg.conf without modelines)
Comment 13 Jan Kreuzer 2009-03-07 07:27:49 UTC
Created attachment 23633 [details]
dump from fglrx
Comment 14 Alex Deucher 2009-03-09 18:02:32 UTC
I just added atombios support for r4xx cards to git (60dac878cc8626b0821c4c7a6a6dfa12a5597cfa).  Update your git tree and add:
Option "R4xxATOM" "TRUE"
to the device section of your config.  Let me know if that helps.
Comment 15 Jan Kreuzer 2009-03-12 07:31:07 UTC
No. Starting with the patch and r4xx_modeset X starts in 1280x800. However vt-switch produces white-screen, even when returning to X (this worked before). Xrandr also produces the white screen. I still noticed in the xorg-logs, that the modelines from radeon and fglrx are different. Fglrx for example always sets v-refresh to 60hz and +hsync +vsync, whereas radeon doesnt (see attachment 7 [details] [review]). If you need more information (eg the new xorg-log) let me know.

Thank you

Jan
Comment 16 Jan Kreuzer 2009-03-27 09:24:21 UTC
Still same symptoma with latest git. However i noticed when i add Hsync and Vrefresh to the Monitorsection like this : 
 HorizSync    48.9 - 48.9
 VertRefresh  60.0 - 60.0
at least the modes in the xorg.log have the correct hsync and vrefresh (without hysnc for any mode other then 1280x800 gets wrong calculated). On resolutionchange and vt-switch still the whitescreen. Would it be possible for the driver to allow only the hysnc and vrefresh of the native-mode, and skip mode-calculation ?

Jan Kreuzer
Comment 17 Alex Deucher 2009-03-27 10:23:22 UTC
(In reply to comment #16)
> Still same symptoma with latest git. However i noticed when i add Hsync and
> Vrefresh to the Monitorsection like this : 
>  HorizSync    48.9 - 48.9
>  VertRefresh  60.0 - 60.0
> at least the modes in the xorg.log have the correct hsync and vrefresh (without
> hysnc for any mode other then 1280x800 gets wrong calculated). On
> resolutionchange and vt-switch still the whitescreen. Would it be possible for
> the driver to allow only the hysnc and vrefresh of the native-mode, and skip
> mode-calculation ?

The non-native mode timings don't matter since they aren't used.  The only relevant parts are the hdisplay and vdisplay.  The panel is always driven with native timing and the scaler scales up from the non-native mode size to the native one.
Comment 18 Jan Kreuzer 2009-03-27 23:53:10 UTC
(In reply to comment #17)
...
> The non-native mode timings don't matter since they aren't used.  The only
> relevant parts are the hdisplay and vdisplay.  The panel is always driven with
> native timing and the scaler scales up from the non-native mode size to the
> native one.
> 

Great. But why does the display show an whitescreen ? I thought it was an sync issue. 
Comment 19 Jan Kreuzer 2009-05-01 11:17:23 UTC
Testing with latest Fedora rawhide rpms (the ones from koji, kernel-2.6.29-118, xorg-x11-drv-ati-6.12.2-9) i still get the white screen on startup. However if i close the laptop-lid and open it again the screen displays the right content, vt-switching also works. Dont know if this helps to isolate the problem.
Comment 20 Jan Kreuzer 2009-05-13 00:10:19 UTC
Created attachment 25814 [details]
dump from modesetkernel after laptoplid close

Attached is the radeontooldump from fedoras modesetkernel after i closed and opened the laptop-lid. Now VT-Switch and resolution change work (no white screen), however i have to repeat the close and open cycle everytime i reboot to get a working screen. I compared this dump to an earlier radeon-dump with the whitescreen problem, there are many differences but without knowing what all those registers mean i am totally lost. Maybe Alex could get a clue out of the dumps.

Thank you 

Jan
Comment 21 Jan Kreuzer 2009-06-14 04:30:51 UTC
Created attachment 26763 [details]
radeontool dump working screen
Comment 22 Jan Kreuzer 2009-06-14 04:32:02 UTC
Created attachment 26764 [details]
radeontool dump white screen

Attached two recent dumps, the first from working screen, the second from whitescreen (both 1280x800 resolution).
Comment 23 Jan Kreuzer 2010-08-22 02:34:09 UTC
Works now in kms case, see https://bugzilla.kernel.org/show_bug.cgi?id=16389

maybe a similiar patch could be made for ums case ?
Comment 24 Alex Deucher 2010-08-22 21:46:36 UTC
pushed as:
5a7c9d94733a0db1d3565447acc9f0e751db5950


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.