Fix for Chrome very slow behavior with NVidia card and UP5

Post your update and upgrade related errors here
Forum rules
Before you post please read how to get help

Fix for Chrome very slow behavior with NVidia card and UP5

Postby DarkNova on Fri Sep 28, 2012 3:57 pm

Upon upgrading to UP5, Chrome was behaving terribly. It would take a second or two to switch tabs on a very fast machine. Each time a tab was clicked, X's CPU would spike to 100%. I tracked this to this debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682308. Basically, UP5 upgraded to libcairo2 1.12.2 and this version reverted a patch that had been in earlier versions to prevent this behavior. As of yet, libcairo2 has not been repatched in debian testing to address this problem. Some people have recompiled libcairo2 with the patch, with success.

In the bug I linked to I saw that several people claimed the NVidia driver 304.30 and higher fixed this problem, without having to patch libcairo2. I decided to go this route, and it worked.

Debian testing has already upgraded the NVidia driver. I decided to manually pull the .deb's from Debian testing and upgrade them, rather than mess around with apt sources. I think this is a pretty safe method as you are only upgrading a handful of NVidia-specific packages, and when the next version of Linux Mint comes out it will probably have newer versions than these and then will upgrade them automatically.

I went to http://packages.debian.org/wheezy/nvidia-glx and downloaded this deb for my machine (amd64) along with the packages it depends on that needed to be upgraded. So the packages I ended up downloading were:

libgl1-nvidia-glx_304.48-1_amd64.deb
nvidia-glx_304.48-1_amd64.deb
nvidia-settings_304.48-1_amd64.deb
xserver-xorg-video-nvidia_304.48-1_amd64.deb
nvidia-alternative_304.48-1_amd64.deb
nvidia-kernel-dkms_304.48-1_amd64.deb
nvidia-vdpau-driver_304.48-1_amd64.deb

nvidia-settings needs to be upgraded first so I ran "dpkg --install nvidia-settings_304.48-1_amd64.deb". Then I did "rm nvidia-settings_304.48-1_amd64.deb" and "dpkg --install *.deb" to install the rest. Reboot and everything worked fine.

If someone has a better method feel free to share it -- this is just what worked for me.

I'm not really sure what the official policy is for pushing packages outside a release pack, but it seems like one could make a case for this being pushed before UP6. As far as I can tell, this bug would probably affect anyone who is running Chrome & the nvidia driver, which seems like it would be a lot of people.
DarkNova
Level 1
Level 1
 
Posts: 6
Joined: Fri Sep 28, 2012 3:44 pm

Linux Mint is funded by ads and donations.
 

Re: Fix for Chrome very slow behavior with NVidia card and U

Postby bithir on Fri Sep 28, 2012 4:29 pm

I followed http://www.g0hl1n.net/node/17 to resolve it.

It avoids pinning or replacing upgradable packages. This just puts a symlink to libcairo in the chrome directory so it loads it before it checks elsewhere. I found that to be a reasonable compromise until a fix is found. At that time, I will remove the libcairo symlink that I have in the chrome directory.
User avatar
bithir
Level 1
Level 1
 
Posts: 10
Joined: Fri Jul 06, 2012 1:19 pm

Re: Fix for Chrome very slow behavior with NVidia card and U

Postby uglyone on Fri Oct 12, 2012 2:09 pm

I use something found at a blog - and it works for me: just run ths command: nvidia-settings -a InitialPixmapPlacement=0
uglyone
Level 1
Level 1
 
Posts: 10
Joined: Thu Nov 30, 2006 10:00 am


Return to Update/Upgrade Issues

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests