[Reappeared] Nvidia GPU not being detected

I had this problem before around two weeks ago.

Link to old topic: RTX 3050 ti mobile not being detected - #12

I had solved it previously before with doing a fresh install. I had not fully set the installation so it was not much of a pain to reinstalling. Now I have fully set up the installation to how I wanted it and have been working with this laptop, as it is my main laptop. I would really not like to do a reinstall. I have the nvidia-open-dkms drivers.

Hardware Info
System:
  Kernel: 6.12.56-1-lts arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: KDE Plasma v: 6.5.1 tk: Qt v: N/A wm: kwin_x11 dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming F15 FX506HE_FX506HE
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX506HE v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FX506HE.311 date: 08/12/2022
Battery:
  ID-1: BAT1 charge: 87.4 Wh (96.3%) condition: 90.7/90 Wh (100.8%)
    volts: 17.36 min: 15.4 model: ASUS A32-K55 serial: N/A charging:
    status: charging cycles: N/A
CPU:
  Info: 6-core model: 11th Gen Intel Core i5-11400H bits: 64 type: MCP
    arch: Tiger Lake rev: 1 cache: L1: 480 KiB L2: 7.5 MiB L3: 12 MiB
  Speed (MHz): avg: 800 min/max: 800/4500 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 bogomips: 32268
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Xe ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2
    bus-ID: 0000:00:02.0 chip-ID: 8086:9a68
  Device-2: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-7:4 chip-ID: 322e:202c
  Display: x11 server: X.Org v: 21.1.20 with: Xwayland v: 24.1.9
    compositor: kwin_x11 driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x1521 res: 1920x1080 hz: 144
    dpi: 142 diag: 394mm (15.5")
  API: EGL v: 1.5 platforms: device: 0 drv: iris device: 1 drv: swrast gbm:
    drv: iris surfaceless: drv: iris x11: drv: iris inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 25.2.6-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
    device-ID: 8086:9a68
  API: Vulkan Message: No Vulkan data available.
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-smi wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 0000:00:1f.3 chip-ID: 8086:43c8
  API: ALSA v: k6.12.56-1-lts status: kernel-api
  Server-1: PipeWire v: 1.4.9 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: mt7921e v: kernel bus-ID: 0000:2d:00.0
    chip-ID: 14c3:7961
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel port: 3000 bus-ID: 0000:2e:00.0
    chip-ID: 10ec:8168
  IF: enp46s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 3-14:5 chip-ID: 13d3:3563
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: N/A
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b
Drives:
  Local Storage: total: 942.7 GiB used: 127.57 GiB (13.5%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SFYRS500G size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 25.9 C
  ID-2: /dev/nvme1n1 vendor: Intel model: SSDPEKNU512GZ size: 476.94 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 44.9 C
Partition:
  ID-1: / size: 463.76 GiB used: 127.57 GiB (27.5%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 2 GiB used: 636 KiB (0.0%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 463.76 GiB used: 127.57 GiB (27.5%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-4: /var/log size: 463.76 GiB used: 127.57 GiB (27.5%) fs: btrfs
    dev: /dev/nvme0n1p2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 30.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 3200
Info:
  Memory: total: 64 GiB note: est. available: 62.54 GiB used: 2.77 GiB (4.4%)
  Processes: 237 Power: uptime: 7m wakeups: 0 Init: systemd v: 258
    default: graphical
  Packages: 1612 pm: pacman pkgs: 1600 pm: flatpak pkgs: 12 Compilers:
    clang: 21.1.4 gcc: 15.2.1 Shell: Zsh v: 5.9 running-in: alacritty
    inxi: 3.3.39

Boot log: https://0x0.st/KLAG.txt

I have optimus-manager with optimus-manager-qt and I get this error:

Error log
[10] INFO: Running Xorg pre-start hook
[10] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': None}
[10] INFO: Requested mode is: nvidia
[29] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[29] INFO: Unloading modules: ['nouveau']
[31] INFO: Skipping Nvidia power up: switching_mode=none
[239] INFO: Nvidia card not visible in PCI bus: Rescanning...
[485] ERROR: Nvidia card not showing up in PCI bus after rescan
[485] INFO: Setting Nvidia PCI power state to: on
[696] ERROR: Unable to set PCI power state: Nvidia isn't in the PCI bus
[700] INFO: Loading module: nvidia
[963] ERROR: Xorg pre-start hook failed
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/optimus_manager/kernel.py", line 240, in _load_module
    subprocess.check_call(
    ~~~~~~~~~~~~~~~~~~~~~^
        f"modprobe {module} {' '.join(options)}",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        shell=True, text=True, stderr=subprocess.PIPE, stdout=subprocess.DEVNULL)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 419, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'modprobe nvidia NVreg_UsePageAttributeTable=1 NVreg_DynamicPowerManagement=0x02' returned non-zero exit status 1.
  1. This and its links are a good source of information: https://wiki.archlinux.org/title/NVIDIA
  2. Have you tried using the default kernel instead of the LTS version?
  3. I think you can remove this kernel parameter: nvidia_drm.modeset=1
    because it should be there already.
  4. Kernel parameter nouveau.config=NvGspRm=1 might help, worth a try.
  5. If you boot with your USB installer stick, does it detect the Nvidia GPU? If so, please show your GPU details:
lspci -vnn | grep -w NVIDIA | grep -P 'VGA|3D|Display'

Sorry for such a late response, I have been very busy recently and barely got around to be able to respond. I have tried the default kernel, with the same result. I have removed nvidia_drm.modeset=1 and added nouveau.config=NvGspRm=1 but still the same result. When I booted with my USB installer stick, it does not seem to detect my Nvidia GPU as the command does not return anything. Is my GPU refusing to work with EndeavorOS because a while back I had installed linux-mint and it worked there. I had switch because I like d the rolling release and the terminal centric nature of EndeavorOS.

If you have the Mint installer USB, you could try it (without installing anything) to see if it still detects the Nvidia GPU. If it does, it would be interesting to see the output of the lspci command above, and in addition, which Nvidia driver packages it is using.

On some of these hybrid laptops don’t you have to blacklist nouveau from loading on boot? Doesn’t that automatically happen when installing nvidia?

If your talking about this one then yes it does

I don’t have that kind of experience, but maybe that could be needed.

An nvidia package should automatically mark nouveau as blacklisted.

At boot the ISO has a list of configuration options that user could adjust.
Maybe setting those appropriately could make a difference?

Sorry again, for responding so late but the problem seemed to fix itself. I had not changed anything since my last reply. I have been using the laptop, and the issue had continued. Today, I turned off the laptop, to take a break form my work, and when I turned it back on I noticed that optimus-manager-qt icon appeared on my task bar. It also appears when I rum the inxi -Fxxc0z | eos-sendlog

Here is the output:

New Hardware Info output
System:
  Kernel: 6.12.57-1-lts arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: KDE Plasma v: 6.5.1 tk: Qt v: N/A wm: kwin_x11 dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming F15 FX506HE_FX506HE
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX506HE v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FX506HE.311 date: 08/12/2022
Battery:
  ID-1: BAT1 charge: 90.7 Wh (100%) condition: 90.7/90 Wh (100.8%)
    volts: 17.42 min: 15.4 model: ASUS A32-K55 serial: N/A charging:
    status: full cycles: N/A
CPU:
  Info: 6-core model: 11th Gen Intel Core i5-11400H bits: 64 type: MCP
    arch: Tiger Lake rev: 1 cache: L1: 480 KiB L2: 7.5 MiB L3: 12 MiB
  Speed (MHz): avg: 800 min/max: 800/4500 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 bogomips: 32268
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Xe ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2
    bus-ID: 0000:00:02.0 chip-ID: 8086:9a68
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] vendor: ASUSTeK
    driver: nvidia v: 580.95.05 arch: Ampere ports: active: none
    empty: DP-2,DP-3 bus-ID: 0000:01:00.0 chip-ID: 10de:25a0
  Device-3: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-7:7 chip-ID: 322e:202c
  Display: x11 server: X.Org v: 21.1.20 with: Xwayland v: 24.1.9
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 mapped: eDP-1-1 model: ChiMei InnoLux 0x1521
    res: 1920x1080 hz: 144 dpi: 142 diag: 394mm (15.5")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: iris
    device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11:
    drv: nvidia inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.95.05
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3050 Ti Laptop
    GPU/PCIe/SSE2
  API: Vulkan v: 1.4.328 surfaces: N/A device: 0 type: discrete-gpu
    driver: nvidia device-ID: 10de:25a0
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-smi wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 0000:00:1f.3 chip-ID: 8086:43c8
  Device-2: NVIDIA GA107 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:2291
  API: ALSA v: k6.12.57-1-lts status: kernel-api
  Server-1: PipeWire v: 1.4.9 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: mt7921e v: kernel bus-ID: 0000:2d:00.0
    chip-ID: 14c3:7961
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel port: 3000 bus-ID: 0000:2e:00.0
    chip-ID: 10ec:8168
  IF: enp46s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 3-14:8 chip-ID: 13d3:3563
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: N/A
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b
Drives:
  Local Storage: total: 942.7 GiB used: 128.93 GiB (13.7%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SFYRS500G size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 27.9 C
  ID-2: /dev/nvme1n1 vendor: Intel model: SSDPEKNU512GZ size: 476.94 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 40.9 C
Partition:
  ID-1: / size: 463.76 GiB used: 128.93 GiB (27.8%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 2 GiB used: 636 KiB (0.0%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 463.76 GiB used: 128.93 GiB (27.8%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-4: /var/log size: 463.76 GiB used: 128.93 GiB (27.8%) fs: btrfs
    dev: /dev/nvme0n1p2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 32.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 3100
Info:
  Memory: total: 64 GiB note: est. available: 62.54 GiB used: 2.72 GiB (4.3%)
  Processes: 287 Power: uptime: 4m wakeups: 0 Init: systemd v: 258
    default: graphical
  Packages: 1612 pm: pacman pkgs: 1600 pm: flatpak pkgs: 12 Compilers:
    clang: 21.1.4 gcc: 15.2.1 Shell: Zsh v: 5.9 running-in: alacritty
    inxi: 3.3.39

Even though my problem seem to be solved. I will keep the thread open, to find the cause of the problem and the solution. I don’t know if my GPU will stop be recognized again, and it will help me and other people that might find themselves in a similar position.

Power off & on: the mother of solving problems. :wink:

Great to hear it is working now.
And keep up posted! :smile:

This output shows the nvidia gpu. The previous one didn’t so I’m not sure. Does it not show nvidia in the hardware output if using the Intel?

Before the nvidia gpu would not show at all. I tried different things to get it to work, but with no success. It was after yesterday, that it was detected by itself, not changing anything since I removed nvidia_drm.modeset=1 and adding nouveau.config=NvGspRm=1. I don’t know if something changed since then, making it work.

1 Like

Your not running the nvidia driver with that parameter i assume. Your running the nouveau driver.

That can be checked by

lsmod | grep -P 'nouveau|nvidia'

or

lspci -vnn | grep -A11 -P 'VGA|3D|Display'