GeForce GTX 650 Ti with non-free debian repository driver crash

Hello,
I installed the non-free debian official repository nvidia driver. I get a lot of error in the log.
(see nvidia-bug-report.log.gz)
Can you help me to fix the issue ?
Thanks.
nvidia-bug-report.log.gz (81 KB)

The kernel driver is running fine but the X/GLX driver is not available/switched to mesa.
Please check if this package is installed/install it:
[url]Debian -- Error
then use it to switch to nvidia.

Tanks for your quick reply.

The package “glx-alternative-nvidia” is already installed :

sudo apt install glx-alternative-nvidia
Reading package lists... Done
Building dependency tree       
Reading state information... Done
glx-alternative-nvidia is already the newest version (0.8.8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I try to switch but it doesn’t find nvidia

sudo update-glx --config glx
There is only one alternative in link group glx (providing /usr/lib/glx): /usr/lib/mesa-diverted
Nothing to configure.
Processing triggers for glx-alternative-mesa (0.8.8) ...
Processing triggers for libc-bin (2.27-6) ...

Nvidia

sudo update-alternatives --get-selections | grep nvidia
nvidia                         auto     /usr/lib/nvidia/legacy-390xx

How did you install the driver, did you use the ‘nvidia-driver’ metapackage?
What’s the output of
sudo update-alternatives --list x86_64-linux-gnu_gl_conf

I have installed the nvidia-driver metapackage

dpkg -l | grep nvidia-driver                                                                                                        
ii  nvidia-driver                          390.87-2                                amd64        NVIDIA metapackage
ii  nvidia-driver-bin                      390.87-2                                amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64               390.87-2                                amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)

But I don’t have x86_64-linux-gnu_gl_conf

sudo update-alternatives --list x86_64-linux-gnu_gl_conf 
update-alternatives: error: no alternatives for x86_64-linux-gnu_gl_conf

x86_64-linux-gnu_gl_conf no present when I list update-alternatives

I’ve taken a look at the contents of the driver packages and they look broken, even containing V375 files or being empty.
Please create a file /usr/share/X11/xorg.conf.d/10-nvidia-ouputclass.conf

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    ModulePath "/usr/lib/nvidia/current"
    ModulePath "/usr/lib/xorg/modules"
EndSection

and create a new nvidia-bug-report.log after reboot.

Thanks a lot, Nvidia driver seems to be working fine now.
I still get some errors in the log, but nothing significant.

I have attached nvidia-bug-report.
nvidia-bug-report.log.gz (86.3 KB)

Looks good now. You could install acpid so the nvidia driver wouldn’t complain about it anymore.

All fine.
Thanks for all.