Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED Fluxbox slow moving windows: Xorg hardware rendering?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eldepeche
n00b
n00b


Joined: 08 May 2007
Posts: 21
Location: Portland, Or

PostPosted: Tue Feb 21, 2012 10:07 pm    Post subject: SOLVED Fluxbox slow moving windows: Xorg hardware rendering? Reply with quote

I've just reinstalled Gentoo after a long absence, and things seem to have changed a bit since I left. I did the install in a hurry with the intention of going back and fixing things later. First I installed X and Fluxbox. After installing mplayer, I noticed that video performance was terrible. I realized it wasn't doing any hardware rendering, so I went back to fix that by recompiling the kernel and including direct rendering (I have an ATI Radeon HD 3870).

Once I got that turned on (glxgears running at ~930 fps, which seems low), I noticed that moving a window resulted in the window moving very slowly after my cursor. According to a couple threads I found, this is a telltale sign of misconfigured hardware in X. The problem is, I can't find any solution. When I first installed X, it ran fine without a config file, so I'm not sure how to just add a section for hardware rendering. For that matter, I don't really know what I would need to change, or what information would be most useful.

Does anyone know a good place to start troubleshooting so I can find out what exactly needs to be changed?


Last edited by eldepeche on Tue Feb 21, 2012 11:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 189
Location: Zurich, Switzerland

PostPosted: Tue Feb 21, 2012 10:15 pm    Post subject: Reply with quote

which xorg driver are you using?
do you have something like this:
Code:
VIDEO_CARDS="radeon"

in
Code:
/etc/make.conf

?
Back to top
View user's profile Send private message
eldepeche
n00b
n00b


Joined: 08 May 2007
Posts: 21
Location: Portland, Or

PostPosted: Tue Feb 21, 2012 10:17 pm    Post subject: Reply with quote

Yes, I'm using the radeon driver.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Tue Feb 21, 2012 10:19 pm    Post subject: Reply with quote

As always, use pastebin to post /var/log/Xorg.0.log
Back to top
View user's profile Send private message
eldepeche
n00b
n00b


Joined: 08 May 2007
Posts: 21
Location: Portland, Or

PostPosted: Tue Feb 21, 2012 10:27 pm    Post subject: Reply with quote

http://pastebin.com/N2xTj714

Thanks for your patience, it's been a while since I ran into an interesting problem, and I forgot some of the conventions.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Tue Feb 21, 2012 10:41 pm    Post subject: Reply with quote

Wow, the radeon driver is chatty. Anyway:
Code:
[   916.129] (II) AIGLX: Screen 0 is not DRI2 capable
...
[   916.156] (EE) AIGLX error: Calling driver entry point failed
[   916.178] (EE) AIGLX: reverting to software rendering
[   916.180] (II) AIGLX: Loaded and initialized swrast
[   916.180] (II) GLX: Initialized DRISWRAST GL provider for screen 0

Are you in the video group? Do you have mesa compiled with VIDEO_CARDS="radeon"? This shouldn't really affect 2d performance though, the log shows that part loading correctly.

Also, post your kernel config. I think everything is correct there, but doesn't hurt to look.


Last edited by Gusar on Tue Feb 21, 2012 10:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
eldepeche
n00b
n00b


Joined: 08 May 2007
Posts: 21
Location: Portland, Or

PostPosted: Tue Feb 21, 2012 10:50 pm    Post subject: Reply with quote

I am in the video group, and mesa is compiled with VIDEO_CARDS="radeon".

Kernel config: http://pastebin.com/GgqrsQRt
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Tue Feb 21, 2012 10:58 pm    Post subject: Reply with quote

Hmm, shouldn't really affect this, but try with KMS. By that I mean activate CONFIG_DRM_RADEON_KMS in your kernel.

Beyond that, no ideas. Hmm, except maybe one: Do you have a separate /boot partition? If yes, do you mount it before copying the new kernel over? It's a common mistake.
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 189
Location: Zurich, Switzerland

PostPosted: Tue Feb 21, 2012 11:03 pm    Post subject: Reply with quote

You need radeon firmware in kernel look at this:
https://forums.gentoo.org/viewtopic-t-911578-highlight-.html

In general, for cards with R600 (Radeon HD2000) or newer:
emerge x11-drivers/radeon-ucode
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Tue Feb 21, 2012 11:05 pm    Post subject: Reply with quote

Kaso_da_Zmok wrote:
You need radeon firmware in kernel look at this:
https://forums.gentoo.org/viewtopic-t-911578-highlight-.html

Heh, it shows I don't have any personal experience with radeon cards. Totally forgot about firmware.

@eldepeche you have radeon as module, so all you need to do is install the linux-firmware package (or the radeon-ucode package, if no other hardware requires firmware) and you'll be set. Additional config is only required if you want radeon built into the kernel instead of as module.
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 189
Location: Zurich, Switzerland

PostPosted: Tue Feb 21, 2012 11:19 pm    Post subject: Reply with quote

i would go for KMS, it has advandates
so firmware into kernel.

Quote:
Heh, it shows I don't have any personal experience with radeon cards. Totally forgot about firmware.

Gusar: was same here until about two weeks ago, spent three evenings messing with my kernel for radeon HD 4850 which died the week after now running with HD 5770.
Back to top
View user's profile Send private message
eldepeche
n00b
n00b


Joined: 08 May 2007
Posts: 21
Location: Portland, Or

PostPosted: Tue Feb 21, 2012 11:38 pm    Post subject: Reply with quote

Hooray! The instructions Kaso gave in the linked thread worked!

As a bonus, I got a ridiculously large framebuffer console!

Thanks a lot, everyone.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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