Black screen (missing nvidia drivers) after updating Manjaro

Hi,

After updating Manjaro, Nvidia drivers stopped working, and after searching the forums and trying multiple solutions to similar problems, I’m still hitting a stone wall, so I’m posting this thread hoping that maybe someone can help me solve the issue. I’ll post my inxi output in accordance to the rules. I apologize if there might be any typos, this is my girlfriend’s PC and she sent me the output as pictures. The whole problem started when she tried to update firefox and it somehow borked the entire system. Neither of us is super pc-savvy. I used some software to convert it to text and proof-read it for typos, but I might have missed some.

System:
	Kernel: 5.10.42-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
	parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
	root=UUID=67f3ecf5-6ada-41e5-955d-62f4c47b6bd6 rw quiet apparmor=1
	security=apparmor udev.log_priority=3
	Console: tty 4 Distro: Manjaro Linux base: Arch Linux
Machine:
	Type: Desktop Mobo: Gigabyte model: B450 AORUS M v: x.x serial: <filter>
	UEFI-[Legacy]: American Megatrends v: F42a date: 07/31/2019
Battery:
	Message: No system battery data found. Is one present?
Memory:
	RAM: total: 15.64 GiB used: 488.3 MiB (3.0%)
	RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
	Info: 6-Core model: AMD Ryzen 5 2600X bits: 64 type: MT MCP arch: Zen+
	family: 17 (23) model-id: 8 stepping: 2 microcode: 800820D cache: L2: 3 MiB
	bogomips: 86267
	Speed: 4075 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz):
	1: 4075 2: 2063 3: 2194 4: 2195 S: 2063 6: 2182 7: 2195 8: 2195 93: 4017
	10: 1985 11: 1968 12: 2196
	Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
	bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid
	cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid
	fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_Im Ibrv Im mca
	mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl
	npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb
	perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36
	rdrand rdseed rdtscp rep_good sep sev sev_es sha_ni skinit smap smca sme
	smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall tce
	topoext tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt
	xgetbvi xsave xsavec xsaveerptr xsaveopt xsaves
	Vulnerabilities: Type: itlb_multihit status: Not affected
	Type: l1tf status: Not affected
	Type: mds status: Not affected
	Type: meltdown status: Not affected
	Type: spec_store_bypass
	mitigation: Speculative Store Bypass disabled via prctl and seccomp
	Type: spectre_v1
	mitigation: usercopy/swapgs barriers and __user pointer sanitization
	Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP:
	disabled, RSB filling
	Type: srbds status: Not affected
	Type: tsx_async_abort status: Not affected
Graphics:
	Device-1: NVIDIA TU116 [GeForce GTX 1660] vendor: Micro-Star MSI driver: N/A
	alternate: nouveau bus-ID: 06:00.0 chip-ID: 10de:2184 class-ID: 0300
	Display: server: X.org 1.20.11 driver: loaded: N/A alternate: nvidia
	tty: 80x30
	Message: Advanced graphics data unavailable in console. Try -G --display
Audio:
	Device-1: NVIDIA TU116 High Definition Audio vendor: Micro-Star MSI
	driver: snd_hda_intel v: kernel bus-ID: 06:00.1 chip-ID: 10de:1aeb
	class-ID: 0403
	Device-2: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel
	v: kernel bus-ID: 08:00.3 chip-ID: 1022:1457 class-ID: 0403
	Device-3: Razer USA Kraken 7.1 Chroma type: USB
	driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-4:2 chip-ID: 1532:0504
	class-ID: 0300
	Sound Server-1: ALSA v: k5.10.42-1-MANJARO running: yes
	Sound Server-2: JACK v: 0.125.0 running: no
	Sound Server-3: PulseAudio v: 14.2 running: no
	Sound Server-4: PipeWire v: 0.3.30 running: no
Network:
	Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
	vendor: Gigabyte driver: r8169 v: kernel port: f000 bus-ID: 03:00.0
	chip-ID: 10ec:8168 class-ID: 0200
	IF: eno1 state: down mac: <filter>
	WAN IP: No WAN IP found. Connected to web? SSL issues? Try enabling dig
Bluetooth:
	Message: No bluetooth data found.
Logical:
	Permissions: Unable to run lvs. Root privileges required.
RAID:
	Message: No RAID data found.
