Black screen with cursors after trying to install Nvidia drivers

Hello, I am a bit of a noob if it comes to Linux and this kind of stuff. I really need help.

I get a black screen with cursor after I restarted my laptop when I tried to install a Nvidia driver. I did this because a external monitor was not getting the right resolution (pixelated screen) so I thought I needed to use Nvidia drivers.

What do I need to do or what steps do I need to take and what info do you guys need? Please help me

Hello @Rutgervs and welcome :wink:

Start here to read:

Thank you so much, only I when I use curl to get a link with my command output it does not return a link.

ls / | curl -s —data-binary @- ‘https://paste.c-net.org/‘

If I don’t even get this to work I cannot share my system info without making pictures of the command output… Do you know why the above code does not return a link with the command output?

‘ is not '. It just looks similiar.

That does not seem the issue, even without them it stills returns nothing

 ls / | curl -s --data-binary @- 'https://paste.c-net.org/'

This: ' | Not: ‘
This: -- | Not: —

Yes sorry typo, this is what i used and it just returns nothing, not even a error message:

ls / | curl -s --data-binary @- 'https://paste.c-net.org/'

Then there is no Internet connection. :man_shrugging:

nmcli connection show --active

But anyway… are you in the emergency console?

Yes… no internet connection. I’m sorry, as I said, I am completely new to this. I managed to get a connection using nmcli, Here is my system information:

System:
  Kernel: 5.19.17-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.19-x86_64
    root=UUID=71161a16-e409-4b04-96ac-da3bbd30103d rw quiet
    udev.log_priority=3
  Console: tty 4 DM: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: Vivobook_ASUSLaptop M3500QC_M3500QC
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: M3500QC v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: M3500QC.302 date: 10/09/2021
Battery:
  ID-1: BAT0 charge: 52.0 Wh (99.0%) condition: 52.5/63.0 Wh (83.3%)
    power: 13.6 W volts: 12.0 min: 12.0 model: ASUSTeK ASUS Battery type: Li-ion
    serial: N/A status: discharging cycles: 114
