sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #01239
Re : Re : dkms problem with old nvidia driver [RESOLVED]
I found the solution!
In the missing directory /usr/src/nvidia-190.53 I manualy create adkms.conf file using the template of the janitor script (I didn't know that the nvidia installer doesn't provide a dkms.conf).
After that I was able to remove the module with dkms with: sudo dkms remove -m nvidia -v 190.53 --all
After that, the dkms status was ok, with no occurence of nvidia.
I tried to install the nvidia 195.36.24 driver from ftp with the janitor but after reboot, I got this message in dmesg:
[ 21.562036] nvidia: module license 'NVIDIA' taints kernel.
[ 21.562040] Disabling lock debugging due to kernel taint
[ 22.121196] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 22.121199] NVRM: This can occur when a driver such as rivafb, nvidiafb or
[ 22.121200] NVRM: rivatv was loaded and obtained ownership of the NVIDIA
[ 22.121201] NVRM: device(s).
[ 22.121203] NVRM: Try unloading the rivafb, nvidiafb or rivatv kernel module
[ 22.121204] NVRM: (and/or reconfigure your kernel without rivafb/nvidiafb
[ 22.121205] NVRM: support), then try loading the NVIDIA kernel module again.
[ 22.121207] NVRM: No NVIDIA graphics adapter probed!
So I uninstalled the ftp driver with the janitor, reboot and resinstall the distrib driver (with the janitor too).
I got a new mismatch api between 195.36.15 (distrib) and 195.36.24 (ftp).
Maybe I should have check that just after uninstalling the ftp driver with the janitor, the nvidia.ko was removed from /lib/modules/2.6.32-22-generic/updates/dkms/, that's right?
It was the same initial problem but with different versions... So I uninstall the distrib driver, recreate the dkms.conf for 195.36.24, remove the module with dkms, reboot and reinstall the driver from the distrib with the janitor and now everything works!!!!
Thanks
Christophe
________________________________
De : "domakmail-ubuntu@xxxxxxxx" <domakmail-ubuntu@xxxxxxxx>
À : Sony Vaio Z-series Laptop <sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx>
Envoyé le : Jeu 6 mai 2010, 19h 54min 59s
Objet : [Sony-vaio-z-series] Re : dkms problem with old nvidia driver
Thanks, Raphaël.
> Did you not remove all the old nvidia driver stuff before upgrading?
no... I didn't know. I will not forget the next time!
By the way, why I have to removre only the nvidia stuff and not the Norbert's sony module? What's the difference?
> Ok. First try '--force' and if that does not solve your problem
the --force option didn't help... your help will be welcome!
________________________________
De : Raphael Gradenwitz <raphael@xxxxxxxxxxxxxxxxx>
À : Sony Vaio Z-series Laptop <sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx>
Cc : domak <domakmail-ubuntu@xxxxxxxx>
Envoyé le : Jeu 6 mai 2010, 18 h 44 min 05 s
Objet : Re: [Sony-vaio-z-series] dkms problem with old nvidia driver
Hi Christophe,
Am Donnerstag, den 06.05.2010, 12:33 +0000 schrieb domak:
> I upgraded from karmic to lucid few days ago. On karmic, nvidia driver
> was installed with the sony janitor script, thanks to Raphaël (sorry, I
> can't remember which ftp version I had, prety sure that was 195 but...)
> The first time I booted on speed mode after upgrade, fglxgears was not
> running, so I reinstalled the driver from ftp (195.36.24) with janitor
> script.
Did you not remove all the old nvidia driver stuff before upgrading?
>
> During install, I had some error message from dkms. These messages are
> the same that the ones from dkms status:
>
> sony-laptop-zseries, 0.9np5, 2.6.31-17-generic, x86_64: built
> sony-laptop-zseries, 0.9np5, 2.6.31-19-generic, x86_64: built
> sony-laptop-zseries, 0.9np5, 2.6.31-20-generic, x86_64: built
> sony-laptop-zseries, 0.9np5, 2.6.31-21-generic, x86_64: built
> sony-laptop-zseries, 0.9np5, 2.6.31-18-generic, x86_64: built
> sony-laptop-zseries, 0.9np5, 2.6.31-16-generic, x86_64: built
> sony-laptop-zseries, 0.9np5, 2.6.32-22-generic, x86_64: installed
> dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
> dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
> dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
> nvidia, 190.53, 2.6.31-17-generic, x86_64: built
> dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
> dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
> dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
> nvidia, 190.53, 2.6.31-19-generic, x86_64: built
> dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
> dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
> dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
> nvidia, 190.53, 2.6.31-20-generic, x86_64: built
> dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
> dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
> dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
> nvidia, 190.53, 2.6.31-21-generic, x86_64: installed
> dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
> dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
> dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
> nvidia, 190.53, 2.6.31-18-generic, x86_64: built
> dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
> dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
> dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
> nvidia, 190.53, 2.6.32-22-generic, x86_64: installed
>
> That's weird because I have only one kernel, the 2.6.32-22 and still
> have this messages, even after removing driver with janitor script.
> I tried to remove the nvidia module from dkms with:
>
> domak@domakistan-laptop:~$ sudo dkms remove -m nvidia -v 190.53 --all
> dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
> dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
> dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
>
> Error! Bad conf file.
> File: /var/lib/dkms/nvidia/190.53/source/dkms.conf does not represent
> a valid dkms.conf file.
>
> The /var/lib/dkms/nvidia/190.53/source is a link on a directory that
> doesn't exist:
> lrwxrwxrwx 1 root root 22 2009-12-24 16:04 source ->
> /usr/src/nvidia-190.53
The directory '/usr/src/nvidia-190.53' seem to be removed during upgrade
process. When nothing else won't work, you may always be able to
recreate that dir with the original sources but first try to remove it
with '--force':
sudo dkms remove -m nvidia -v 190.53 --all --force
>
> I don't know if dkms is the real problem but when I try to install the
> driver from distrib, I have some messages that seems to confirm that:
> dmesg:
> [ 27.028319] NVRM: API mismatch: the client has the version 195.36.15,
> but
> [ 27.028321] NVRM: this kernel module has the version 190.53. Please
> [ 27.028329] NVRM: make sure that this kernel module and all NVIDIA
> driver
> [ 27.028330] NVRM: components have the same version.
>
> What should I do to remove this module without breaking my system (I
> have only some very basic knowledge on linux)?
Ok. First try '--force' and if that does not solve your problem, I'll
explain how you can recreate the removed source dir.
regards,
Raphael
References