Tuesday, September 25, 2007

BUG: soft lockup detected on CPU#0!

Today my computer with Ubuntu didn't wanted to startup. Now I know a little bit about linux and I'm very good at messing around. Now I know that normally you don't see the real fault if you look to the screen and wait till it stops responding. I know I need to go to the first 'screen' to see the actually errors. (Press Ctrl+Alt+F1 on when you see the graphical bar expanding and you will see Ubuntu starting with the textual output.)

There I found the error 'BUG: soft lockup detected on CPU#0!' right after I my manual drivers getting loaded. I know I added 'ndiswrapper' to load automatically on startup, so I guessed that was the problem. Now the big problem is how to get Ubuntu to start again, because now I can't start Ubuntu and can't change anything to prevent 'ndiswrapper' to load.

It is actually very simple, if you find the module or the time it hangs. You only need to restart the computer and press Ctrl+Alt+F1 again, to see what the computer is doing and press on the moment that the module gets loaded or at the line that you know ubuntu is going to hang (So that's just before you get the error, but there could be 1-3 lines, between the initialization and the error coming on the screen) and you just have to press Ctrl+X to stop the module to get loaded. If you're on the right time the module won't get loaded and ubuntu will start normal. If it doesn't work the first time, you just have to retry it to be on the right time.

Now you're back in ubuntu and you can solve the problem. If you have the same problem as me, just remove ndiswrapper from the module list that get initialized on startup:
$ gksudo gedit /etc/modules
and remove ndiswrapper from that file

Thursday, September 20, 2007

Compiz fusion slow on nvidia

I used compiz fusion on a old laptop. There it seemed to work very fast and good. Now recently I bought a new laptop. Normally it should be much faster, because I now have dualcore and a Nvidia 8600 GT. After installing compiz fusion it was just slower than my previous computer. I thought it were problems with the driver, so I kept waiting for new drivers. Yesterday actually there were new nvidia drivers that should improve performance with a lot of nvidia 8*** cards. Now I didn't saw compiz fusion go any faster. That's when I started to look for another solution.

Now I ran 'compiz fusion' through 'compiz --replace'. That way I didn't enabled "indirect rendering". That was silly, I have a fast graphic card and I don't use it. Also it seems that for nvidia cards you need to enable 'loose binding'. I don't know what it does, but I get an enormous performance boost when I enable it.

So if you run compiz like me, you have to run: 'compiz --replace --indirect-rendering --loose-binding'. Or if you're using the compiz-icon. Right-click on the icon and in compiz-options you need to check 'Loose binding' and 'indirect rendering'.

Note: I have read a lot of posts before posting this. It could be that 'indirect rendering' doesn't help performance. So try to run compiz without it and look to the performance to be sure.