Xupeng's blog

Apr 7, 2009 - 2 minute read - Comments

Window doesn't redraw correctly when using compiz

Window doesn’t redraw correctly sometimes when using compiz, but if I switch to another window then switch back, it redraws, this problem occurs with any type of windows, it’s annoying.

I am using compiz 0.8.2 on my DELL 1420, with a Nvidia 8400M GS video card and Nvidia driver of version 180.44.  Once upon a time, I can run compiz on this computer without any problem, but that’s really a very long time ago, with a very old nvidia driver and very old compiz fusion.

After looking around the web, I found there are people with the very same problem  as mine, some of them have same video card as mine too, and there are several solutions to this problem, but maybe one of the methods can solve one guy’s problem, but it doesn’t matter to other people, I have tried some of them, but none of them matters, following are some methods maybe useful(at least useful for some people to get this problem solved):

  1. Use “Indirect Rendering” option to start compiz
  2. Use “Loosing Binding” option
  3. Put in ~/.gnomerc this line : dia-settings -a InitialPixmapPlacement=1 -a GlyphCache=1
  4. The problem is caused by an Nvidia feature called “powermizer” that pushes the video card into low performance mode, so load nvidia kernel module with these parameters:
options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222"
options nvidia NVreg_Mobile=1

I’ll try these solutions one by one, and maybe combination of these solutions, hope this annoying problem can be fixed.

UPDATE: It looks like the problem has gone after I enabled “Indirect Rendering” and “Loosing Binding” at the same time, wow!