Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Patch: faster GUI with fglrx (ati-drivers) and compositing
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Tue Sep 29, 2009 8:10 am    Post subject: Patch: faster GUI with fglrx (ati-drivers) and compositing Reply with quote

(Note that the information provided in this post only applies to the closed source, proprietary binary driver from AMD/ATI, x11-drivers/ati-drivers. The open source AMD drivers do not need any of this.)

The fglrx drivers (x11-drivers/ati-drivers) have a problem when compositing is enabled; some GUI operations like resizing or maximizing a window are extremely slow and "laggy", possibly due to those drivers not accelerating the needed backfill operation involved (or maybe just buggy in that regard). There's an old patch (107_fedora_dont_backfill_bg_none.patch) that fixed it but it introduced screen garbage in some places.

Now there's a new patch provided by an fglrx developer that fixes the problem correctly. Here's how to have it applied automatically without the need to use an edited ebuild in an overlay; should save some frustration when there are xorg-server updates.

(If you do prefer to use a custom ebuild and overlay for this though, then you can use this instead: https://forums.gentoo.org/viewtopic.php?p=5966751#5966751)

First, get the patch from:

http://launchpadlibrarian.net/32728179/xserver-xorg-backclear.patch

Then, create this directory:

/etc/portage/env/x11-base/

And put the patch in that directory. Now with a text-editor, create this file:

/etc/portage/env/x11-base/xorg-server

with the following contents:

Code:
post_src_prepare() {
   epatch "/etc/portage/env/x11-base/xserver-xorg-backclear.patch"
}


And that's it. Now simply re-emerge xorg-server:

emerge -a1 xorg-server

It doesn't matter where the ebuild comes from or what version it is; the patch will be applied regardless of whether you're using the default ebuild from portage or from an overlay. At the beginning of the emerge, you should now see:

Code:
>>> Source prepared.
 * Applying xserver-xorg-backclear.patch ...       [ ok ]


as an indication that the patch is being applied.

When the emerge finishes, restart X. Compiz/KDE4/XFCE/etc with compositing/desktop effects enabled should be very snappy with fglrx.


Last edited by RealNC on Tue Nov 17, 2009 5:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Sep 29, 2009 10:50 am    Post subject: Reply with quote

thanks !

cute avatar :wink:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sat Oct 03, 2009 5:42 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?p=5966751#5966751

nice that you copy my thread. You are just a month late. :lol:
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sat Oct 03, 2009 10:56 am    Post subject: Reply with quote

energyman76b wrote:
https://forums.gentoo.org/viewtopic.php?p=5966751#5966751

nice that you copy my thread. You are just a month late. :lol:


Oops, I missed that :P (I did search though, I'm not lazy :lol:)

Anyway, at least there's something new in this thread (generic method without needing an overlay and patched ebuild, which makes it a "set it and forget it" patch.)
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Oct 04, 2009 2:09 pm    Post subject: Reply with quote

true, both has its advantages
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5878

PostPosted: Sun Oct 04, 2009 3:18 pm    Post subject: Reply with quote

Any downsides to this? (i.e. why isn't it the default already?)
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sun Oct 04, 2009 3:22 pm    Post subject: Reply with quote

Ant_P wrote:
Any downsides to this? (i.e. why isn't it the default already?)


Downsides are mentioned in the first post.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5878

PostPosted: Sun Oct 04, 2009 3:35 pm    Post subject: Reply with quote

Oh that makes sense. It's a security issue, albeit a pedantic one (seeing bits of VRAM you shouldn't have access to, possibly belonging to other users).

I find it incredible though that fglrx could be that bad at simply drawing a filled rectangle. Sometimes I get the impression nobody at ATI ever uses their own drivers...
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Oct 04, 2009 3:35 pm    Post subject: Reply with quote

RealNC wrote:
Ant_P wrote:
Any downsides to this? (i.e. why isn't it the default already?)


Downsides are mentioned in the first post.


yu forgot menus and stuff. But none of it is really bad. Opening a menu for the first time can result in a grey mass with black stripes shown for a fraction of a second. Just as example.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Oct 04, 2009 3:42 pm    Post subject: Reply with quote

Ant_P wrote:
Oh that makes sense. It's a security issue, albeit a pedantic one (seeing bits of VRAM you shouldn't have access to, possibly belonging to other users).

I find it incredible though that fglrx could be that bad at simply drawing a filled rectangle. Sometimes I get the impression nobody at ATI ever uses their own drivers...


they do. And there is no risk because there is no sharing of cram between users.

That patch is necessary because of intel. Intel sucked, they made the change, everybody but intel suffered. Everybody complained, but the intel-paid X devs are blaming the drivers.

Nvidia ripped out another part of X, Ati/AMD which does not replace X functionilty wherever they can, was stuck with it.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sun Oct 04, 2009 3:44 pm    Post subject: Reply with quote

That still doesn't make sense. If an Intel chip is fast enough to accelerate the backfill, so should ATI. And it indeed does, with the OSS drivers. It's only fglrx that still suffers.
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Oct 04, 2009 3:53 pm    Post subject: Reply with quote

really, you have read the phoronix threads. Bridgeman and others have explained it so many times. Why do you ignore them and then spout crap?
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sun Oct 04, 2009 4:05 pm    Post subject: Reply with quote

I think the explanations given are the actual crap :P fglrx needs to adapt to this X.Org change, period. Other drivers can, and have. There is *no* excuse anymore.
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Oct 04, 2009 4:18 pm    Post subject: Reply with quote

no driver has 'adapted'.

You are talking crap. Just like on phoronix.


Nvidia has just ripped out the offending parts - as they always do. Intel were the ones responsible for the crap. Via does not count because as long as you have zero acceleration you are not hurt by the changes.

You choose not to listen and believe whatever you made up. Fine. But don't tell others that your phantasies are the truth.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sun Oct 04, 2009 4:21 pm    Post subject: Reply with quote

energyman76b wrote:
no driver has 'adapted'.

You are talking crap. Just like on phoronix.


Nvidia has just ripped out the offending parts - as they always do. Intel were the ones responsible for the crap. Via does not count because as long as you have zero acceleration you are not hurt by the changes.

You choose not to listen and believe whatever you made up. Fine. But don't tell others that your phantasies are the truth.


Dude, I think you have an attitude problem. *EVERY* driver works fine. Including the Radeon and RadeonHD open source drivers. How do you explain that? Please, tell me.
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Oct 04, 2009 4:48 pm    Post subject: Reply with quote

:roll:

Bridgeman has explained that several times on phoronix. In threads youi posted in. Why don't you go back and read his explanations?

(hint: has something to do with memory access, cpu and system memory and gpu and vram).

Oh wait, you ignore everything written by the devs.


Radeon/hd 'work' because the acceleration was/is done by the cpu. No mem copies, everything seems fine. They also start suffering when they try to use 'real' acceleration.

Everything explained there - but hey, you already threw them away as 'bullshit'.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Sun Oct 04, 2009 4:56 pm    Post subject: Reply with quote

It's still crap. Bridgeman mentioned that they should accelerate this operation in fglrx. Perhaps the acceleration architecture of fglrx (based on XAA) can't do this. If yes, it's the driver's fault. They should keep up with X.Org changes. If they can't, then they should try to fix it in X.Org. If they can't do that either, there's one word for it: "Phail."
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 148

PostPosted: Tue Nov 17, 2009 4:50 pm    Post subject: Reply with quote

Update: Now there's a new patch provided by an fglrx developer that fixes the problem correctly without any screen garbage/corruption! First post has been updated. It works nicely here on xorg-server-1.6.5.

Quick instructions if you already have the previous patch:

  • Delete /etc/portage/env/x11-base/107_fedora_dont_backfill_bg_none.patch
  • Download http://launchpadlibrarian.net/32728179/xserver-xorg-backclear.patch and put it in /etc/portage/env/x11-base/
  • Edit /etc/portage/env/x11-base/xorg-server and replace "107_fedora_dont_backfill_bg_none.patch" with "xserver-xorg-backclear.patch"
  • emerge -1 xorg-server, restart X and you're done.
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Tue Nov 17, 2009 4:58 pm    Post subject: Reply with quote

jepp, it does.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
Snatcher
n00b
n00b


Joined: 06 Jun 2010
Posts: 1

PostPosted: Sun Jun 06, 2010 3:54 am    Post subject: Reply with quote

Worked perfectly here. Thanks a lot!!!
Back to top
View user's profile Send private message
_Flame_
n00b
n00b


Joined: 14 Feb 2010
Posts: 47

PostPosted: Sun Aug 29, 2010 5:22 pm    Post subject: Reply with quote

Is it suitable for xorg-server 1.7.7?
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Aug 29, 2010 5:50 pm    Post subject: Reply with quote

_Flame_ wrote:
Is it suitable for xorg-server 1.7.7?


yes
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
_Flame_
n00b
n00b


Joined: 14 Feb 2010
Posts: 47

PostPosted: Sun Aug 29, 2010 6:40 pm    Post subject: Reply with quote

energyman76b wrote:
_Flame_ wrote:
Is it suitable for xorg-server 1.7.7?


yes


But does not work.

Code:

Emerging (1 of 1) x11-base/xorg-server-1.7.7-r1
 * xorg-server-1.7.7.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                    [ ok ]
 * xorg-server-1.7.7-patches-01.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                         [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                          [ ok ]
 * CPV:  x11-base/xorg-server-1.7.7-r1
 * REPO: gentoo
 * USE:  elibc_glibc hal kernel_linux nptl sdl userland_GNU x86 xorg
Switching to xorg-x11 OpenGL interface... done
>>> Unpacking source...
>>> Unpacking xorg-server-1.7.7.tar.bz2 to /var/tmp/portage/x11-base/xorg-server-1.7.7-r1/work
>>> Unpacking xorg-server-1.7.7-patches-01.tar.bz2 to /var/tmp/portage/x11-base/xorg-server-1.7.7-r1/work
>>> Source unpacked in /var/tmp/portage/x11-base/xorg-server-1.7.7-r1/work
>>> Preparing source in /var/tmp/portage/x11-base/xorg-server-1.7.7-r1/work/xorg-server-1.7.7 ...
 * Applying various patches (bugfixes/updates) ...
 *   0001-dix-make-DeviceEvent-coordinates-signed-for-Xinerama.patch ...                                                                         [ ok ]
 *   0002-XQuartz-add-new-localization-files-to-EXTRA_DIST.patch ...                                                                             [ ok ]
 *   0003-XQuartz-Don-t-trust-deltaXY-for-middle-mouse-clicks.patch ...                                                                          [ ok ]
 *   0004-XQuartz-Don-t-use-deltaXY-for-determining-pointer-lo.patch ...                                                                         [ ok ]
 *   0005-xfree86-dga-needs-to-use-the-master-keyboard-state-2.patch ...                                                                         [ ok ]
 *   0006-Fix-null-pointer-dereference-in-xf86_reload_cursors.patch ...                                                                          [ ok ]
 *   0007-exa-fix-ExaCheckCopyNtoN-for-exa_classic-when-source.patch ...                                                                         [ ok ]
 * Done with patching
 * Applying 1.7.5.902-fix-tslib-1.0-check.patch ...                                                                                              [ ok ]
 * Applying xorg-server-1.8-nouveau-default.patch ...                                                                                            [ ok ]
 * Running eautoreconf in '/var/tmp/portage/x11-base/xorg-server-1.7.7-r1/work/xorg-server-1.7.7' ...
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2045
Location: Germany

PostPosted: Sun Aug 29, 2010 7:05 pm    Post subject: Reply with quote

hm?

I don't see any error.

besides, with a recent ati-driver you should not need it anymore.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
_Flame_
n00b
n00b


Joined: 14 Feb 2010
Posts: 47

PostPosted: Sun Aug 29, 2010 7:13 pm    Post subject: Reply with quote

energyman76b wrote:
hm?

I don't see any error.

besides, with a recent ati-driver you should not need it anymore.

I don`t see this.
Code:
>>> Source prepared.
 * Applying xserver-xorg-backclear.patch ...       [ ok ]


I use fglrx driver 10.8 from amd site and delay very big.
Gentoo ati-driver already has this patch?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum