PDA

View Full Version : Kali Linux 2020.1 nvidia driver problem



linuksfan
2020-02-17, 16:24
Hi, I'm newbie. I installed the Nvidia drivers according to https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/
(https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/)I,m sorry , this my system :
3862
3860

But nvidia-smi shows this:
3861

How to enable the nvidia driver?

Do you need to apply:


6.Now we generate /etc/X11/xorg.conf file with this bus ID according to nvidia guide http://us.download.nvidia.com/XFree8...E/randr14.html (http://us.download.nvidia.com/XFree86/Linux-x86/375.39/README/randr14.html):

Code:
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:10:0:0"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Replace the bold string with your Bus ID and save it to /etc/X11/xorg.conf

7.Now we have to create some scripts according to our display manager https://wiki.archlinux.org/index.php...splay_Managers (https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers).Since im using default Kali linux which is GDM,i created two files:
/usr/share/gdm/greeter/autostart/optimus.desktop
/etc/xdg/autostart/optimus.desktop
with the following content:
Code:
[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer


Which tutorial is more timely?

1. https://forums.kali.org/showthread.php?35748-TUTORIAL-Installing-official-NVIDIA-driver-in-Optimus-laptop
2. https://github.com/europa502/Installing-Nvidia-drivers-on-Kali-Linux

Pliz, help