Drives:
	Local Storage: total: 931.51 GiB used: 800.86 GiB (86.0%)
	SMART Message: Unable to run smartctl. Root privileges required.
	ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000DM010-2EP102
	size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
	rotation: 7200 rpm serial: <filter> rev: CC43 scheme: MBR
	Message: No optical or floppy data found.
Partition:
	ID-1: / raw-size: 931.51 GiB size: 915.89 GiB (98.32%)
	used: 800.86 GiB (87.4%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A
	uuid: 67f3ecf5-6ada-41e5-955d-62f4c47b6bd6
Swap:
	Alert: No swap data was found.
Unmounted :
	Message: No unmounted partitions found.
USB:
	Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0
	speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
	Device-1: 1-4:2 info: Razer USA Kraken 7.1 Chroma type: Audio,HID
	driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0
	speed: 12 Mb/s power: 200mA chip-ID: 1532:0504 class-ID: 0300
	Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s
	chip-ID: 1d6b:0003 class-ID: 0900
	Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0
	Speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
	Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s
	chip-ID: 1d6b:0003 class-ID: 0900
	Hub-5: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
	speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
	Device-1: 5-2:2 info: Sunplus Innovation Optical Mouse type: Mouse
	driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s
	power: 98mA chip-ID: 1bcf:0005 class-ID: 0301
	Device-2: 5-4:3 info: Megawin Defender Gaming Keyboard type: Keyboard
	driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
	power: 100mA chip-ID: 0e6a:02c0 class-ID: 0301
	Hub-6: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s
	chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
	System Temperatures: cpu: 37.0 C mobo: 0 C
	Fan Speeds (RPM): N/A
Info:
	Processes: 224 Uptime: 2m wakeups: 0 Init: systemd v: 248 tool: systemctl
	Compilers: gcc: 11.1.0 clang: 12.0.0 Packages: pacman: 1515 lib: 425
	flatpak: 0 Shell: Bash (login) v: 5.1.8 running-in: tty 4 inxi: 3.3.04

I had a similar issue around a year earlier when the update changed kernel version, and the solution then was to simply switch to the previous kernel, but this update had removed the previous one. So I followed a bunch of other threads here and tried different things.

I started with

sudo pacman -Syyu

but it failed half-way through due to libcanberra update breaking dependency with libcanberra-gstreamer, along with some old VR packages for the Oculus DK2, so after following some other threads, I removed those manually and tried again with

sudo pacman -Syyuu

yet the problem persisted.

At this point I tried

inxi -G

and got this output

Graphics:
Device-1: NVIDIA TU116 [Geforce GTX 1660] driver: N/A
Display: Server: X.org 1.20.11 driver: loaded: N/A tty: 80x30
Message: Advanced graphics data unavailable in console. Try -G --display

So for whatever reason, there seemed to be no drivers installed, so once again I scoured the forums and tried to implement solutions from other threads:

sudo mhwd -a pci nonfree 0300

which outputted

Successfully installed video-linux

yet the problem still persisted.

sudo mhwd -a pci free 0300

gave the following output:

skipping already installed config 'video-linux' for device 0000:06:00.0 (0300:10de:2184) Display controller nVidia Corporation TU116 [geforce gtx 1660]

inxi -G gave the same output as before, still seemed to indicate there are no drivers for the graphics card and display server.

I’m at a loss as to what the next step should be, so I decided to post here before I screw up the system even more. The inxi output at the top is taken after all the fumbling around I did in terminal, so it is the most recent.

Use instead:
pamac update

You have a typo, the correct command is:
sudo mhwd -a pci nonfree 0300
see the difference?
or even better
sudo mhwd -i pci video-nvidia

Please always give the wiki a try … Configure Graphics Cards - Manjaro

I am pretty sure we tried following the wiki already, or at least most of the commands from the “installing driver” section while trying to follow solutions from other threads. I went and checked over the back-and-forth images, and I did miss something from the original post. I will go ahead and edit it to correct the record. While

sudo mhwd -a pci nonfree 0300

outputted “Successfully installed video-linux”

sudo mhwd -a pci free 0300

actually outputted the following

skipping already installed config 'video-linux' for device 0000:06:00.0 (0300:10de:2184) Display controller nVidia Corporation TU116 [geforce gtx 1660]

You have a typo, the correct command is:

Sorry, I had the typo on the forum, but not when the command was inputted. Verified it on the screenshots my gf sent me. Everything I tried was remote, with screenshots sent back of the results. I´ll try this tho:
sudo mhwd -i pci video-nvidia

Please do this first:
sudo pacman-mirrors -f5 && pamac update
if there are no update, then move to the next
once is done do this:
sudo mhwd -r pci video-linux
then
sudo mhwd -f -i pci video-nvidia

Did you reboot the system at some point or you kept on installing drivers?

Did you reboot the system at some point or you kept on installing drivers?

we rebooted after every update attempt and every attempt to install drivers.

The first command triggered a 2gb update (it has been over a month since we ran into this problem, but didn’t have to deal with it since we had a backup pc), I’ll post the results after it’s done.

Always make sure you have a fully updated system and rebooted before switching graphic drivers or installing software.

sudo pacman-mirrors -f5 && pamac update

Did this, it installed a bunch of updates and seemed to be successful.

Rebooted the system and ran

sudo mhwd -r pci video-linux

removing libva-vdpau-driver...
removing libva-mesa-driver...
removing vulkan-radeon...
removing vulkan-intel...
removing xf86-video-noveau...
removing xf86-video-intel...
removing libxvmc...
removing xf86-video-amdgpu...
removing xf86-video-ati...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
xorg configuration symlink valid...
Successfully removed video-linux

If there were any preceeding lines, she didn’t screenshot those, but I’m assuming that command worked.

Ran this afterwards

sudo mhwd -f -i pci video-nvidia

Installing video-nvidia...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
  core downloading...
  extra downloading...
  community downloading...
  multilib downloading...
error: target not found: linux59-nvidia
Error: pacman failed!
Error: script failed!

You still boot into an EOL = end of life kernel. Install either LTS one, or the latest supported. For example:
sudo mhwd-kernel -i linux510
or
sudo mhwd-kernel -i linux513

Reboot the system into it and then install video-nvidia.

So after installing either kernel, I reboot, run that particular version and then run this again?

sudo mhwd -f -i pci video-nvidia

You can run it without -f (force) - that was just an example if is failing, when i had no idea that your system is behind with the updates.
simply run
sudo mhwd -i pci video-nvidia

Installed linux513 kernel, launched it from the boot menu and tried running

sudo mhwd -f -i pci video-nvidia

same results:

Manjaro Linux 5.13.11-1-MANJARO (pcname) (tty2)

is at the top of the terminal when starting, so I’m assuming we’re in the correct kernel version

sudo mhwd -f -i pci video-nvidia

Installing video-nvidia...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
  core downloading...
  extra downloading...
  community downloading...
  multilib downloading...
error: target not found: linux59-nvidia
Error: pacman failed!
Error: script failed!

No idea why it’s still mentioning 59…

Hello,

If all good and well, did you uninstall linux59 ?? If not uninstall it then reboot and then try to install the driver.

1 Like

Yeah you need to remove this non supported kernel before installing video drivers, or else it will continue to fail because it will try to install non existent video modules for the non existent kernel.

sudo mhwd-kernel -r linux59

Then you should be good, install the video drivers.

All your problems from the start come from unmaintaining the kernel. If you don’t plan on following kernel updates, just run kernel 5.10 which is LTS and will exist for many years, because kernel 5.13 you installed will go EOL too at some point in the near future, and similar issue will come back if you don’t get rid of it to replace with supported kernel.

2 Likes

Alright, thanks. I’ll be able to test if it works later tonight, and will post the results. Will keep you posted, and thanks again!

EDIT: Should I go ahead and remove all the other kernels I am planning not to use? Because apparently we had several.

Hehheeh… :smiley:

Yes you do that. After you remove all those, than boot to kernel 5.13 and install the driver.

Hey, I’m back and able to try out the aforementioned, but before I start removing other kernels, when I boot the PC up, grub seems to list every kernel twice. I have two each of the following:
5.13.11-1
5.10.59-1
5.9.8.2
5.4.141-1

Is this normal? Should I be worried?
I’m assuming the remove command works if I just use the first 2 numbers together from each version I want to remove, right?

EDIT:

So I tried
sudo mhwd-kernel -r linux59
and got this:

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux59 breaks dependency 'linux59' required by linux-latest.

Ran the command in 5.10

Remove linux-latest first. It’s an obsolete meta package.

pamac remove linux-latest

Then

1 Like

Thank you all for helping out, that fixed it!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.