Nvidia Driver installed properly but not used? | Switcherooctl |

Hi I’m switched to Linux today (single-drive dual booting Windows11 and Fedora 40 KDE Plasma). I’m very new so I have barely any clue what went wrong when installing NVIDIA driver.

I followed the NVIDIA Driver installation guide by RPM Fusion, everything worked out fine without any error (i think). I waited for the kmod get built and “modinfo -F version nvidia” to output my driver version which is 555.58.02. After I confirmed that, I reboot the system.
I then checked the system settings and this is the result:

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.8-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-10300H CPU @ 2.50GHz
Memory: 11.5 GiB of RAM
**Graphics Processor: Mesa Intel® UHD Graphics**
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ASUS TUF Gaming F15 FX506LHB_FX506LHB
System Version: 1.0

Here is some more information:
inxi -G → barely any hangs

Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nvidia
    v: 555.58.02
  Device-3: Goodong Industry USB2.0 HD UVC WebCam driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915,nvidia resolution: 1600x900
  API: EGL v: 1.5 drivers: iris,nvidia,swrast
    platforms: wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.2
    renderer: Mesa Intel UHD Graphics (CML GT2)
  API: Vulkan v: 1.3.283 drivers: N/A surfaces: xcb,xlib,wayland

lspci -k | grep -A 3 -E "(VGA|3D)"

00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
        DeviceName: Onboard - Video
        Subsystem: ASUSTeK Computer Inc. Device 170d
        Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 170d
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

dnf list installed '*nvidia*'

Installed Packages
akmod-nvidia.x86_64                                  3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
kmod-nvidia-6.9.8-200.fc40.x86_64.x86_64             3:555.58.02-1.fc40             @@commandline             
nvidia-gpu-firmware.noarch                           20240709-1.fc40                @updates                  
nvidia-modprobe.x86_64                               3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
nvidia-persistenced.x86_64                           3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
nvidia-settings.x86_64                               3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                           3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64                      3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                 3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                   3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                      3:555.58.02-1.fc40             @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                     3:555.58.02-1.fc40             @rpmfusion-nonfree-updates

cat /etc/default/grub → it duplicated at first but i removed it

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

cat /etc/kernel/cmdline

root=UUID=32557add-26a2-4d1d-bf1b-fb87c9a1dae6 ro rootflags=subvol=root rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau

mokutil --sb-state

SecureBoot disabled

uname -a

Linux fedora 6.9.8-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul  5 16:20:11 UTC 2024 x86_64 GNU/Linux

(Most of the command above I copied from this guy problem)
I can’t seem to figured out what’s the problem is. I’m very in need of help.

1 Like

Added dual-boot, windows and removed intel, server

Firstly, Welcome to :fedora: :party:

It does not look like anything is wrong with your driver from what I can see.

It would be better to see if you would provide the full inxi -Fzxx instead of just graphics, but I can guess this is a Laptop. Which means there is some switcheroo involved.

What is the output of switcherooctl paste it here along with the full inxi -Fzxx

I have a similar set up. On Laptops the Nvidia driover is in use only when it needs to be.

1 Like

Removed driver, wayland

Here!

inxi -Fzxx

System:
  Kernel: 6.9.8-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: KDE Plasma v: 6.1.2 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 40 (KDE Plasma)
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming F15 FX506LHB_FX506LHB
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX506LHB v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: FX506LHB.311 date: 02/09/2022
Battery:
  ID-1: BAT1 charge: 20.0 Wh (57.8%) condition: 34.6/48.1 Wh (71.9%)
    volts: 11.0 min: 11.7 model: ASUS A32-K55 serial: N/A status: discharging
