Bug#859310: xserver-xorg-video-nvidia-legacy-304xx: Failed to load module nvidia (module does not exist, 0) No drivers available.

Luca Boccassi luca.boccassi at gmail.com
Wed Apr 5 23:44:32 UTC 2017


Control: severity -1 normal
Control: tags -1 moreinfo

On Sat, 2017-04-01 at 21:12 -0400, A. F. Cano wrote:
> Package: xserver-xorg-video-nvidia-legacy-304xx
> Version: 304.135-2
> Severity: grave
> Tags: patch
> Justification: renders package unusable
> 
> Dear Maintainer,
> 
>    * What led up to the situation?
> 
> All the components of the nvidia-legacy-304xx drivers (kernel and
> xorg)
> were working fine in jessie.  After an upgrade to stretch, the
> nouveau
> driver was unreliable (video artifacts, lock-ups) as it had been
> before
> in jessie.  I had to manually remove packages, blacklist nouveau,
> install and compile the kernel driver, etc...  After all was done X
> wouldn't start.  These are the relevant lines in Xorg.0.log.old
> before the
> fix below:
> 
> [    28.868] (II) LoadModule: "nvidia"
> [    28.907] (WW) Warning, couldn't open module nvidia
> [    28.907] (II) UnloadModule: "nvidia"
> [    28.907] (II) Unloading nvidia
> [    28.907] (EE) Failed to load module "nvidia" (module does not
> exist, 0)
> [    28.907] (EE) No drivers available.
> [    28.907] (EE) Fatal server error:
> [    28.907] (EE) no screens found(EE) 
> 
> 
>    * What exactly did you do that was effective?
> 
> It appears that the kernel driver packages and the xorg driver
> packages
> don't agree as to the location of the nvidia_drv.so file.  Creating
> this
> symbolic link fixes the problem.
> 
> ln -s /usr/lib/nvidia/legacy-304xx/nvidia_drv.so
> /usr/lib/xorg/modules/drivers/nvidia_drv.so
> 
>    * What was the outcome of this action?
> 
> The X server started correctly.  After that it was only a matter of
> setting it up with nvidia-settings.
> 
> All the information below was collected by reportbug after the
> symbolic
> link above was set up and the system rebooted.  The Xorg.0.log.old
> (also
> below) reflects the problem and contains the few lines included
> above.
> 
> OpenGL and NVIDIA library files installed:
> -rw-r--r-- 1 afc  afc      1248 Apr  1 16:50 /etc/X11/xorg.conf
> lrwxrwxrwx 1 root root       22 Mar 28 22:30 /etc/alternatives/glx ->
> /usr/lib/mesa-diverted

The problem is that your dpkg alternative is set to use mesa rather
than nvidia to provide glx. That's why the symlink was missing.

You can fix this manually by running:

sudo update-glx --config glx

And by choosing /usr/lib/nvidia at the selection menu.

I see you mention you had to fix things up "manually" when moving from
nouveau to nvidia. I assume that's where things went wrong, as this is
normally done automatically when installing through the nvidia-driver
package.

Do you have a log with the exact steps you've taken after the upgrade?

Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20170406/3bf4293b/attachment.sig>


More information about the pkg-nvidia-devel mailing list