Cannot reinstall Nvidia drivers  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
Nobluesky
Posts: 14
Joined: Sat Jan 21, 2023 10:07 pm

Re: Cannot reinstall Nvidia drivers

#11 Post by Nobluesky »

Arnox wrote: Sun Jan 22, 2023 2:27 am What happens when you load up a persistent LiveUSB of MX and install the Nvidia drivers there?
I may be dumb but I cannot make the LiveUSB persistent despite choosing the right option with Live USB creator.
In all cases a fresh install works with no error message and displays modsetting as a driver after reboot in system info.

Nobluesky
Posts: 14
Joined: Sat Jan 21, 2023 10:07 pm

Re: Cannot reinstall Nvidia drivers

#12 Post by Nobluesky »

dolphin_oracle wrote: Sun Jan 22, 2023 12:02 am I'm going to suggest install mx-debian-firmware, then apt install -f

for whatever reason, your installation of the nvidia driver isn't quite finishing.
I installed mx-debian-firmware, then ran apt install -f (the later had nothing to do), but it worked, install is no more borked at reboot.
Now I'm running modesetting dixit system info and dual monitor works. Seems mx-debian-firmware did it.

Thank you for your precious help, I was mad just thinking of all the custom stuff I had to reinstall on a fresh copy, that's quite a relief :number1:
Edit : I had no idea more firmware packages were needed, as this is AHS version with AMD microcode, firmware-iwlwifi and all that jazz.
Edit2 : it also fixed the boot progress theme that was a black screen before.
Edit3 : Seems I'm still using Nouveau somehow, but it now works fine. Might as well keep it this way.
Last edited by Nobluesky on Sun Jan 22, 2023 11:37 am, edited 2 times in total.

PeterPol
Posts: 26
Joined: Sat Jan 21, 2023 8:31 am

Re: Cannot reinstall Nvidia drivers

#13 Post by PeterPol »

I am having the same problem.

Yesterday I was unable to install the Nvidia driver after running a systemupdate so I re-installed Nouveau to be able to work. Today ran the MX Nvidia driver installer without problems except that the nvidia driver is not loaded. Nouveau seems very persistant.

Searching the nets I tried a solution creating a /etc/modprobe.d/blacklist-nouveau.conf file with

Code: Select all

blacklist nouveau
options nouveau modeset=0
in it and then run

Code: Select all

$ sudo update-initramfs -u
this did not help, I booted in terminal mode without x. Removing /etc/modprobe.d/blacklist-nouveau.conf file solved this new issue.

What now?

User avatar
Eadwine Rose
Administrator
Posts: 15172
Joined: Wed Jul 12, 2006 2:10 am

Re: Cannot reinstall Nvidia drivers

#14 Post by Eadwine Rose »

@PeterPol Please stop posting in other folks threads, thanks.

You have even made your own topic already. Everyone, please refer to helping Peter here: https://forum.mxlinux.org/viewtopic.php ... 60#p710260 (link adjusted, new topic was made)
MX-23.6_x64 July 31 2023 * 6.1.0-38amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Nobluesky
Posts: 14
Joined: Sat Jan 21, 2023 10:07 pm

Re: Cannot reinstall Nvidia drivers

#15 Post by Nobluesky »

Hello again,
I'm quite happy with Nouveau, but I don't like staying in the dark so continuing. So I tried uninstalling and reinstalling again, and this time no error in the ddm.log (attached).
But after reboot, no sign of the Nvidia driver being used.

Code: Select all

