Manjaro won't boot properly with NVIDIA drivers after GPU change

Previously I had an GeForce GTX 1060 on my Desktop with properly working drivers and CUDA support but then I decided it was time for an upgrade so I installed a new RTX 3060. After installing it though it turns out my Manjaro won’t boot properly but gets stuck on the BIOS image, i can enter the ty with Ctrl + Alt + F2 and it seems that everything manages to boot properly but not Xorg.

After playing around with several commands I found from similar threads nothing really seems to work, if I use video-linux drivers everything boots up normally and I can also boot into Windows properly without any issue (i have two hard drives, Manjaro on one and Windows on another). However, I really need access to CUDA and the GPU so this won’t do.

Here’s a bunch of things I’ve tried doing:

  • sudo pacman-mirrors -f5 && sudo pacman -Syyu
  • mhwd -a pci nonfree 0300 (uninstalled installed driver beforehand)
  • mhwd -i pci video-nvidia (uninstalled installed driver beforehand)
  • mhwd -i pci video-nvidia video-nvidia-470xx (uninstalled installed driver beforehand)
  • pacman -S nvidia
  • Turning ibt off in grub.
  • Added MODULES=“nvidia nvidia_modeset nvidia_uvm nvidia_drm” to /etc/mkinitcpio.conf.
  • Tried different kernels from linux49 to linux515, didn’t keep old kernels around other than last 3.

Hope this is enough information, any advice would be a godsend!

Working setup (non-working below) (commands might not be one-to-one):

mhwd -li
Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
mhwd-kernels -li
Currently running:5.15.74-3-MANJARO (linux515)
The following kernels are installed in your system:
   * linux419
   * linux510
   * linux515
mhwd
Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI

inxi -Fazy
System:
  Kernel: 5.15.74-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=a80075b0-2ce2-4998-be05-e3eb48a5191e ro quiet apparmor=1
    security=apparmor resume=UUID=fc7ae34c-e872-448b-91e6-f76ef484cc3a
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop Mobo: Micro-Star model: B350M PRO-VDH (MS-7A38) v: 2.0
    serial: <superuser required> UEFI: American Megatrends v: A.00
    date: 03/21/2017
CPU:
  Info: model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen level: v3
    note: check built: 2017-19 process: GF 14nm family: 0x17 (23) model-id: 1
    stepping: 1 microcode: 0x8001105
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 2030 high: 3597 min/max: 1550/3200 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3268 2: 3292
    3: 1357 4: 1412 5: 1313 6: 1350 7: 1276 8: 1368 9: 1372 10: 1374 11: 3389
    12: 3597 bogomips: 76689
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  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 vulnerable
  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: Retpolines, STIBP: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060] vendor: Gigabyte driver: nouveau
    v: kernel non-free: 515.xx+ status: current (as of 2022-10) arch: Ampere
    code: GAxxx process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
    active: HDMI-A-2 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 22:00.0
    chip-ID: 10de:2487 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa gpu: nouveau display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-2 mapped: HDMI-2 model: BenQ ZOWIE XL LCD
    serial: <filter> built: 2017 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
    size: 531x298mm (20.91x11.73") diag: 609mm (24") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  OpenGL: renderer: llvmpipe (LLVM 14.0.6 256 bits) v: 4.5 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: Gigabyte
    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: 22:00.1 chip-ID: 10de:228b
    class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 24:00.3 chip-ID: 1022:1457 class-ID: 0403
  Sound API: ALSA v: k5.15.74-3-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 1e:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp30s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: br-2e9355cbe043 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: br-77c48aff0d6a state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-3: docker0 state: down mac: <filter>
  IF-ID-4: veth4064671 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-5: veth566db16 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-6: veth898c4d7 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-7: wg0 state: unknown speed: N/A duplex: N/A mac: N/A
