Nvidia powerd "couldn't set max CPU limit"

Hello. Can you help me with an issue that nvidia daemons for hibernate/suspend/powerd is innactive. They are deactivated due to the error “Could not set max CPU limit: current CPU limit (Khz): 4900000”

FYI please do not post pictures of text. Use the </> button and post the text itself.

[anatoly@fedora ~]$ sudo systemctl status nvidia-hibernate.service nvidia-suspend.service nvidia-resume.service nvidia-powerd.service
○ nvidia-hibernate.service - NVIDIA system hibernate actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-hibernate.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ nvidia-suspend.service - NVIDIA system suspend actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-suspend.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ nvidia-resume.service - NVIDIA system resume actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ nvidia-powerd.service - nvidia-powerd service
     Loaded: loaded (/usr/lib/systemd/system/nvidia-powerd.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead) since Sun 2023-10-29 22:23:35 MSK; 5min ago
   Duration: 2.062s
   Main PID: 1310 (code=exited, status=0/SUCCESS)
        CPU: 1.288s

Oct 29 22:23:30 fedora systemd[1]: Starting nvidia-powerd.service - nvidia-powerd service...
Oct 29 22:23:30 fedora /usr/bin/nvidia-powerd[1310]: nvidia-powerd version:1.0(build 1)
Oct 29 22:23:33 fedora systemd[1]: Started nvidia-powerd.service - nvidia-powerd service.
Oct 29 22:23:33 fedora /usr/bin/nvidia-powerd[1310]: Dbus Connection is established
Oct 29 22:23:35 fedora systemd[1]: Stopping nvidia-powerd.service - nvidia-powerd service...
Oct 29 22:23:35 fedora /usr/bin/nvidia-powerd[1310]: Could not set max CPU limit: current CPU limit (Khz): 4900000
Oct 29 22:23:35 fedora /usr/bin/nvidia-powerd[1310]: Quit successfully
Oct 29 22:23:35 fedora systemd[1]: nvidia-powerd.service: Deactivated successfully.
Oct 29 22:23:35 fedora systemd[1]: Stopped nvidia-powerd.service - nvidia-powerd service.
Oct 29 22:23:35 fedora systemd[1]: nvidia-powerd.service: Consumed 1.288s CPU time.

I always see nvidia-powerd.service fail. It does not seem to be needed.
You could disable the service if you just want it to stop being annoying.

Here is what I see on my system:

$ systemctl status nvidia-powerd.service
× nvidia-powerd.service - nvidia-powerd service
     Loaded: loaded (/usr/lib/systemd/system/nvidia-powerd.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: exit-code) since Mon 2023-10-30 07:55:03 GMT; 10min ago
    Process: 3171 ExecStart=/usr/bin/nvidia-powerd (code=exited, status=1/FAILURE)
   Main PID: 3171 (code=exited, status=1/FAILURE)
        CPU: 1.136s

Oct 30 07:55:02 worthy.chelsea.private systemd[1]: Starting nvidia-powerd.service - nvidia-powerd service...
Oct 30 07:55:02 worthy.chelsea.private /usr/bin/nvidia-powerd[3171]: nvidia-powerd version:1.0(build 1)
Oct 30 07:55:03 worthy.chelsea.private /usr/bin/nvidia-powerd[3171]: No matching GPU found
Oct 30 07:55:03 worthy.chelsea.private /usr/bin/nvidia-powerd[3171]: Failed to initialize RM Client
Oct 30 07:55:03 worthy.chelsea.private systemd[1]: nvidia-powerd.service: Main process exited, code=exited, status=1/FAI>
Oct 30 07:55:03 worthy.chelsea.private systemd[1]: nvidia-powerd.service: Failed with result 'exit-code'.
Oct 30 07:55:03 worthy.chelsea.private systemd[1]: Failed to start nvidia-powerd.service - nvidia-powerd service.
Oct 30 07:55:03 worthy.chelsea.private systemd[1]: nvidia-powerd.service: Consumed 1.136s CPU time.

