Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Desktop lags when opening web browsers or video players
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

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


Joined: 13 Jul 2013
Posts: 39

PostPosted: Fri Dec 26, 2014 2:25 pm    Post subject: Desktop lags when opening web browsers or video players Reply with quote

I didn't remember changing anything, but now when I open my web browsers like Chrome or Opera, or use MPlayer to play a video, the whole desktop will lag, very seriously. When Chrome is open, CPU usage is around 34%, and it will immediately drop to 3% when I minimize it (Everything will be normal then).

I'm using XFCE4, kernel 3.18.1

I think it's a problem related to some hardware acceleration or video drivers, but I don't know how to fix it.

Here's the messages file: http://pastebin.com/8yhsJekb
_________________
A man with two right arms.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Dec 26, 2014 2:55 pm    Post subject: Reply with quote

shanehou ... it may help to disable compositing ...

Code:
$ chromium --blacklist-accelerated-compositing

See this link for other possible parameters.

As for mplayer ... is your x11 accelerated, what -vo is used, and what is the video quality of the video in question?

HTH & best ... khay
Back to top
View user's profile Send private message
shanehou
n00b
n00b


Joined: 13 Jul 2013
Posts: 39

PostPosted: Fri Dec 26, 2014 3:05 pm    Post subject: Reply with quote

khayyam wrote:
shanehou ... it may help to disable compositing ...

Code:
$ chromium --blacklist-accelerated-compositing

See this link for other possible parameters.

As for mplayer ... is your x11 accelerated, what -vo is used, and what is the video quality of the video in question?

HTH & best ... khay


Any videos, even a 320x240 wmv video. If I make it fullscreen, it will lag more seriously.

What did you mean by "what -vo is used"?

Sometimes, if I open a window without minimize Chrome, contents in that window will be fine.

And keyboard sometimes misorders my input.

I've tried to add all the params in that link, but nothing turned out better.
_________________
A man with two right arms.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Dec 26, 2014 3:14 pm    Post subject: Reply with quote

shanehou wrote:
What did you mean by "what -vo is used"?

shanehou ... I mean mplayer's 'vo' (video out) ... you can probably run 'mplayer -vo help' to get a list of video outs supported by your build of mplayer (thats from memory, it may be 'vo'). So, for instance are you using vo=opengl, or vo=xv, etc.

best ... khay
Back to top
View user's profile Send private message
shanehou
n00b
n00b


Joined: 13 Jul 2013
Posts: 39

PostPosted: Fri Dec 26, 2014 3:57 pm    Post subject: Reply with quote

khayyam wrote:
shanehou wrote:
What did you mean by "what -vo is used"?

shanehou ... I mean mplayer's 'vo' (video out) ... you can probably run 'mplayer -vo help' to get a list of video outs supported by your build of mplayer (thats from memory, it may be 'vo'). So, for instance are you using vo=opengl, or vo=xv, etc.

best ... khay


It's gl_tiled, and I changed it to gl or x11, but nothing changed.
_________________
A man with two right arms.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Dec 26, 2014 9:03 pm    Post subject: Reply with quote

shanehou wrote:
It's gl_tiled, and I changed it to gl or x11, but nothing changed.

shanehou ... ok, so are you using an accelerated framebuffer? Does 'glxinfo' show opengl as enabled, and what is 'eselect opengl list' set to?

best ... khay
Back to top
View user's profile Send private message
shanehou
n00b
n00b


Joined: 13 Jul 2013
Posts: 39

PostPosted: Sat Dec 27, 2014 2:44 am    Post subject: Reply with quote

khayyam wrote:
shanehou wrote:
It's gl_tiled, and I changed it to gl or x11, but nothing changed.

shanehou ... ok, so are you using an accelerated framebuffer? Does 'glxinfo' show opengl as enabled, and what is 'eselect opengl list' set to?

best ... khay


eselect opengl list was set to x11-org and glxinfo output is http://pastebin.com/R42nKjuw
_________________
A man with two right arms.
Back to top
View user's profile Send private message
shanehou
n00b
n00b


Joined: 13 Jul 2013
Posts: 39

PostPosted: Sun Dec 28, 2014 2:15 am    Post subject: Reply with quote

I changed MPlayer vo to x11, and somehow it became normal! And I found "Use hardware acceleration when available" setting in Chrome and disabled it, and Chrome is normal now!

I think it's some issues related to opengl.
_________________
A man with two right arms.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun Dec 28, 2014 4:12 pm    Post subject: Reply with quote

shanehou wrote:
I think it's some issues related to opengl.

shanehou ... yes, and it seems there is another poster with the same chipset (ironlake) and the same symptoms.

best ... khay
Back to top
View user's profile Send private message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 283
Location: Canada

PostPosted: Sun Dec 28, 2014 4:30 pm    Post subject: Reply with quote

With the new xorg-server update and mesa update, came a lot of issues:
The new xorg-server stable caused my x server to crash the first time I try glxgears after a cold boot (this may be due to no acceleration as I mentioned here --> https://forums.gentoo.org/viewtopic-t-1006772-highlight-.html). After that, if I go back into xorg, glxgears works fine and it has video acceleration.
The new mesa stable update fixed this problem.
However, it caused my x server to crash the first time I tried opening chromium after a cold boot. Same thing; I restart xorg and it works fine.
Because I didn't want my work to be lost by accidentally opening chromium or forgetting to restart xorg, I decided to use the unstable version of xf86-video-intel.
I am currently running version 2.99.916 of xf86-video-intel.
So far, none of my applications causes my xorg to crash with or without video acceleration. However, my vlc won't play videos (audio only) without video acceleration.
:/

And I'm not sure what fixed this, but before if I put my laptop to sleep, if I wake it up again, leave GUI and come back, I get a blank screen. Now I am able to go back into xorg after a suspend to ram.
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