PDA

View Full Version : Trouble installing Nvidia drivers on bare metal (kali 2021.4)



Divine_Swine
2021-12-07, 02:50
hello, i hope i am formatting this correctly (don't be afraid to tell me where i'm wrong, i enjoy learning new stuff). i'm used to using reddit's markdown version, but since it's my first time posting over here... i think i got this.

ok, so here's what i'm trying to do, i have a bare metal install of kali installed on my 2nd drive. my main daily driver (on my first drive) is manjaro (no ms windows here). here's my specs and hardware. i've shown the output of different commands showing: lspci VGA devices, etc... also, i followed the instructions to install the drivers and cuda tools exactly as desribed on this link https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/. about a quarter of the way down, there's a section for "optimus for laptops/notebooks." i followed those to a T and i still can't get the kernel driver to change to nvidia. i tried installing on different branches to the same result. i have since reverted back to the rolling-release. nvidia-smi, nvidia-detect, etc... isn't working, nvidia x server app doesn't open. i don't know what to do? i'm probably missing something stupid but hey... i'll own it at this point if that's what it is.

for what it's worth, my whole reason for this is so i can utilize my gpu's hashing power on the go when needed. thanks for looking

sudo dmidecode | grep -A 9 -i "system information"

sudo dmidecode | grep -A 9 -i "system information"
System Information
Manufacturer: Acer
Product Name: Nitro AN515-54
Version: V1.23
Serial Number: NHQ5VAA00191312C193400
UUID: 7e935f01-994f-e911-80cf-9828a640bd77
Wake-up Type: Power Switch
SKU Number: 0000000000000000
Family: Nitro 5

lshw -short -sanitize

lshw -short -sanitize
WARNING: you should run this program as super-user.
H/W path Device Class Description
================================================== ======
system Computer
/0 bus Motherboard
/0/0 memory 16GiB System memory
/0/1 processor Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
/0/100 bridge 8th Gen Core 4-core Processor Host Bridge/DRAM Registers [Coffee Lake H]
/0/100/1 bridge 6th-10th Gen Core Processor PCIe Controller (x16)
/0/100/1/0 display GP107M [GeForce GTX 1050 3 GB Max-Q]
/0/100/1/0.1 card1 multimedia GP107GL High Definition Audio Controller
/0/100/1/0.1/0 input28 input HDA NVidia HDMI/DP,pcm=3
/0/100/1/0.1/1 input29 input HDA NVidia HDMI/DP,pcm=7
/0/100/1/0.1/2 input30 input HDA NVidia HDMI/DP,pcm=8
/0/100/1/0.1/3 input31 input HDA NVidia HDMI/DP,pcm=9
/0/100/2 /dev/fb0 display CoffeeLake-H GT2 [UHD Graphics 630]
/0/100/8 generic Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
/0/100/12 generic Cannon Lake PCH Thermal Controller
/0/100/14 bus Cannon Lake PCH USB 3.1 xHCI Host Controller
/0/100/14.2 memory RAM memory
/0/100/14.3 wlan0 network Cannon Lake PCH CNVi WiFi
/0/100/15 bus Cannon Lake PCH Serial IO I2C Controller #0
/0/100/15.1 bus Cannon Lake PCH Serial IO I2C Controller #1
/0/100/16 communication Cannon Lake PCH HECI Controller
/0/100/17 storage Cannon Lake Mobile PCH SATA AHCI Controller
/0/100/1b bridge Cannon Lake PCH PCI Express Root Port #21
/0/100/1b/0 /dev/nvme0 storage WDS500G3X0C-00SJG0
/0/100/1b/0/1 /dev/nvme0n1 disk NVMe disk
/0/100/1d bridge Cannon Lake PCH PCI Express Root Port #9
/0/100/1d/0 /dev/nvme1 storage KINGSTON RBUSNS8154P3256GJ1
/0/100/1d/0/1 /dev/nvme1n1 disk NVMe disk
/0/100/1d.5 bridge Cannon Lake PCH PCI Express Root Port #14
/0/100/1d.5/0 eth0 network RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1e communication Cannon Lake PCH Serial IO UART Host Controller
/0/100/1f bridge HM470 Chipset LPC/eSPI Controller
/0/100/1f/0 system PnP device PNP0c02
/0/100/1f/1 system PnP device PNP0c02
/0/100/1f/2 system PnP device PNP0c02
/0/100/1f/3 system PnP device PNP0c02
/0/100/1f/4 system PnP device PNP0b00
/0/100/1f/5 generic PnP device INT3f0d
/0/100/1f/6 input PnP device PNP0303
/0/100/1f/7 system PnP device PNP0c02
/0/100/1f/8 system PnP device PNP0c02
/0/100/1f.3 card0 multimedia Cannon Lake PCH cAVS
/0/100/1f.3/0 input32 input HDA Digital PCBeep
/0/100/1f.3/1 input33 input HDA Intel PCH Front Headphone
/0/100/1f.4 bus Cannon Lake PCH SMBus Controller
/0/100/1f.5 bus Cannon Lake PCH SPI Controller
/1 input0 input AT Translated Set 2 keyboard
/2 input1 input Lid Switch
/3 input18 input Logitech Wireless Mouse
/4 input19 input Video Bus
/5 input2 input Sleep Button
/6 input20 input Video Bus
/7 input21 input Acer Wireless Radio Control
/8 input22 input PC Speaker
/9 input23 input Acer WMI hotkeys
/a input24 input HD WebCam: HD WebCam
/b input25 input ELAN0504:01 04F3:3091 Mouse
/c input27 input ELAN0504:01 04F3:3091 Touchpad
/d input3 input Power Button
/e input4 input Power Button
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

lspci | grep -i vga

lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1)

lspci -s 01:00.1 -v

lspci -s 01:00.0 -v
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] GP107M [GeForce GTX 1050 3 GB Max-Q]
Flags: bus master, fast devsel, latency 0, IRQ 149, IOMMU group 1
Memory at a3000000 (32-bit, non-prefetchable) [size=16M]
Memory at 90000000 (64-bit, prefetchable) [size=256M]
Memory at a0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 5000 [size=128]
Expansion ROM at a4080000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nvidia

HereToHelp
2022-02-14, 02:17
https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/

this tutorial doesnt work what gives, i installed fresh install off kali usb, to hard drive. followed tutorial step by step,

cannot continue, after verfiy driver installation,
nvidia-smi

this command shows nothing like the picture in the tutorial...

another document on cuda from nvidia dot com, "not sure what year" said edit - sudo nano /etc/modprobe.d/blacklist-nouveau.conf

and add

blacklist nouveau

options nouveau modeset=0

using this technique gave me grub error, and wouldnt boot - also while stuck not booting, pressing F1 and logging into terminal, using command nvideo-smi was able to show new items not seen before.

but i lost gui. any ways i think editing the blacklist file is not a fix so lets not do that unless other wise you can guide me in the proper position to fix this issue with me not able to install cuda,

thanks for reading. 1080 graphics card nvidia says its applicable.