Drives:
  Local Storage: total: 1.82 TiB used: 604.39 GiB (32.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 4B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 63.48 GiB size: 62.18 GiB (97.96%) used: 22.15 GiB (35.6%)
    fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 700 MiB size: 698.6 MiB (99.80%) used: 360 KiB
    (0.1%) fs: vfat dev: /dev/sda4 maj-min: 8:4
  ID-3: /home raw-size: 850.75 GiB size: 836.32 GiB (98.30%) used: 582.24
    GiB (69.6%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16.6 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda1 maj-min: 8:1
Sensors:
  System Temperatures: cpu: 39.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 293 Uptime: 1h 20m wakeups: 0 Memory: 15.57 GiB used: 5.93 GiB
  (38.1%) Init: systemd v: 251 default: graphical tool: systemctl Compilers:
  gcc: 12.2.0 alt: 11 clang: 14.0.6 Packages: pm: pacman pkgs: 1698 libs: 450
  tools: pamac,yay pm: flatpak pkgs: 0 Shell: Bash v: 5.1.16
  running-in: terminator inxi: 3.3.22

Info when using NVIDIA drivers:

inxi -G
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060] driver: nvidia v: 520.56.06
  Display: server: X.org v: 1.21.1.4 driver: X: loaded: N/A unloaded: nvidia gpu: nvidia note:
    X driver n/a tty: 128x48
  Message: GL data unavailable in console. Try -G --display
ls xorg confs
00-keyboard.conf
30-touchpad.conf
90-mhwd.conf
lspci
22:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3060] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 4096
	Kernel driver in use: nvidia
nvidia-smi
No devices were found
yay -Sq | grep nvidia
lib32-nvidia-utils 520.56.06-1
linux419-nvidia 520.56.06-1
linux510-nvidia 520.56.06-2
linux515-nvidia 520.56.06-3
mhwd-nvidia 520.56.06-2
mhwd-nvidia-390xx 390.154-2
mhwd-nvidia-470xx 470.141.03-3
nvidia-utils 520.56.06-2
inxi -Fazy
System:
  Kernel: 5.15.74-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=a80075b0-2ce2-4998-be05-e3eb48a5191e ro quiet apparmor=1
    security=apparmor resume=UUID=fc7ae34c-e872-448b-91e6-f76ef484cc3a
    udev.log_priority=3
  Console: tty 2 DM: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop Mobo: Micro-Star model: B350M PRO-VDH (MS-7A38) v: 2.0
    serial: <superuser required> UEFI: American Megatrends v: A.00
    date: 03/21/2017
CPU:
  Info: model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen level: v3
    note: check built: 2017-19 process: GF 14nm family: 0x17 (23) model-id: 1
    stepping: 1 microcode: 0x8001105
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 1617 high: 2961 min/max: 1550/3200 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2961 2: 2813
    3: 1341 4: 1352 5: 1347 6: 1354 7: 1374 8: 1372 9: 1374 10: 1372 11: 1376
    12: 1372 bogomips: 76682
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  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 vulnerable
  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: Retpolines, STIBP: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060] vendor: Gigabyte driver: nvidia
    v: 520.56.06 alternate: nouveau,nvidia_drm non-free: 515.xx+ status: current
    (as of 2022-10) arch: Ampere code: GAxxx process: TSMC n7 (7nm)
    built: 2020-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 22:00.0 chip-ID: 10de:2487 class-ID: 0300
  Display: server: X.org v: 1.21.1.4 driver: X: loaded: N/A unloaded: nvidia
    gpu: nvidia note:  X driver n/a tty: 128x48
  Message: GL data unavailable in console. Try -G --display
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 22:00.1 chip-ID: 10de:228b
    class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 24:00.3 chip-ID: 1022:1457 class-ID: 0403
  Sound API: ALSA v: k5.15.74-3-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.58 running: no
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 1e:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp30s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: br-2e9355cbe043 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: br-77c48aff0d6a state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-3: docker0 state: down mac: <filter>
  IF-ID-4: veth10f57f2 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-5: veth15861e0 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-6: veth9968ce0 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-7: wg0 state: unknown speed: N/A duplex: N/A mac: N/A
