F39 - After last update Nvidia, akmods.service won't start

Hi, I just updated to the last drivers of Nvidia.

jay@fedora:~$ sudo dnf list *nvidia*
[sudo] password for jay: 
Last metadata expiration check: 0:23:07 ago on zo 24 mrt 2024 23:40:13 CET.
Installed Packages
akmod-nvidia.x86_64                        3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.7.9-200.fc39.x86_64.x86_64   3:550.67-1.fc39     @@commandline    
nvidia-modprobe.x86_64                     3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                     3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                 3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64       3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64         3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686              3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64            3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64           3:550.67-1.fc39     @rpmfusion-nonfree-nvidia-driver

During the reboot I noticed that there was a delay. akmods.service was trying to start, but it failed. Once the system was booted it went back to nouveau.

jay@fedora:~$ sudo inxi -Gxx
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti] driver: nvidia v: 550.67
    arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none
    off: DP-1,DP-2 empty: DP-3,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 10de:2486
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-2:2 chip-ID: 046d:082d
  Display: server: X.Org v: 23.2.4 with: Xwayland v: 23.2.4
    compositor: gnome-shell v: 45.5 driver: X: loaded: modesetting,nouveau
    unloaded: fbdev,vesa failed: nvidia alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96
  Monitor-1: DP-1 note: disabled pos: left model: Dell AW2521HFA
    res: 1920x1080 dpi: 90 diag: 623mm (24.5")
  Monitor-2: DP-2 note: disabled pos: primary,right model: Dell AW2521HFA
    res: 1920x1080 dpi: 90 diag: 623mm (24.5")
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.

What are the best steps to take from here to revert back or to fix this? I already tried to reinstall the drivers, without luck obviously.

Thanks for the help in advance.

First try a simple rebuild of the modules.
sudo dnf remove kmod-nvidia-6.7.9*
followed by
sudo akmods --force

I often see users reporting this type of problem when they fail to wait an adequate time period after a driver or kernel update before rebooting.

Thanks for reply.

Are you saying that eventhough the terminal says “complete”, I still have to wait longer? Sorry, linux noob here.

Removed:
  kmod-nvidia-6.7.9-200.fc39.x86_64-3:550.67-1.fc39.x86_64                      

Complete!
jay@fedora:~$ sudo akmods --force
Checking kmods exist for 6.7.9-200.fc39.x86_64             [  OK  ]
Building and installing nvidia-kmod                        [  OK  ]
jay@fedora:~$ <-- I expect it to be done when I see this.

I waited over 5 minutes this time, but no luck.

jay@fedora:~$ sudo inxi -Gxx
[sudo] password for jay: 
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti] driver: nvidia v: 550.67
    arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none
    off: DP-1,DP-2 empty: DP-3,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 10de:2486
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-2:2 chip-ID: 046d:082d
  Display: server: X.Org v: 23.2.4 with: Xwayland v: 23.2.4
    compositor: gnome-shell v: 45.5 driver: X: loaded: modesetting,nouveau
    unloaded: fbdev,vesa failed: nvidia alternate: nv

When manually running akmods the return of the prompt seems to indicate it is complete.

When running dnf to update drivers or kernels the update will return a prompt while akmods is running in the background which is what can cause a problem with a hurried reboot.

What do you see with lsmod | grep -iE "nouveau|nvidia"?
If that shows several nvidia lines then the nvidia driver is loading and running.

Your inxi output shows the nvidia driver is loaded for that GPU

jay@fedora:~$ lsmod | grep -iE "nouveau|nvidia"
nvidia_drm            126976  18
nvidia_modeset       1605632  4 nvidia_drm
nvidia_uvm           6651904  0
nvidia              60370944  90 nvidia_uvm,nvidia_modeset
video                  77824  2 asus_wmi,nvidia_modeset
jay@fedora:~$

Inxi output shows indeed that the driver is isntalled, but it’s not loaded.

unloaded: fbdev,vesa failed: nvidia alternate: nv

$ inxi -Gxx
Graphics:
  Device-1: NVIDIA GA106 [Geforce RTX 3050] vendor: Micro-Star MSI
    driver: nvidia v: 550.67 arch: Ampere pcie: speed: 16 GT/s lanes: 8 ports:
    active: none off: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 06:00.0
    chip-ID: 10de:2507

$ lsmod | grep -iE "nvidia|nouveau"
nvidia_drm            126976  13
nvidia_modeset       1605632  11 nvidia_drm
nvidia_uvm           6651904  4
nvidia              60370944  242 nvidia_uvm,nvidia_modeset
video                  77824  1 nvidia_modeset

jay@fedora:~$ inxi -Gxx
Graphics:
Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti] driver: nvidia v: 550.67
arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none
off: DP-1,DP-2 empty: DP-3,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 10de:2486
Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-2:2 chip-ID: 046d:082d
Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.4
compositor: gnome-shell v: 45.5 driver: X: loaded: modesetting,nouveau
unloaded: fbdev,vesa failed: nvidia alternate: nv
gpu: nvidia,nvidia-nvswitch display-ID: 0
Monitor-1: DP-1 model: Dell AW2521HFA res: 1920x1080 dpi: 90
diag: 623mm (24.5")
Monitor-2: DP-2 model: Dell AW2521HFA res: 1920x1080 dpi: 90
diag: 623mm (24.5")
API: EGL Message: EGL data requires eglinfo. Check --recommends.

Even nvidia settings is pretty much empty. Graphics application lags when doing things. Everything is slow-mode. (well, compared to previous drivers)

One difference between yours and mine is that I am using X11 while you are using wayland.
Just a moment while I switch my login.

$ inxi -Gxx
Graphics:
  Device-1: NVIDIA GA106 [Geforce RTX 3050] vendor: Micro-Star MSI
    driver: nvidia v: 550.67 arch: Ampere pcie: speed: 2.5 GT/s lanes: 8 ports:
    active: none off: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 06:00.0
    chip-ID: 10de:2507
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell v: 45.5 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: HDMI-A-1 model: LG (GoldStar) TV SSCR2 res: 3840x2160 dpi: 61
    diag: 1836mm (72.3")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: zink inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.67
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2
    display-ID: :0.0
  API: Vulkan v: 1.3.275 surfaces: xcb,xlib,wayland device: 0
    type: discrete-gpu driver: N/A device-ID: 10de:2507 device: 1 type: cpu
    driver: N/A device-ID: 10005:0000

Nope, mine still shows everything the same .
In fact while running the earlier driver I had a couple apps that were glitching on wayland but fine on X11. Now with this driver the main one of those apps is working fine.

XD… It’s just my luck I suppose.
What would you recommend me to do? Willing to reinstall btw and test other things. But bedtime for me (almost)

It would be nice to not have the “mandatory update”. As in, user can choose which driver version he’she wants to install, like in Windows. Maybe in the future. who knows.

Have you done a full dnf upgrade --refresh or dnf distro-sync --refresh (followed by a reboot) to see if that might fix the issue?

We can do more trouble shooting tomorrow if needed. In the meantime a full inxi -Fzxx may also assist.

How was this system installed? I see the server tag, so I am wondering if you installed it from server then added the graphics or if that tag is incorrect?

1 Like

Tried both commands and reboot. Didn’t help.
I just checked my grub loader, in case something would be wrong in it. Is this correct?

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="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

If I can’t get it to work tomorrow I’ll do a fresh install and see if that fixes anything. It’s always a learning moment for me, so I don’t mind.

The akmods processing is needed to install software that Fedora isn’t allowed to include as regular packages. It runs in the background. The easy way to ensure that the module is installed is to wait 5 minutes.

1 Like
jay@fedora:~$ inxi -Fzxx 
System:
  Kernel: 6.7.9-200.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-14.fc39
  Desktop: GNOME v: 45.5 tk: GTK v: 3.24.41 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 39 (Workstation Edition)
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX X570-I GAMING v: Rev X.0x
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 5003
    date: 10/07/2023
CPU:
  Info: 8-core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2
    rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 2198 high: 2200 min/max: 2200/4426 boost: enabled cores:
    1: 2200 2: 2196 3: 2200 4: 2200 5: 2200 6: 2200 7: 2200 8: 2200 9: 2196
    10: 2200 11: 2200 12: 2193 13: 2195 14: 2200 15: 2200 16: 2200
    bogomips: 114983
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti] driver: nvidia v: 550.67
    arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none
    off: DP-1,DP-2 empty: DP-3,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 10de:2486
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-2:2 chip-ID: 046d:082d
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: X: loaded: modesetting,nouveau
    unloaded: fbdev,vesa failed: nvidia alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: DP-1 model: Dell AW2521HFA res: 1920x1080 dpi: 90
    diag: 623mm (24.5")
  Monitor-2: DP-2 model: Dell AW2521HFA res: 1920x1080 dpi: 90
    diag: 623mm (24.5")
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA GA104 High Definition Audio driver: snd_hda_intel v: kernel
    pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 09:00.1 chip-ID: 10de:228b
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.4 chip-ID: 1022:1487
  Device-3: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-2:2 chip-ID: 046d:082d
  Device-4: Logitech Blue Microphones
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 bus-ID: 5-4:3 chip-ID: 046d:0ab7
  API: ALSA v: k6.7.9-200.fc39.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s
    lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723
  IF: wlp4s0 state: down mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 05:00.0 chip-ID: 8086:1539
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-6:4 chip-ID: 8087:0029
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 5.23 TiB used: 3.18 TiB (60.8%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 960 EVO 500GB
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
  ID-2: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB
    speed: 6.0 Gb/s serial: <filter> temp: 28 C
  ID-3: /dev/sdb vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB
    speed: 6.0 Gb/s serial: <filter> temp: 26 C
  ID-4: /dev/sdc vendor: Western Digital model: WD40NMZW-11GX6S1
    size: 3.64 TiB type: USB rev: 3.1 spd: 5 Gb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 116.19 GiB used: 20.85 GiB (17.9%) fs: btrfs
    dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 239 MiB (24.6%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 96 MiB used: 38.6 MiB (40.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 116.19 GiB used: 20.85 GiB (17.9%) 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: 37.9 C mobo: N/A
  Fan Speeds (rpm): fan-1: 0
Info:
  Memory: total: 32 GiB available: 31.25 GiB used: 3.21 GiB (10.3%)
  Processes: 442 Power: uptime: 6m wakeups: 0 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 23 Compilers: gcc: 13.2.1 Shell: Bash
    v: 5.2.26 running-in: gnome-terminal inxi: 3.3.33

Oh, I’m sorry, I forgot to change the tags. My bad. I downloaded the Workstation-ISO from the website and created bootable USB. After installment I manually installed the Nvidia drivers. (sudo akmod nvidia) Previous drivers worked fine for me, but I suppose, like you said, it broke because I didn’t wait long enough.

Removed audio, server

Try this.
It may do nothing and it may benefit.
dnf install xorg-x11-drv-nvidia-cuda
That will install the cuda drivers for apps that use the gpu and also provides the nvidia-smi command which can be of benefit as well.

Waited 5 minutes after installing, but nothing unfortunately.

unloaded: fbdev,vesa failed: nvidia alternate: nv

jay@fedora:~$ nvidia-smi
Mon Mar 25 01:23:08 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.67                 Driver Version: 550.67         CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3060 Ti     Off |   00000000:09:00.0  On |                  N/A |
| 30%   41C    P8             18W /  200W |     333MiB /   8192MiB |      1%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1788      G   /usr/bin/gnome-shell                          315MiB |
|    0   N/A  N/A      2916      G   /usr/bin/Xwayland                               4MiB |
+-----------------------------------------------------------------------------------------+

Bedtime for me now. 1.30AM. Thanks for trying to help.

So I uninstalled the drivers again, but this time also removed the commands from the grub and did a reboot. What I noticed is that the akmods.service/start is still there and it’s trying to start the service. How does this work? I expect that there won’t be an akmods.service, since I uninstalled the driver.

After some more testing and trying to do things I think I messed up pretty big, cause system wont even boot anymore. No biggy. I’ll do a fresh install later today. (currently on windows)