Why scrolling in Unity is faster than in Xmonad?

2

I noticed that when I use default Ubuntu's Unity, everything scrolls fast and smooth. By "everything" I mean web-browsers and vim in terminal when I browse source code.

When I use xmonad it seems to be much slower. I load xmonad as a separated xsession. Maybe I should add some command to my startup script in order to enable video acceleration?

evfwcqcg

Posted 2013-02-15T05:41:06.267

Reputation: 329

Yes, I have this exact problem too. Please, do me a favour. Install htop (sudo apt-get install htop) and tell me the average CPU usage of X11. When my experience degrades I start seeing the X11 process start to eat up around 50% of my CPU usage. High X11 CPU usage seems to be a symptom of this problem for me and I would love to get to the bottom of the problem with you so that both of us have a better experience. – Robert Massaioli – 2013-02-16T10:42:13.167

@RobertMassaioli, good, I'm happy to cooperate in this. As you suggested, I installed htop and noticed that the process user/bin/X (I guess it's X11) is consuming around 15-25% CPU when I do scrolling in vim. (http://i.imgur.com/QLf4pjU.png). I will try to do the same in unity and compare the difference.

– evfwcqcg – 2013-02-16T11:54:00.197

In Unity, average CPU usage of usr/bin/X is about 30-40% when I do scrolling in vim. And 3-5% for both, Xmonad and Unity, when computer in idle. – evfwcqcg – 2013-02-16T12:09:15.287

Well that is unexpected. So you are saying that you roughly see the same CPU usage for X in Unity as you do in XMonad. That is a bummer. I don't think that I have the same results. I think though that X11 is using up too much CPU on your machine. I am led to believe that X's CPU usage is supposed to hover around the 5% - 20% mark when it is working properly (what you are seeing in idle). – Robert Massaioli – 2013-02-17T22:28:40.577

See this page suggests that it should only hover around 5% at all times: https://wiki.ubuntu.com/X/Troubleshooting/HighCPU

– Robert Massaioli – 2013-02-17T22:29:28.830

I have exactly the same problem as you do, the same with CPU usage. Since I also have strange artifacts when trying to make terminal window transparent, I think this might be a GPU problem. I use AMD Radeon 7670 on my laptop with xserver-xorg-video-ati drivers – Bogdan Kulynych – 2013-09-02T21:07:32.420

No answers