Drives:
  Local Storage: total: 1.82 TiB used: 605.23 GiB (32.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 4B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 63.48 GiB size: 62.18 GiB (97.96%) used: 22.99 GiB (37.0%)
    fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 700 MiB size: 698.6 MiB (99.80%) used: 360 KiB
    (0.1%) fs: vfat dev: /dev/sda4 maj-min: 8:4
  ID-3: /home raw-size: 850.75 GiB size: 836.32 GiB (98.30%) used: 582.24
    GiB (69.6%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16.6 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda1 maj-min: 8:1
Sensors:
  System Temperatures: cpu: 29.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 255 Uptime: 2m wakeups: 0 Memory: 15.57 GiB used: 3.45 GiB
  (22.2%) Init: systemd v: 251 default: graphical tool: systemctl Compilers:
  gcc: 12.2.0 alt: 11 clang: 14.0.6 Packages: pm: pacman pkgs: 1688 libs: 443
  tools: pamac,yay pm: flatpak pkgs: 0 Shell: Bash (login) v: 5.1.16
  running-in: tty 2 inxi: 3.3.22
Contents of Xorx.0.log
[    16.526] (--) Log file renamed from "/var/log/Xorg.pid-977.log" to "/var/log/Xorg.0.log"
[    16.527] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[    16.527] Current Operating System: Linux kraut 5.15.74-3-MANJARO #1 SMP PREEMPT Sat Oct 15 13:39:11 UTC 2022 x86_64
[    16.527] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64 root=UUID=a80075b0-2ce2-4998-be05-e3eb48a5191e ro quiet apparmor=1 security=apparmor resume=UUID=fc7ae34c-e872-448b-91e6-f76ef484cc3a udev.log_priority=3
[    16.527]  
[    16.527] Current version of pixman: 0.40.0
[    16.527] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    16.527] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    16.527] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Oct 30 12:18:14 2022
[    16.528] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    16.528] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    16.528] (==) ServerLayout "layout"
[    16.528] (**) |-->Screen "Screen0" (0)
[    16.528] (**) |   |-->Monitor "Monitor0"
[    16.528] (**) |   |-->Device "Device0"
[    16.528] (==) Automatically adding devices
[    16.528] (==) Automatically enabling devices
[    16.528] (==) Automatically adding GPU devices
[    16.529] (==) Automatically binding GPU devices
[    16.529] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    16.529] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    16.529] 	Entry deleted from font path.
[    16.529] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    16.529] 	Entry deleted from font path.
[    16.529] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    16.529] 	Entry deleted from font path.
[    16.529] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    16.529] 	Entry deleted from font path.
[    16.529] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF
[    16.529] (==) ModulePath set to "/usr/lib/xorg/modules"
[    16.529] (**) Extension "COMPOSITE" is enabled
[    16.529] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    16.529] (II) Module ABI versions:
[    16.529] 	X.Org ANSI C Emulation: 0.4
[    16.529] 	X.Org Video Driver: 25.2
[    16.529] 	X.Org XInput driver : 24.4
[    16.529] 	X.Org Server Extension : 10.0
[    16.530] (++) using VT number 1

