Help me remove the nvidia drivers

Hello!
I’ve opened System Settings - Hardware Configuration
Clicked on Auto install open source driver
It tells me it’s already installed:

Skipping already installed config ‘video-linux’ for device: 0000:01:00.0 (0300:10de:1b81) Display controller nVidia Corporation GP104 [GeForce GTX 1070]

I have two kernels installed (5.10 and 5.4), so I removed this packages:
linux54-nvidia, linux510-nvidia, nvidia-utils

Unblacklisted the nouveau driver
Restarted my system and I got a black screen
(restored my system with timeshift to quickly continue working)

Am I doing something wrong? missing some step?
Help appreciated

Hello,
try to change TTY, if it’s possible it will not be so hard to repair.

Yes, I can go to tty2 and login as my regular user, but I don’t know what to do there :thinking: :joy:

startx, if it works try to setup DM or reinstall it

Some files need to be rewritten/replaced?

If you can get to desktop withstartx command is good and we will search for DM issue.

  1. Please read this:
    How to provide good information
    and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

:+1:

P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU or Kernel, … you have without typing it every time

1 Like

Yes, sorry about that
Here is its output:

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=60600c65-cd66-4f46-9614-8528e08bd235 rw rootflags=subvol=@ quiet 
  apparmor=1 security=apparmor udev.log_priority=3 
  Console: tty pts/1 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux 
  base: Arch Linux 
Machine:
  Type: Desktop Mobo: MSI model: Z97 GAMING 5 (MS-7917) v: 1.0 serial: N/A 
  UEFI: American Megatrends v: 1.9 date: 12/23/2014 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.59 GiB used: 2.06 GiB (13.2%) 
  Array-1: capacity: 32 GiB slots: 4 EC: None max-module-size: 8 GiB 
  note: est. 
  Device-1: ChannelA-DIMM0 size: No Module Installed 
  Device-2: ChannelA-DIMM1 size: 8 GiB speed: 1600 MT/s type: DDR3 
  detail: synchronous bus-width: 64 bits total: 64 bits manufacturer: 0420 
  part-no: F3-12800CL10-8GBXL serial: N/A 
  Device-3: ChannelB-DIMM0 size: No Module Installed 
  Device-4: ChannelB-DIMM1 size: 8 GiB speed: 1600 MT/s type: DDR3 
  detail: synchronous bus-width: 64 bits total: 64 bits manufacturer: 0420 
  part-no: F3-12800CL10-8GBXL serial: N/A 
