Dithering not enabled causing gradient banding on Macbook Pro, until suspend/resume [M56P Mobility X1600]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| xserver-xorg-driver-ati |
Fix Released
|
High
|
||
| xserver-xorg-video-ati (Ubuntu) |
Low
|
Unassigned |
Bug Description
Binary package hint: xserver-
When running Intrepid on Macbook Pro there is very clear banding in gradients including things like the heron desktop background. This seems to be caused by dithering not being enabled. Oddly, when I suspend then resume dithering becomes enabled and everything looks fine until I restart X.
lsb_release -rd:
Description: Ubuntu intrepid (development branch)
Release: 8.10
xserver-
1:6.9.0+
(--) PCI:*(0@1:0:0) ATI Technologies Inc M56P [Radeon Mobility X1600] rev 0, Mem @ 0x80000000/0, 0x98300000/0, I/O @ 0x00003000/0, BIOS @ 0x????????/131072
Related branches
Jordan (jordanu) wrote : | #2 |
A screenshot will be full 24 bit color even though that's not what is being displayed ( I have already tried ) and I don't have a digital camera at the moment but I will try to borrow one soon.
description: | updated |
Bryce Harrington (bryce) wrote : | #3 |
Okay thanks
Changed in xserver-xorg-video-ati: | |
importance: | Undecided → Low |
status: | Incomplete → Triaged |
Bryce Harrington (bryce) wrote : | #4 |
Here is an example of banding that I see on a different system (see https:/
And yes, I also see that if I take a screenshot and look at it on another system, I don't see the banding.
Jordan (jordanu) wrote : | #5 |
Yes, that is exactly what it looks like on my system.
Changed in xserver-xorg-driver-ati: | |
status: | Unknown → Confirmed |
Bryce Harrington (bryce) wrote : | #6 |
1002 ATI Technologies Inc
71c5 M56P [Radeon Mobility X1600]
106b 0080 MacBook Pro
This is an RV530 family chipset. The fix I put in was for RV620, RC635, RS780, and RV770 so likely won't work here.
Changed in xserver-xorg-driver-ati: | |
importance: | Unknown → Undecided |
status: | Confirmed → New |
Bryce Harrington (bryce) wrote : | #7 |
Hi Jordan,
Like I mentioned, the patch I did was specific to hardware that's a bit different than yours, so won't fix the issue. However, it's likely that a similar patch may be possible that's particular to your hardware. However, to begin with we need to collect some hardware about particulars about your graphics card. I've prepared a debug -ati package that will print out the info I need. Can you please install this, restart X, and then collect and attach your /var/log/
http://
I've built both amd64 and i386 debs, and included -dbg packages for each.
Once we have the data, I can craft a dithering-
Changed in xserver-xorg-video-ati: | |
assignee: | nobody → bryceharrington |
status: | Triaged → In Progress |
Bryce Harrington (bryce) wrote : | #8 |
Btw, I see upstream has a quirk fix for an RV530 macbook issue, so I'm going to go ahead and pull that in, and make a big assumption that it fixes the issue. If not, please go ahead and reopen this bug, and install the debs in my previous comment, and report back with the Xorg.0.log and we'll go from there.
Jordan (jordanu) wrote : | #9 |
I guess the mirror I am using hasn't gotten your new packages yet ( I updated and still had the problem ) but installing the .debs you linked to has fixed the problem.
Thank you for your time and effort in getting this to work.
Bryce Harrington (bryce) wrote : | #10 |
Jordan, wow that was lucky! Would you mind attaching your /var/log/
Bryce Harrington (bryce) wrote : | #11 |
Jordan, would you mind testing one more thing:
http://
That package includes the macbook fix from upstream that I mentioned. (My earlier upload didn't go through since we're in beta-freeze at the moment.) I want to determine whether that fixes the issue independently of the patch I made; if it does, there's no need for my patch, but if it doesn't, I should rework my patch a bit and use it.
Thanks again.
Jordan (jordanu) wrote : | #12 |
The new packages bring the problem back so I guess that your patch is needed. I am attaching my Xorg.0.log.
Also, experimenting with radeonhd I noticed the same banding problems, should I file a new bug report against radeonhd?
Oibaf (oibaf) wrote : | #13 |
Jordan, did you try the radeonhd packages from https:/
I don't have the banding problem in radeonhd with these updated packages.
Bryce Harrington (bryce) wrote : | #14 |
Jordan, can you please post an Xorg.0.log from when the deb from http://
What we're looking for is lines with "BWH:" in them in the log.
Oibaf (oibaf) wrote : | #15 |
I noticed that I had the same problem with my MacBook Pro and your packages greatly diminishes the banding. Attached is the Xorg.0.log. The "BWH:" lines are:
...
Set CRTC 0 Source success
BWH: CHIP FAMILY is RV530
BWH: MonType MT_LCD
BWH: Not IS_DCE3_VARIANT
Output LVDS setup success
BWH: ATOM_DEVICE_
Output 23 enable success
...
Jordan (jordanu) wrote : | #16 |
BWH: CHIP FAMILY is RV530
BWH: MonType MT_LCD
BWH: Not IS_DCE3_VARIANT
BWH: ATOM_DEVICE_
Also, I still get banding with the radeonhd package from https:/
Created an attachment (id=19363)
Adds dithering for rv530 lcd's
Two ubuntu users confirmed that enabling the dithering worked out in bug 17094 worked for the RV530. Attached is a patch to add support for this.
The Ubuntu bug is here:
https:/
Bryce Harrington (bryce) wrote : | #19 |
Thanks guys, it's nice to see you both have the same output - the same fix ought to solve it for both of you I think.
I've modified the earlier patch by limiting it to only turn dithering on for RV530 cards. It should solve it for you; if not please reopen this bug.
I've also forwarded the patch upstream; maybe they will have some suggestions to improve it.
Changed in xserver-xorg-driver-ati: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in xserver-xorg-video-ati: | |
status: | In Progress → Fix Committed |
Launchpad Janitor (janitor) wrote : | #20 |
This bug was fixed in the package xserver-
---------------
xserver-
* rv530_dithering
(LP: #264535)
-- Bryce Harrington <email address hidden> Fri, 03 Oct 2008 19:51:56 -0700
Changed in xserver-xorg-video-ati: | |
status: | Fix Committed → Fix Released |
Changed in xserver-xorg-driver-ati: | |
status: | Unknown → Confirmed |
Oibaf (oibaf) wrote : | #21 |
Was someone able to reproduce the problem with a RV530 on a machine other than a MacBook Pro?
What will happen when this fix is enabled on cards that does not need it?
|
#22 |
This should be fixed properly in commit:
a5c5ce96279d01e
|
#23 |
I tried current git (commit dc795ba66a8c0eb
|
#24 |
Created an attachment (id=19490)
dump lvds misc info
(In reply to comment #3)
> I tried current git (commit dc795ba66a8c0eb
> Ubuntu packages from https:/
> Ubuntu 8.04 (with xserver 1.4) but this is not yet fixed on my MacBook Pro. I
> can provide more informations if needed.
>
I wouldn't put it past apple to have wrong or missing data for the LCD in their bios. Can you apply the attached patch and then attach your resulting log to this bug?
|
#25 |
Created an attachment (id=19498)
Xorg.0.log with added debug line run on a MacBook Pro
Done. I get this:
LVDS misc: 0x69
Full log attached.
|
#26 |
Note that I was one of the two were the Ubuntu patch worked.
|
#27 |
Created an attachment (id=19566)
possible fix
Looks like the grey level was being set wrong. This patch should fix it.
|
#28 |
I am still having the "banding" with this patch.
|
#29 |
Created an attachment (id=19570)
possible fix
Can you try this patch?
|
#30 |
Created an attachment (id=19571)
Xorg.0.log with latest pacth
Still same problem. Xorg log attached.
For this testing is sufficient to copy the just compiled:
xf86-video-
xf86-video-
to /usr/lib/
|
#31 |
Created an attachment (id=19578)
possible fix
Try this patch. I think probably just clearing the truncate bit should do it, but if that doesn't work uncomment this line:
//lvtma_
and try again. As for testing, all you need to do is copy the new files over and stop and start X:
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm start
|
#32 |
I tried the latest patch:
1) with the unmodified patch the banding is fixed, however there are some areas (where there is the colour transition) where the colour is not uniform (like if there were some random noise overlapped);
2) with the uncommented
//lvtma_
the problem is also greatly fixed (I can see very little visible banding looking closer, but I think this is how the image is really) without the noise overlap. Trying to look the same image on an intel graphic card I get the same behaviour.
I think the second one (with the uncommented line) should be preferred as it is similar to the intel card and also looks subjectively better.
Thanks for all your work on fixing this problem.
|
#33 |
After 2 days of testing I would say that the behaviour with the commented
//lvtma_
is buggy and that that line should be uncommented.
|
#34 |
Created an attachment (id=19664)
final fix
Ok, this is what I plan to commit. Please verify that it works.
|
#35 |
I confirm it's working as expected.
Thanks,
Fabio
|
#36 |
thanks! committed: 435cf7da68186f2
Changed in xserver-xorg-driver-ati: | |
status: | Confirmed → Fix Released |
Tormod Volden (tormodvolden) wrote : | #37 |
Packages with the new upstream fix for MacBook (435cf7da68186f
Oibaf (oibaf) wrote : | #38 |
See also bug #284346
cazacugmihai (cazacugmihai) wrote : | #39 |
Hi,
I have the same problem. Please read: https:/
Thanks.
cazacugmihai (cazacugmihai) wrote : | #40 |
Attached is a screenshot.
Changed in xserver-xorg-video-ati (Ubuntu): | |
assignee: | Bryce Harrington (bryceharrington) → nobody |
Changed in xserver-xorg-driver-ati: | |
importance: | Unknown → High |
Changed in xserver-xorg-driver-ati: | |
importance: | High → Unknown |
Changed in xserver-xorg-driver-ati: | |
importance: | Unknown → High |
Please attach your /var/log/Xorg.0.log and a photo or screenshot that illustrates the problem.