-   Linux - Software (
-   -   recompiled kernel break x windows, why? (

i_heart_pandas 09-09-2009 06:41 AM

recompiled kernel break x windows, why?
as the title says, i can recompile,update and upgrade my vaio laptop's (debian) kernel willy nilly and everything works fine. but with my desktop even a recompile makes xwindows not work, i was wondering why this could happen? is it because i have twinview? m gpu is 8800gtx if i matters?

lurko 09-09-2009 08:26 AM

It's most likely because of the Nvidia blob. If you compile or update to a new kernel, the Nvidia driver will need to recompiled too before it will work at all with the new kernel. You could use the nv driver instead, but it's basically a pile of poo.

There's a thread in the Debian subforum detailing the various methods of Nvidia driver installation. If you follow the method from the Debian Wiki, the "Debian Way" using module-assistant, you could use this script I threw together to simplify rebuilding the blob after a new kernel is installed/compiled:


sudo /etc/init.d/kdm stop
sudo modprobe -r nvidia
sudo m-a clean,a-i -i -f nvidia-kernel-source # -t
sudo depmod -a
sudo /etc/init.d/kdm start

I have another script that simplifies installing the blob from the .bin package downloaded from Nvidia's website (and another that's good for just rebuilding the module and keeping the rest of the driver package as-is), but it's more convoluted and it doesn't work with the newer kernels from testing/unstable which have the headers package split up into (I think) arch-specific and arch-independent sections. The module-assistant way is much simpler.

i_heart_pandas 09-09-2009 06:26 PM

cheers i'll check it out :)

All times are GMT -5. The time now is 04:08 PM.