[    16.530] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    16.530] (II) xfree86: Adding drm device (/dev/dri/card0)
[    16.530] (II) Platform probe for /sys/devices/pci0000:00/0000:00:03.1/0000:22:00.0/drm/card0
[    16.534] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[    16.534] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[    16.537] (--) PCI:*(34@0:0:0) 10de:2487:1458:4096 rev 161, Mem @ 0xfc000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    16.538] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    16.538] (II) LoadModule: "glx"
[    16.538] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    16.540] (II) Module glx: vendor="X.Org Foundation"
[    16.540] 	compiled for 1.21.1.4, module version = 1.0.0
[    16.540] 	ABI class: X.Org Server Extension, version 10.0
[    16.540] (II) LoadModule: "nvidia"
[    16.540] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    16.541] (II) Module nvidia: vendor="NVIDIA Corporation"
[    16.541] 	compiled for 1.6.99.901, module version = 1.0.0
[    16.541] 	Module class: X.Org Video Driver
[    16.541] (II) NVIDIA dlloader X Driver  520.56.06  Thu Oct  6 21:29:26 UTC 2022
[    16.541] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    16.541] (II) Loading sub module "fb"
[    16.541] (II) LoadModule: "fb"
[    16.541] (II) Module "fb" already built-in
[    16.541] (II) Loading sub module "wfb"
[    16.541] (II) LoadModule: "wfb"
[    16.541] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    16.541] (II) Module wfb: vendor="X.Org Foundation"
[    16.542] 	compiled for 1.21.1.4, module version = 1.0.0
[    16.542] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    16.542] (II) Loading sub module "ramdac"
[    16.542] (II) LoadModule: "ramdac"
[    16.542] (II) Module "ramdac" already built-in
[    16.542] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[    16.542] (==) NVIDIA(0): RGB weight 888
[    16.542] (==) NVIDIA(0): Default visual is TrueColor
[    16.542] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    16.542] (**) Option "AllowNVIDIAGpuScreens"
[    16.542] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[    16.542] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[    16.542] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[    16.542] (**) NVIDIA(0): Enabling 2D acceleration
[    16.542] (II) Loading sub module "glxserver_nvidia"
[    16.542] (II) LoadModule: "glxserver_nvidia"
[    16.542] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[    16.552] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    16.552] 	compiled for 1.6.99.901, module version = 1.0.0
[    16.552] 	Module class: X.Org Server Extension
[    16.552] (II) NVIDIA GLX Module  520.56.06  Thu Oct  6 21:26:26 UTC 2022
[    16.553] (II) NVIDIA: The X server supports PRIME Render Offload.
[    18.103] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:34:0:0.  Please
[    18.103] (EE) NVIDIA(GPU-0):     check your system's kernel log for additional error
[    18.103] (EE) NVIDIA(GPU-0):     messages and refer to Chapter 8: Common Problems in the
[    18.103] (EE) NVIDIA(GPU-0):     README for additional information.
[    18.103] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[    18.103] (EE) NVIDIA(0): Failing initialization of X screen
[    18.103] (II) UnloadModule: "nvidia"
[    18.103] (II) UnloadSubModule: "glxserver_nvidia"
[    18.103] (II) Unloading glxserver_nvidia
[    18.103] (II) UnloadSubModule: "wfb"
[    18.103] (EE) Screen(s) found, but none have a usable configuration.
[    18.103] (EE) 
Fatal server error:
[    18.103] (EE) no screens found(EE) 
[    18.103] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    18.103] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    18.103] (EE) 
[    18.103] (EE) Server terminated with error (1). Closing log file.
mhwd -li
Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.11.04               false            PCI


Warning: No installed USB configs!
1 Like

You are doing it right

This is the open-source drivers

To install the nvidia proprietary drivers

video-linux is the driver I have to use get Xorg running
mhwd -a pci nonfree 0300 is what I’ve already tried doing without success.

please post the output of

glxinfo | grep server

From the log it looks like an invalid or missing configuration file in /etc/X11/xorg.conf.d.

Error: unable to open display

i already recognized. just look what happened

OpenGL: renderer: llvmpipe (LLVM 14.0.6 256 bits)

this setup is total broken. may you post the output of

systemctl status optimus-manager

Unit optimus-manager.service could not be found.

okay, please install “optimus-manager” from the package-manager. just install it, nothing else. if installed we’ll go on.

Done, installed it with sudo pacman -s optimus-manager, it asks me to reboot but I haven’t done that yet per your instructions.

well done. please post the output of

systemctl status optimus-manager

again

○ optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; preset: disabled)
     Active: inactive (dead)

well okay, please run the following

sudo systemctl enable optimus-manager

then open a text-editor with sudo or start kate .
edit the file /etc/default/grub
and add the following to the existing entries at GRUB_CMDLINE_LINUX_DEFAULT

optimus-manager.startup=nvidia nvidia_drm.modeset=1

after saving run the following in a console

sudo mkinitcpio -P
sudo update-grub

if finished do a reboot. we’re still not finished and there is some things to optimize and change but if you reboot now you will boot up with a working nvidia-gpu