Memory:
  System RAM: total: 16 GiB note: est. available: 15.04 GiB
    used: 691.9 MiB (4.5%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
    process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000C
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB
    desc: 1x16 MiB
  Speed (MHz): avg: 1575 high: 3200 min/max: 1200/4462 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1200 2: 3200
    3: 1200 4: 1200 5: 3200 6: 1200 7: 1200 8: 1200 9: 1200 10: 1200 11: 1200
    12: 1200 13: 1200 14: 1200 15: 1200 16: 3200 bogomips: 102241
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
    extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
    hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
    misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
    nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
    pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
    skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
    svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
    v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt
    xgetbv1 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: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  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, IBRS_FW,
    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 GA107M [GeForce RTX 3050 Mobile] vendor: ASUSTeK
    driver: nouveau v: kernel non-free: 535.xx+ status: current (as of 2023-07)
    arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 1
    speed: 2.5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0302
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1 empty: HDMI-A-1
    bus-ID: 04:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 63.0 C
  Device-3: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-3:4 chip-ID: 13d3:5458
    class-ID: fe01 serial: <filter>
  Display: server: X.org v: 1.21.1.8 driver: X: loaded: modesetting
    alternate: fbdev,vesa gpu: amdgpu tty: 240x67
  Monitor-1: eDP-1 model: Samsung 0x4161 built: 2020 res: 1920x1080 dpi: 142
    gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9
    modes: max: 1920x1080 min: 640x480
  API: OpenGL Message: GL data unavailable in console. Try -G --display
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: ASUSTeK driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_sof_amd_renoir pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5 chip-ID: 1022:15e2
    class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k5.19.17-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.76 status: off with: pipewire-media-session
    status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: off with: pulseaudio-alsa type: plugin
    tools: pacat,pactl
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-2:3 chip-ID: 8087:0029
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 49.75 GiB (10.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM512GD3JX013N
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 41000C20 temp: 29.9 C
    scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 49.75 GiB (10.6%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 71161a16-e409-4b04-96ac-da3bbd30103d
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: 5CC9-C31B
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 2-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 3-1:2 info: Elan Micro ELAN:Fingerprint type: <vendor specific>
    driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 power: 100mA chip-ID: 04f3:0c6e class-ID: 0000
  Device-2: 3-2:3 info: Intel AX200 Bluetooth type: bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
    power: 100mA chip-ID: 8087:0029 class-ID: e001
  Device-3: 3-3:4 info: IMC Networks USB2.0 HD UVC WebCam type: video
    driver: uvcvideo interfaces: 3 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
    mode: 2.0 power: 500mA chip-ID: 13d3:5458 class-ID: fe01 serial: <filter>
  Hub-4: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 70.6 C mobo: N/A gpu: amdgpu temp: 63.0 C
  Fan Speeds (RPM): cpu: 2700
Info:
  Processes: 269 Uptime: 2h 23m wakeups: 8612 Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1446 libs: 366 tools: pamac pm: flatpak pkgs: 0
  Shell: Bash (login) v: 5.1.16 running-in: tty 4 inxi: 3.3.28

Well I can imagine now what happens…

This kernel version is EOL, not existing anymore in the repo. You tried now to install the nvidia driver, but the prebuild driver must match the kernel version, thus cannot be installed.

What you need to do installing a current kernel, preferable a LTS one.

sudo mhwd-kernel --install linux61

reboot and then install the nvidia driver:

sudo  mhwd --auto pci nonfree 0300

Thank you for you help. Did both things, but the problem is still there. When I reboot I still get a black screen with only the cursor showing

And the commands were run successful, right? I doubt that. Is your system fully updated?

The first command returns this:

:: Pakket-databases synchroniseren...
 core aan het downloaden...
 extra aan het downloaden...
 community aan het downloaden...
 multilib aan het downloaden...
afhankelijkheden oplossen...
zoeken naar conflicterende pakketten...

Pakketten (2) linux61-6.1.42-1  linux61-virtualbox-host-modules-7.0.10-5

Totale geïnstalleerde grootte:   143,41 MiB
Netto upgrade-grootte:             0,00 MiB

Sleutelbos controleren...
pakketintegriteit controleren...
Pakketbestanden laden...
controleren op bestandsconflicten...
Beschikbare schijfruimte controleren...
:: Pre-transactie-hooks uitvoeren...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Pakketveranderingen verwerken...
linux61 herinstalleren...
linux61-virtualbox-host-modules herinstalleren...
In order to use the new version, reload all virtualbox modules manually.
:: Post-transactie-hooks uitvoeren...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux61.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.1-x86_64 -g /boot/initramfs-6.1-x86_64.img --microcode /boot/amd-ucode.img
==> Starting build: '6.1.42-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-6.1-x86_64.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux61.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.1-x86_64 -g /boot/initramfs-6.1-x86_64-fallback.img -S autodetect --microcode /boot/amd-ucode.img
==> Starting build: '6.1.42-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-6.1-x86_64-fallback.img'
==> Image generation successful
(4/5) Refreshing PackageKit...
(5/5) Updating Grub-Bootmenu
Aanmaken van GRUB-configuratiebestand...
Gevonden thema: /usr/share/grub/themes/manjaro/theme.txt
Linux-image gevonden: /boot/vmlinuz-6.1-x86_64
Initiële RAM-schijf-image gevonden: /boot/amd-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Linux-image gevonden: /boot/vmlinuz-5.19-x86_64
Initiële RAM-schijf-image gevonden: /boot/amd-ucode.img /boot/initramfs-5.19-x86_64.img
Found initrd fallback image: /boot/initramfs-5.19-x86_64-fallback.img
Linux-image gevonden: /boot/vmlinuz-4.19-x86_64
Initiële RAM-schijf-image gevonden: /boot/amd-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
Waarschuwing: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: waarschuwing: onbekend apparaattype nvme0n1.
voltooid

The second returns this:

e[1me[31m> e[mUsing config 'video-hybrid-amd-nvidia-prime' for device: 0000:04:00.0 (0300:1002:1638) Display controller ATI Technologies Inc Cezanne
e[1me[31m> e[mInstalling video-hybrid-amd-nvidia-prime...
e[0;32mSourcing /etc/mhwd-x86_64.conf
e[me[0;32mHas lib32 support: true
e[me[0;32mSourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-amd-nvidia-prime/MHWDCONFIG
e[me[0;32mProcessing classid: 0300
e[me[0;32mSourcing /var/lib/mhwd/scripts/include/0300
e[me[0;32m:: Pakket-databases synchroniseren...
e[me[0;32m core aan het downloaden...
e[me[0;32m extra aan het downloaden...
e[me[0;32m community aan het downloaden...
e[me[0;32m multilib aan het downloaden...
e[me[0;32mfout:kan het bestand 'multilib.db' niet ophalen van ridgewireless.mm.fcix.net : SSL connection timeout
e[me[0;32mfout:doel niet gevonden: linux519-nvidia
e[me[0;32mError: pacman failed!
e[me[1me[31mError: e[mscript failed!

You still need to remove 5.19 after booted into an acceptable kernel, then do the driver install, etc.
(its complaining about not having modules for nonexistent kernel)

And how do I do that? I really have no clue sorry

Once booted into an acceptable kernel (you should be able to select from GRUB at boot), you may double check with uname -a, then when sure not in 5.19 continue with its removal:

sudo mhwd-kernel -r linux519

If that is somehow unsuccessful then you can check the packages:

pacman -Qs linux519

And remove what you found:

sudo pacman -Rns linux519 linux519-headers

Maybe you can throw an update in to be double sure:

sudo pacman -Syu

Then continue with driver install:

sudo mhwd --auto pci nonfree 0300

Sorry for the late response.

This is wat i get back when running sudo mhwd --auto pci nonfree 0300

e[1me[31m> e[mUsing config 'video-hybrid-amd-nvidia-prime' for device: 0000:04:00.0 (0300:1002:1638) Display controller ATI Technologies Inc Cezanne
e[1me[31m> e[mInstalling video-hybrid-amd-nvidia-prime...
e[0;32mSourcing /etc/mhwd-x86_64.conf
e[me[0;32mHas lib32 support: true
e[me[0;32mSourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-amd-nvidia-prime/MHWDCONFIG
e[me[0;32mProcessing classid: 0300
e[me[0;32mSourcing /var/lib/mhwd/scripts/include/0300
e[me[0;32m:: Pakket-databases synchroniseren...
e[me[0;32m core aan het downloaden...
e[me[0;32m extra aan het downloaden...
e[me[0;32m community aan het downloaden...
e[me[0;32m multilib aan het downloaden...
e[me[0;32mfout:kan het bestand 'multilib.db' niet ophalen van ridgewireless.mm.fcix.net : SSL connection timeout
e[me[0;32mfout:doel niet gevonden: linux519-nvidia
e[me[0;32mError: pacman failed!
e[me[1me[31mError: e[mscript failed!

@Rutgervs

  1. Did you boot with linux61?
uname -r
  1. Did you remove linux519?

Since linux519 is installed, it searches for linux519-nvidia and failed.

I think I removed it. sudo mhwd-kernel -r linux519 returns:

Error: Kernel not installed.
Currently running: 6.1.43-2-MANJARO (linux61)
The following kernels are installed in your system:
   x linux419
   x linux61

And so now ? …

Do the mhwd commands function as expected?

If you still run into errors then search installed packages pacman -Qs linux519 …

All as shown above :