Snapshot created on: 20230109_0332
System:    Kernel: 5.18.0-4mx-amd64 [5.18.16-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.18.0-4mx-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower janvier 09  2023 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop Mobo: Gigabyte model: B550 AORUS ELITE V2 serial: <filter> 
           BIOS: American Megatrends LLC. v: F15d date: 07/20/2022 
CPU:       Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 family: 17 (23) 
           model-id: 71 (113) stepping: 0 microcode: 8701021 cache: L2: 3 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86241 
           Speed: 2112 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 2112 
           2: 2498 3: 2139 4: 2014 5: 3506 6: 2477 7: 2193 8: 2191 9: 2097 10: 4114 11: 1980 
           12: 2194 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP protection 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP: always-on, RSB 
           filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GP108 [GeForce GT 1030] vendor: Micro-Star MSI driver: nouveau 
           v: kernel alternate: nvidia_current_drm,nvidia_current bus-ID: 06:00.0 
           chip-ID: 10de:1d01 class-ID: 0300 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
           s-diag: 582mm (22.9") 
           Monitor-1: DP-1 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
           diag: 686mm (27") 
           OpenGL: renderer: NV138 v: 4.3 Mesa 22.0.5 direct render: Yes 
Audio:     Device-1: NVIDIA GP108 High Definition Audio vendor: Micro-Star MSI 
           driver: snd_hda_intel v: kernel bus-ID: 06:00.1 chip-ID: 10de:0fb8 class-ID: 0403 
           Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel 
           v: kernel bus-ID: 08:00.4 chip-ID: 1022:1487 class-ID: 0403 
           Sound Server-1: ALSA v: k5.18.0-4mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel modules: wl bus-ID: 04:00.0 
           chip-ID: 8086:2526 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel port: f000 
           bus-ID: 05:00.0 chip-ID: 10ec:8125 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
Bluetooth: Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb v: 0.8 
           bus-ID: 1-6.2:4 chip-ID: 8087:0025 class-ID: e001 
           Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: 
           hardware: no software: yes address: <filter> 
           Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: slave accept 
Drives:    Local Storage: total: 4.2 TiB used: 3.08 TiB (73.2%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 500GB 
           size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
           type: SSD serial: <filter> rev: 2B2QEXM7 temp: 34.9 C scheme: GPT 
           ID-2: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HUS726T4TALA6L4 
           size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: HDD 
           rpm: 7200 serial: <filter> rev: W984 scheme: GPT 
           ID-3: /dev/sdb maj-min: 8:16 vendor: Kingston model: SUV400S37120G size: 111.79 GiB 
           block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 87RA scheme: GPT 
Partition: ID-1: / raw-size: 433.53 GiB size: 425.65 GiB (98.18%) used: 15.61 GiB (3.7%) fs: ext4 
           dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 32.23 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
Sensors:   System Temperatures: cpu: 16.8 C mobo: 16.8 C gpu: nouveau temp: 37.0 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: 2570 note: see --pkg apt: 2563 lib: 1417 flatpak: 7 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.lip6.fr/pub/linux/distributions/mxlinux/packages/mx/repo/ bullseye main non-free
           2: deb http://ftp.lip6.fr/pub/linux/distributions/mxlinux/packages/mx/repo/ bullseye ahs
Info:      Processes: 298 Uptime: 10m wakeups: 1 Memory: 15.53 GiB used: 2.26 GiB (14.5%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

Code: Select all

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
You do not have the required permissions to view the files attached to this post.

Nobluesky
Posts: 14
Joined: Sat Jan 21, 2023 10:07 pm

Re: Cannot reinstall Nvidia drivers

#16 Post by Nobluesky »

I had no simlink to nvidia-blacklists-nouveau.conf in /etc/modprobe.d/ so I made one and updated initramfs, and broke X.
Xorg log says failed to load nv, and messages.log says loading nvidia-modeset, then initialized.
Reverted changes from the console. I'm confused.

Nobluesky
Posts: 14
Joined: Sat Jan 21, 2023 10:07 pm

Re: Cannot reinstall Nvidia drivers  [Solved]

#17 Post by Nobluesky »

(Previously) : Installed

Code: Select all

sudo apt install mx-debian-firmware
per DolphinOracle recommendation, fixed Nouveau and console access
(Previously) : made simlink

Code: Select all

sudo ln /etc/nvidia/current/nvidia-blacklists-nouveau.conf /etc/modprobe.d/nvidia-blacklists-nouveau.conf

Made a simlink

Code: Select all

sudo ln /etc/nvidia/current/nvidia-drm-outputclass.conf /usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf
Also choose

Code: Select all

update-glx --config glx 
and forced Nvidia manually
Image

Updated initramfs with

Code: Select all

sudo update-initramfs -u
Finally works. Dunno what happened, it's supposed to work automagically :confused:

Code: Select all

Snapshot created on: 20230109_0332
System:    Kernel: 5.18.0-4mx-amd64 [5.18.16-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.18.0-4mx-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower janvier 09  2023 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop Mobo: Gigabyte model: B550 AORUS ELITE V2 serial: <filter> 
           BIOS: American Megatrends LLC. v: F15d date: 07/20/2022 
CPU:       Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 family: 17 (23) 
           model-id: 71 (113) stepping: 0 microcode: 8701021 cache: L2: 3 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86228 
           Speed: 1904 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 1904 
           2: 2034 3: 2196 4: 2196 5: 2195 6: 2194 7: 2195 8: 2195 9: 2193 10: 2195 11: 2410 
           12: 2194 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP protection 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP: always-on, RSB 
           filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GP108 [GeForce GT 1030] vendor: Micro-Star MSI driver: nvidia 
           v: 510.108.03 alternate: nouveau,nvidia_current_drm,nvidia_current bus-ID: 06:00.0 
           chip-ID: 10de:1d01 class-ID: 0300 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: loaded: nvidia 
           unloaded: fbdev,modesetting,nouveau,vesa alternate: nv display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3") 
           s-diag: 583mm (23") 
           Monitor-1: DP-0 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
           diag: 686mm (27") 
           OpenGL: renderer: NVIDIA GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 510.108.03 
           direct render: Yes 
Audio:     Device-1: NVIDIA GP108 High Definition Audio vendor: Micro-Star MSI 
           driver: snd_hda_intel v: kernel bus-ID: 06:00.1 chip-ID: 10de:0fb8 class-ID: 0403 
           Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel 
           v: kernel bus-ID: 08:00.4 chip-ID: 1022:1487 class-ID: 0403 
           Sound Server-1: ALSA v: k5.18.0-4mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel modules: wl bus-ID: 04:00.0 
           chip-ID: 8086:2526 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel port: f000 
           bus-ID: 05:00.0 chip-ID: 10ec:8125 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
Bluetooth: Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb v: 0.8 
           bus-ID: 1-6.2:4 chip-ID: 8087:0025 class-ID: e001 
           Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: 
           hardware: no software: yes address: <filter> 
           Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: slave accept 
Drives:    Local Storage: total: 4.2 TiB used: 3.08 TiB (73.2%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 500GB 
           size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
           type: SSD serial: <filter> rev: 2B2QEXM7 temp: 35.9 C scheme: GPT 
           ID-2: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HUS726T4TALA6L4 
           size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: HDD 
           rpm: 7200 serial: <filter> rev: W984 scheme: GPT 
           ID-3: /dev/sdb maj-min: 8:16 vendor: Kingston model: SUV400S37120G size: 111.79 GiB 
           block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 87RA scheme: GPT 
Partition: ID-1: / raw-size: 433.53 GiB size: 425.65 GiB (98.18%) used: 15.61 GiB (3.7%) fs: ext4 
           dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 32.23 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
Sensors:   System Temperatures: cpu: 16.8 C mobo: 16.8 C gpu: nvidia temp: 37 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 35% 
Repos:     Packages: 2570 note: see --pkg apt: 2563 lib: 1417 flatpak: 7 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.lip6.fr/pub/linux/distributions/mxlinux/packages/mx/repo/ bullseye main non-free
           2: deb http://ftp.lip6.fr/pub/linux/distributions/mxlinux/packages/mx/repo/ bullseye ahs
Info:      Processes: 309 Uptime: 0m wakeups: 1 Memory: 15.53 GiB used: 1.13 GiB (7.3%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)
Last edited by Nobluesky on Mon Mar 18, 2024 5:38 pm, edited 5 times in total.

User avatar
dolphin_oracle
Developer
Posts: 22664
Joined: Sun Dec 16, 2007 12:17 pm

Re: Cannot reinstall Nvidia drivers

#18 Post by dolphin_oracle »

thanks for the solution, but that is bizarre.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

Nobluesky
Posts: 14
Joined: Sat Jan 21, 2023 10:07 pm

Re: Cannot reinstall Nvidia drivers

#19 Post by Nobluesky »

For your information, new driver update today reverted my install to "nouveau, vesa".
Reinstalling drivers with the assistant fixed it, but I had to delete the two simlinks I had created previously because it was saying "broken glx links group".

Post Reply

Return to “MX Help”