As suggested, disable that service with sudo systemctl disable nvidia-powerd.service.

On the majority of systems that service is not functional since it only works with very specific GPUs on certain optimus designed laptops. The error message during boot is meaningless on other systems.

As posted by Barry, it is a result of the error shown for him as
/usr/bin/nvidia-powerd[3171]: No matching GPU found

I interesting in suspend.service particulary, Without this service doesn’t work suspend when i sent my laptop to suspend mode - it doesn’t wake up and i have to reboot it((

Can any one help me?)

We need more information.
First please post (as text you copy and paste using the preformatted text tags with the </> button on the toolbar, and not an image) the output of inxi -Fzxx.

Also provide the output of dnf list installed \*nvidia\*

Is your system fully upgraded to the latest using sudo dnf upgrade --refresh ?

What version of fedora are you using?

Hello, yesterday i’ve updated Fedora 38 to 39 the issue persisted. (

inxi -Fzxx

System:
  Kernel: 6.5.11-300.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-13.fc39 Desktop: GNOME v: 45.1 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 39 (Thirty Nine)
Machine:
  Type: Laptop System: ASUSTeK product: ROG Zephyrus M16 GU603ZW_GU603ZW
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: GU603ZW v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: GU603ZW.308 date: 06/01/2022
Battery:
  ID-1: BAT0 charge: 81.5 Wh (100.0%) condition: 81.5/90.0 Wh (90.6%)
    volts: 15.9 min: 15.9 model: ASUSTeK ASUS Battery serial: N/A
    status: discharging
CPU:
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i9-12900H bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 1.2 MiB L2: 11.5 MiB
    L3: 24 MiB
  Speed (MHz): avg: 515 high: 955 min/max: 400/4900:5000:3800 cores: 1: 400
    2: 400 3: 862 4: 400 5: 645 6: 400 7: 400 8: 626 9: 629 10: 400 11: 955
    12: 400 13: 400 14: 700 15: 400 16: 694 17: 400 18: 400 19: 400 20: 400
    bogomips: 116736
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-12.2 ports: active: none off: eDP-1
    empty: DP-1,DP-2 bus-ID: 0000:00:02.0 chip-ID: 8086:46a6
  Device-2: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] vendor: ASUSTeK
    driver: nvidia v: 535.129.03 arch: Ampere ports: active: none
    empty: DP-3,HDMI-A-1,eDP-2 bus-ID: 0000:01:00.0 chip-ID: 10de:24a0
  Device-3: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-2.2.3:10 chip-ID: 046d:0825
  Device-4: IMC Networks [] driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-8:5 chip-ID: 13d3:56eb
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.2
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: evdi,i915
    display-ID: 0
  Monitor-1: DVI-I-1 model: Dell P2419HC res: 1920x1080 dpi: 93
    diag: 604mm (23.8")
  Monitor-2: DVI-I-2 model: Dell P2419HC res: 1920x1080 dpi: 93
    diag: 604mm (23.8")
  Monitor-3: eDP-1 model: AU Optronics 0xc199 res: 2560x1600 dpi: 189
    diag: 406mm (16")
  API: OpenGL v: 4.6 vendor: intel mesa v: 23.2.1 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel Graphics (ADL GT2)
    device-ID: 8086:46a6 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 0000:00:1f.3 chip-ID: 8086:51c8
  Device-2: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:228b
  Device-3: DisplayLink [] driver: cdc_ncm,snd-usb-audio,usbfs type: USB
    rev: 3.2 speed: 5 Gb/s lanes: 1 bus-ID: 2-1.1:3 chip-ID: 17e9:6006
  Device-4: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-2.2.3:10 chip-ID: 046d:0825
  Device-5: Yealink Network [] driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 3-3:3 chip-ID: 6993:b04c
  API: ALSA v: k6.5.11-300.fc39.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.84 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: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 0000:00:14.3 chip-ID: 8086:51f0
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    port: 3000 bus-ID: 0000:2c:00.0 chip-ID: 10ec:8125
  IF: eno2 state: down mac: <filter>
  IF-ID-1: br-684caae4d0fa state: down mac: <filter>
  IF-ID-2: br-d30baa006170 state: down mac: <filter>
  IF-ID-3: br-e3b40444e70f state: down mac: <filter>
  IF-ID-4: br-fae651758a4b state: down mac: <filter>
  IF-ID-5: docker0 state: down mac: <filter>
  IF-ID-6: enp0s13f0u1u1i5 state: up speed: 1000 Mbps duplex: half
    mac: <filter>
  IF-ID-7: vpn0 state: up speed: 10000 Mbps duplex: full mac: N/A
Bluetooth:
  Device-1: Intel [] driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-10:13 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 0000:00:0e.0 chip-ID: 8086:467f
Drives:
  Local Storage: total: 953.87 GiB used: 54.54 GiB (5.7%)
  ID-1: /dev/nvme0n1 vendor: Micron model: 2450 MTFDKBA1T0TFK
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 44.9 C
Partition:
  ID-1: / size: 229.58 GiB used: 54.01 GiB (23.5%) fs: btrfs
    dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 476.2 MiB (48.9%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 256 MiB used: 63.2 MiB (24.7%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 229.58 GiB used: 54.01 GiB (23.5%) fs: btrfs
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 927.8 MiB (11.3%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 54.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 1800
Info:
  Processes: 488 Uptime: 6h 25m Memory: total: 16 GiB note: est.
  available: 15.3 GiB used: 9.51 GiB (62.2%) Init: systemd v: 254
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages:
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 37 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.31

dnf list installed *nvidia*

Installed Packages
akmod-nvidia.x86_64                                 3:535.129.03-1.fc39            @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.4.12-200.fc38.x86_64.x86_64           3:535.113.01-1.fc38            @@commandline                   
kmod-nvidia-6.5.10-200.fc38.x86_64.x86_64           3:535.129.03-1.fc38            @@commandline                   
kmod-nvidia-6.5.11-300.fc39.x86_64.x86_64           3:535.129.03-1.fc39            @@commandline                   
kmod-nvidia-6.5.6-200.fc38.x86_64.x86_64            3:535.113.01-1.fc38            @@commandline                   
kmod-nvidia-6.5.8-200.fc38.x86_64.x86_64            3:535.129.03-1.fc38            @@commandline                   
nvidia-persistenced.x86_64                          3:535.129.03-1.fc39            @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                              3:535.129.03-1.fc39            @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                          3:535.129.03-2.fc39            @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                     3:535.129.03-2.fc39            @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                3:535.129.03-2.fc39            @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                  3:535.129.03-2.fc39            @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                     3:535.129.03-2.fc39            @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                    3:535.129.03-2.fc39            @rpmfusion-nonfree-nvidia-driver

sudo dnf upgrade --refresh

sudo dnf upgrade --refresh
Copr repo for asus-linux owned by lukenukem                                        3.1 kB/s | 1.5 kB     00:00    
Copr repo for PyCharm owned by phracek                                              14 kB/s | 2.1 kB     00:00    
Docker CE Stable - x86_64                                                           38 kB/s | 3.5 kB     00:00    
Fedora 39 - x86_64                                                                 100 kB/s |  16 kB     00:00    
Fedora 39 openh264 (From Cisco) - x86_64                                           2.3 kB/s | 989  B     00:00    
Fedora 39 - x86_64 - Updates                                                        84 kB/s |  14 kB     00:00    
google-chrome                                                                       38 kB/s | 1.3 kB     00:00    
Lens Repo                                                                           30 kB/s | 3.0 kB     00:00    
RPM Fusion for Fedora 39 - Free                                                     53 kB/s | 6.7 kB     00:00    
RPM Fusion for Fedora 39 - Free - Updates                                           46 kB/s | 6.2 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree                                                  56 kB/s | 7.0 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree - NVIDIA Driver                                  57 kB/s | 6.6 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree - Steam                                          53 kB/s | 6.3 kB     00:00    
RPM Fusion for Fedora 39 - Nonfree - Updates                                        51 kB/s | 6.2 kB     00:00    
sbt-rpm                                                                            1.2 kB/s | 1.5 kB     00:01    
Dependencies resolved.
Nothing to do.
Complete!

It was suggested that you disable the nvidia-powerd.service to eliminate that misleading and spurious message. That service has nothing to do with the nvidia-{hibernate, suspend, resume} services shown and does not support your nvidia RTX 3070 Ti GPU.

Note that the only service that may work in the default swap config for fedora (zram0) is suspend (sleep). Hibernate is not supported by default since fedora does not configure a persistent swap space.
If a user wishes to use hibernate they must take steps to properly configure both physical swap to hibernate and the boot manager to use that space to resume. With an nvidia GPU hibernation the physical swap (partition or file) must be appropriately sized to encompass the physical RAM plus the video RAM of the GPU.
Please show us the output of swapon -s and cat /proc/cmdline as well as free

I note that your listing of the nvidia packages includes the drivers (kmod-nvidia-X.X.XX*) for 5 different kernels. Have you deliberately configured configured dnf to retain 5 kernel versions or is something else not working properly? The default is to retain 3 kernel versions.

[anatoly@fedora ~]$ swapon -s
Filename				Type		Size		Used		Priority
/dev/zram0                              partition	8388604		0		100
[anatoly@fedora ~]$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.5.11-300.fc39.x86_64 root=UUID=1ace6f46-37c9-49fe-b280-3c2c1da02cdb ro rootflags=subvol=root rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rhgb quiet
[anatoly@fedora ~]$ free
               total        used        free      shared  buff/cache   available
Mem:        16044924     3572708     8732152      489432     4564280    12472216
Swap:        8388604           0     8388604
[anatoly@fedora ~]$ 

Yes, I deliberately configured that when I was experimenting with kernels)

That shows that at present you have 16GB RAM, are running kernel 6.5.11, and have only zram swap in use with no swap actually used. You also seem to be using a btrfs file system and have the nvidia drivers installed.

It all seems pretty normal to me.

As per the original suggestion, if you are still getting that message and are concerned about it then the simple fix would be to disable the nvidia-powerd service.

That error doesn’t bother me)) What bother me it’s why unsuspend function doesn’t work. When i close my laptop and after that open it, it never wake up and i have to do hard restart(((

Interesting, after update to fedora 39 the error disappeared, but after suspend my laptop still doesn’t want to wake up(((

○ nvidia-hibernate.service - NVIDIA system hibernate actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-hibernate.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ nvidia-suspend.service - NVIDIA system suspend actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-suspend.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

○ nvidia-resume.service - NVIDIA system resume actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: inactive (dead)

● nvidia-powerd.service - nvidia-powerd service
     Loaded: loaded (/usr/lib/systemd/system/nvidia-powerd.service; enabled; preset: enabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Sun 2023-11-26 14:26:14 MSK; 8h ago
   Main PID: 10742 (nvidia-powerd)
      Tasks: 3 (limit: 18747)
     Memory: 508.0K
        CPU: 24.320s
     CGroup: /system.slice/nvidia-powerd.service
             └─10742 /usr/bin/nvidia-powerd

Nov 26 14:26:14 fedora systemd[1]: Starting nvidia-powerd.service - nvidia-powerd service...
Nov 26 14:26:14 fedora /usr/bin/nvidia-powerd[10742]: nvidia-powerd version:1.0(build 1)
Nov 26 14:26:14 fedora /usr/bin/nvidia-powerd[10742]: Dbus Connection is established
Nov 26 14:26:14 fedora systemd[1]: Started nvidia-powerd.service - nvidia-powerd service.