Did as you said but the situation is still the same, no Xorg and nvidia-smi gives “No devices were found”.

Here’s the output of systemctl status optimus-manager:

● optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; preset: disabled)
     Active: active (running) since Sun 2022-10-30 14:55:42 EET; 1min 42s ago
    Process: 737 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/SUCCESS)
    Process: 853 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=1/FAILURE)
   Main PID: 907 (python3)
      Tasks: 1 (limit: 19001)
     Memory: 15.3M
        CPU: 243ms
     CGroup: /system.slice/optimus-manager.service
             └─907 /usr/bin/python3 -u -m optimus_manager.daemon

okt   30 14:55:42 kraut python3[853]:     bus_ids = get_gpus_bus_ids(notation_fix=False)
okt   30 14:55:42 kraut python3[853]:   File "/usr/lib/python3.10/site-packages/optimus_manager/pci.py", line 100, in get_gpus_bus_ids
okt   30 14:55:42 kraut python3[853]:     raise PCIError("Cannot find the integrated GPU. Is this an Optimus system ?")
okt   30 14:55:42 kraut python3[853]: optimus_manager.pci.PCIError: Cannot find the integrated GPU. Is this an Optimus system ?
okt   30 14:55:42 kraut python3[853]: [64] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
okt   30 14:55:42 kraut python3[853]: [64] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20221030T145542', 'requested_mode': 'nvidia'}
okt   30 14:55:42 kraut systemd[1]: Started Optimus Manager Commands Daemon.
okt   30 14:55:42 kraut python3[907]: [1] INFO: # Commands daemon
okt   30 14:55:42 kraut python3[907]: [1] INFO: Opening UNIX socket
okt   30 14:55:42 kraut python3[907]: [1] INFO: Awaiting commands

please post the aoutput of

glxinfo | grep server

again

Same as before: Error: unable to open display.

please try

mhwd -l -d

This driver was installed with mhwd -a pci nonfree 0300.

--------------------------------------------------------------------------------
PCI Device: /devices/pci0000:00/0000:00:03.1/0000:22:00.0 (0300:10de:2487)
  Display controller nVidia Corporation 
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	video-nvidia
   ATTACHED:	PCI
   VERSION:	2021.11.04
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	5
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 
   VENDORIDS:	10de 



  > AVAILABLE:

   NAME:	video-nvidia
   ATTACHED:	PCI
   VERSION:	2021.11.04
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	5
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 
   VENDORIDS:	10de 

   NAME:	video-nvidia-470xx
   ATTACHED:	PCI
   VERSION:	2021.11.04
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	4
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 
   VENDORIDS:	10de 

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 

   NAME:	video-modesetting
   ATTACHED:	PCI
   VERSION:	2020.01.13
   INFO:	X.org modesetting video driver.
   PRIORITY:	1
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 

   NAME:	video-vesa
   ATTACHED:	PCI
   VERSION:	2017.03.12
   INFO:	X.org vesa video driver.
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 


--------------------------------------------------------------------------------
e[1me[31m> e[mPCI Device: /devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:04:04.0/0000:1e:00.0 (0200:10ec:8168)
  Network controller Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
--------------------------------------------------------------------------------
  > AVAILABLE:

   NAME:	network-r8168
   ATTACHED:	PCI
   VERSION:	2016.04.20
   INFO:	RealTek RTL-8168 Gigabit Ethernet driver
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0200 
   VENDORIDS:	1186 10ec 


Warning: no configs for USB devices found!

well let’s try something else. first we disable optimus-manager

sudo systemctl disable optimus-manager

now edit the /etc/default/grub again. delete the optimus-manager.startup=nvidia and replace it with ibt=off.

after editing run again

sudo mkinitcpio -P
sudo update-grub

and do a reboot

I tried the ibt=off part before this post and it ended up staying in the grub file when I added the optimus-manager parts, should I still run the commands?

# head /etc/default/grub

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor resume=UUID=fc7ae34c-e872-448b-91e6-f76ef484cc3a udev.log_priority=3 ibt=off optimus-manager.startup=nvidia nvidia_drm.modeset=1"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true