CPU:
  Info: quad core model: Intel Core i5-10300H bits: 64 type: MT MCP
    arch: Comet Lake rev: 2 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 900 high: 901 min/max: 800/4500 cores: 1: 900 2: 900
    3: 901 4: 900 5: 900 6: 900 7: 900 8: 900 bogomips: 39999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Gen-9.5 ports: active: eDP-1 empty: none bus-ID: 00:02.0
    chip-ID: 8086:9bc4
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: ASUSTeK
    driver: nvidia v: 555.58.02 arch: Turing pcie: speed: 2.5 GT/s lanes: 16
    ports: active: none empty: DP-1,HDMI-A-1 bus-ID: 01:00.0
    chip-ID: 10de:1f99
  Device-3: Goodong Industry USB2.0 HD UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-7:3 chip-ID: 3252:0001
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa dri: iris gpu: i915,nvidia display-ID: 0
  Monitor-1: eDP-1 res: 1600x900 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: iris
    device: 3 drv: swrast surfaceless: drv: nvidia wayland: drv: iris x11:
    drv: iris inactive: gbm,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.2 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
    device-ID: 8086:9bc4 display-ID: :0.0
  API: Vulkan v: 1.3.283 surfaces: xcb,xlib,wayland device: 0
    type: integrated-gpu driver: N/A device-ID: 8086:9bc4 device: 1
    type: discrete-gpu driver: N/A device-ID: 10de:1f99 device: 2 type: cpu
    driver: N/A device-ID: 10005:0000
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:06c8
  Device-2: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
  API: ALSA v: k6.9.8-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 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 pcie: speed: 5 GT/s lanes: 1
    bus-ID: 03:00.0 chip-ID: 14c3:7961
  IF: wlp3s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 04:00.0 chip-ID: 10ec:8168
  IF: enp4s0 state: down 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: 1-14:4 chip-ID: 13d3:3563
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 476.94 GiB used: 5.76 GiB (1.2%)
  ID-1: /dev/nvme0n1 vendor: Micron model: 2210 MTFDHBA512QFD
    size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 35.9 C
Partition:
  ID-1: / size: 179.73 GiB used: 5.46 GiB (3.0%) fs: btrfs dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 263.6 MiB (27.1%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 96 MiB used: 45.4 MiB (47.3%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 179.73 GiB used: 5.46 GiB (3.0%) fs: btrfs
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 34.0 C pch: 49.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 0
Info:
  Memory: total: 12 GiB available: 11.51 GiB used: 4.7 GiB (40.9%)
  Processes: 331 Power: uptime: 1h 45m wakeups: 2 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: Compilers: gcc: 14.1.1 Shell: Bash v: 5.2.26 running-in: konsole
    inxi: 3.3.34

switcherooctl

Device: 0
  Name:        Intel® UHD Graphics
  Default:     yes
  Environment: DRI_PRIME=pci-0000_00_02_0

Device: 1
  Name:        NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q]
  Default:     no
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only
1 Like

Looks about right to me ! :+1:t5: Were you thinking that the Nvidia GPU would run 100% of the time on a Laptop ? That has not been the case for a long time, It’s done for battery conservation.

1 Like

Everything makes sense now, I thought I fumbled somewhere in the process :smile:
(Turns out I DID NOT have to stayed up all night to reinstall Fedora and repeat everything for three times :skull:)
Thanks for the help <3

PS: I’m playing Minecraft and noticed that it’s ultilizing the UHD Graphic (with the laptop pluged-in and is on Performance PP). How to make it ultilize my GPU instead?

1 Like

Ok, this does tend to happen with some applications.

There’s 2/3 ways to enable/force the use of the GPU onto an application.

  • The popular way of using DRI_PRIME=1 %command% for Steam games

  • Other applications can also use this with just DRI_PRIME=1 <APPLICATION NAME>

  • There is the switcherooctl method by utilizing it directly:

    • switcherooctl <application> /path/to-file/
  • Or the Desktop way:

    • On Gnome Desktop you can right click on the application launcher and choose:
      Screenshot from 2024-06-21 16-01-30

Take note:

Your Device has the following:

Screenshot from 2024-07-13 11-16-08

Device-2 is your Nvidia card, if you choose DRI_PRIME so your commands would be DRI_PRIME=1

NOTE
Device 1 would be 0 and device 2 would be 1


If for some reason this does not work, and you really want the Nvidia GPU all the time, there are other steps to achieve this through Environment varibales or Disabling your Intel GPU from the UEFI/BIOS

1 Like

Added switcherooctl and removed dual-boot, f40, windows

Added f40