CPU:
  Info: Quad Core model: Intel Core i5-4460 socket: BGA1155 bits: 64 type: MCP 
  arch: Haswell family: 6 model-id: 3C (60) stepping: 3 microcode: 28 cache: 
  L1: 256 KiB L2: 6 MiB L3: 6 MiB bogomips: 25608 
  Speed: 3400 MHz min/max: 800/3400 MHz base/boost: 3200/3800 volts: 1.2 V 
  ext-clock: 100 MHz Core speeds (MHz): 1: 3400 2: 3388 3: 3346 4: 3300 
  Flags: abm acpi aes aperfmperf apic arat arch_perfmon avx avx2 bmi1 bmi2 bts 
  clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm 
  dts ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht 
  ibpb ibrs ida invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor 
  movbe msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb 
  pebs pge pln pni popcnt pse pse36 pti pts rdrand rdtscp rep_good sdbg sep 
  smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow 
  tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt 
  xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  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 generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: disabled, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Micro-Star MSI 
  driver: nvidia v: 465.31 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:1b81 class-ID: 0300 
  Display: server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: nvidia 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 95 s-size: 513x292mm (20.2x11.5") 
  s-diag: 590mm (23.2") 
  Monitor-1: DVI-D-0 res: 1920x1080 hz: 60 dpi: 96 
  size: 510x287mm (20.1x11.3") diag: 585mm (23") 
  OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 465.31 
  direct render: Yes 
Audio:
  Device-1: Intel 9 Series Family HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8ca0 
  class-ID: 0403 
  Device-2: NVIDIA GP104 High Definition Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f0 
  class-ID: 0403 
  Device-3: C-Media CM108 Audio Controller type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-9:4 chip-ID: 0d8c:013c 
  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: yes 
  Sound Server-4: PipeWire v: 0.3.30 running: no 
Network:
  Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet 
  vendor: Micro-Star MSI driver: alx v: kernel port: d000 bus-ID: 03:00.0 
  chip-ID: 1969:e091 class-ID: 0200 
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Message: No bluetooth data found. 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 3.17 TiB used: 2.09 TiB (66.1%) 
  ID-1: /dev/sda maj-min: 8:0 vendor: PNY model: CS900 480GB SSD 
  family: Driven SSDs size: 447.13 GiB block-size: physical: 512 B 
  logical: 512 B sata: 3.2 speed: 6.0 Gb/s rotation: SSD serial: <filter> 
  rev: 0KB3 temp: 33 C scheme: GPT 
  SMART: yes state: enabled health: PASSED on: 245d 17h cycles: 612 
  written: 5385 GiB 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: DT01ACA300 
  family: 3.5" DT01ACA... Desktop HDD size: 2.73 TiB block-size: 
  physical: 4096 B logical: 512 B sata: 3.0 speed: 6.0 Gb/s rotation: 7200 rpm 
  serial: <filter> rev: ABB0 temp: 24 C scheme: GPT 
  SMART: yes state: enabled health: PASSED on: 3y 310d 5h cycles: 2815 
  Optical-1: /dev/sr0 vendor: ASUS model: DRW-24F1ST a rev: 1.00 
  dev-links: cdrom 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / raw-size: 111.28 GiB size: 111.28 GiB (100.00%) 
  used: 31.12 GiB (28.0%) fs: btrfs block-size: 4096 B dev: /dev/sda5 
  maj-min: 8:5 label: N/A uuid: 60600c65-cd66-4f46-9614-8528e08bd235 
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) 
  used: 656 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/sda6 maj-min: 8:6 
  label: N/A uuid: 86AC-BE7F 
  ID-3: /home raw-size: 146.4 GiB size: 146.4 GiB (100.00%) 
  used: 27.58 GiB (18.8%) fs: btrfs block-size: 4096 B dev: /dev/sdb2 
  maj-min: 8:18 label: N/A uuid: ac44423d-2d5c-4271-b43f-50fee9cb30db 
  ID-4: /mnt/ntfs raw-size: 2.59 TiB size: 2.59 TiB (100.00%) 
  used: 2.04 TiB (78.7%) fs: fuseblk block-size: 4096 B dev: /dev/sdb1 
  maj-min: 8:17 label: DATA_POOL uuid: 78C2F9FAC2F9BD06 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 529 MiB fs: ntfs label: Recovery 
  uuid: 6E969BE9969BB057 
  ID-2: /dev/sda2 maj-min: 8:2 size: 99 MiB fs: fat (32 bit) label: N/A 
  uuid: A89C-8BC5 
  ID-3: /dev/sda3 maj-min: 8:3 size: 16 MiB fs: N/A label: N/A uuid: N/A 
  ID-4: /dev/sda4 maj-min: 8:4 size: 334.72 GiB fs: ntfs label: SYSTEM 
  uuid: F8C8AEC0C8AE7D0E 
USB:
  Hub-1: 1-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-2: 1-1:2 info: Intel ports: 6 rev: 2.0 speed: 480 Mb/s 
  chip-ID: 8087:8009 class-ID: 0900 
  Hub-3: 2-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: 2-1:2 info: Intel Integrated Hub ports: 8 rev: 2.0 speed: 480 Mb/s 
  chip-ID: 8087:8001 class-ID: 0900 
  Hub-5: 3-0:1 info: Full speed (or root) Hub ports: 14 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-3:2 info: Kingston HyperX Alloy FPS Mechanical Gaming Keyboard 
  type: Keyboard,Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 0951:16b7 class-ID: 0301 
  Device-2: 3-4:3 info: DEXIN Tt eSPORTS THERON type: Mouse,Keyboard 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 12cf:0200 class-ID: 0301 
  Device-3: 3-9:4 info: C-Media CM108 Audio Controller type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1 
  speed: 12 Mb/s power: 100mA chip-ID: 0d8c:013c class-ID: 0300 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 31 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:
  Processes: 211 Uptime: 6m wakeups: 0 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: 11.1.0 clang: 12.0.0 Packages: pacman: 1383 lib: 417 
  flatpak: 0 Shell: Bash (sudo) v: 5.1.8 running-in: yakuake inxi: 3.3.05

Thanks. Since there is a new system update today, I’ll first give that new nvidia driver a try
If problems arise, I’ll try using nouveau

  • If you get lost, please remember Ctrl+Alt+F1 is your friend!

  • Print this page so you have it as a reference while in TTY2

  • Log off

  • Switch to TTY2 by pressing Ctrl+Alt+F2

  • Log in there

  • Execute:

    sudo mhwd --remove pci video-nvidia
    sudo nano /etc/modprobe.d/blacklist.conf
    
  • Remove nouveau if present and save

  • Execute:

    sudo mhwd --install pci nouveau
    sudo reboot 
    

:+1:

2 Likes

Very clear and handy
Thanks Fabby!

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