Fedora 40 cant wake up from sleep/suspend

Hi
Recently upgraded to F40 and i discovered that when the laptop goes to sleep/suspend, it cant wake up, i will have to power the laptop down (force and power on). I use Intel and Nvidia.

my installed nvidia drivers

akmod-nvidia.x86_64                                  3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.6.13-200.fc39.x86_64.x86_64            3:545.29.06-2.fc39                  @@commandline                   
kmod-nvidia-6.6.7-200.fc39.x86_64.x86_64             3:545.29.06-1.fc39                  @@commandline                   
kmod-nvidia-6.6.9-200.fc39.x86_64.x86_64             3:545.29.06-2.fc39                  @@commandline                   
kmod-nvidia-6.8.7-300.fc40.x86_64.x86_64             3:550.76-1.fc40                     @@commandline                   
libva-nvidia-driver.x86_64                           0.0.11-3.fc40                       @fedora                         
nvidia-gpu-firmware.noarch                           20240410-1.fc40                     @updates                        
nvidia-modprobe.x86_64                               3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                           3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                               3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                           3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                      3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                   3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                 3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                   3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                        3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                      3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                     3:550.76-1.fc40                     @rpmfusion-nonfree-nvidia-driver

Also this command nvidia smi below

Thu May  2 08:33:08 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.76                 Driver Version: 550.76         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 4060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   52C    P0             13W /   80W |       5MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2741      G   /usr/bin/gnome-shell                            2MiB |
+-----------------------------------------------------------------------------------------+

There was obviously a considerable time between your last update with f39 (the 6.6.9 kernel) and the upgrade to f40.

The recommended upgrade between versions always suggests to do a full update on the existing version before performing the system upgrade and it seems you did not. If done there should have been a 6.8.7 kernel for f39 installed.

I cannot state that the version upgrade is related, but I can state that you do not know whether the same would have happened while still running f39 had it been fully updated. Many things in the entire software suite installed changed between the 6.6.9 kernel release and the 6.8.7 kernel release on f39, as well as between f39 & f40.

I suggest that you run sudo dnf distro-sync --refresh and see if there are any differences following that. I also suggest that you perform updates more frequently than about every 6 months since improvements, security fixes, and bug fixes are occurring regularly.

1 Like

Though i cannot give the exact time of my last update, i can state that i always do updates when i see them in software center, so i dont think it took that long.

I must have updated the kernel version before the 40 update tbh, as i know i do them regularly, i could have missed it or didnt show up in my software center?

$ rpm -qa kernel
kernel-6.6.7-200.fc39.x86_64
kernel-6.6.9-200.fc39.x86_64
kernel-6.6.13-200.fc39.x86_64
kernel-6.8.7-300.fc40.x86_64

the last update was 6.6.13 i guess?

sudo dnf distro-sync --refresh

Fedora 40 - x86_64                                                                                                                                                                                            128 kB/s |  23 kB     00:00    
Fedora 40 openh264 (From Cisco) - x86_64                                                                                                                                                                      7.7 kB/s | 989  B     00:00    
Fedora 40 - x86_64 - Updates                                                                                                                                                                                  127 kB/s |  21 kB     00:00    
google-chrome                                                                                                                                                                                                  22 kB/s | 1.3 kB     00:00    
google-chrome-unstable                                                                                                                                                                                         20 kB/s | 1.3 kB     00:00    
RPM Fusion for Fedora 40 - Free                                                                                                                                                                                20 kB/s | 6.6 kB     00:00    
RPM Fusion for Fedora 40 - Free - Updates                                                                                                                                                                      12 kB/s | 6.2 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree                                                                                                                                                                             17 kB/s | 6.7 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree - NVIDIA Driver                                                                                                                                                             19 kB/s | 6.6 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree - Steam                                                                                                                                                                     19 kB/s | 6.3 kB     00:00    
RPM Fusion for Fedora 40 - Nonfree - Updates                                                                                                                                                                   12 kB/s | 6.2 kB     00:00    
Dependencies resolved.
Nothing to do.
Complete!

This clearly shows that the nvidia driver was still at 545.29.06 and the kernel was at 6.6.9 when the latest update to the nvidia drivers was done before the system upgrade.
f39 had been updated to the 6.8.6 kernel before the release of f40 and to 6.8.7 coincident with that release. I think the last kernel in f39 before the release of 6.8.4 was something like 6.7.8 or higher. 6.6.13 should have been the last update to the 6.6 kernel before fedora released the 6.7 kernels. about 5 months ago.

Had you performed a system update with dnf upgrade --refresh and a reboot as is recommended before performing the system upgrade there should have been a kernel 6.8.7 and an nvidia driver such as here for f39.

# dnf list installed kmod-nvidia*
Installed Packages
kmod-nvidia-6.8.6-200.fc39.x86_64.x86_64                                3:550.67-1.fc39                                @@commandline
kmod-nvidia-6.8.7-200.fc39.x86_64.x86_64                                3:550.67-1.fc39                                @@commandline
kmod-nvidia-6.8.7-300.fc40.x86_64.x86_64                                3:550.76-1.fc40                                @@commandline

To find out exactly when the last update was you could use dnf history --reverse which keeps a log of all updates and should show the last build and install of the kmod-nvidia package related to a kernel update.

I checked this and there was nothing to do, sadly, also i have done resbooting more than twice.

I notice this error

● 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 Thu 2024-05-02 17:43:15 IST; 11min ago
   Main PID: 1183 (nvidia-powerd)
      Tasks: 3 (limit: 38042)
     Memory: 1.1M (peak: 93.4M)
        CPU: 3.547s
     CGroup: /system.slice/nvidia-powerd.service
             └─1183 /usr/bin/nvidia-powerd

May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: error setting power limit
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: Error setting GPU limit: 85000.
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: error setting power limit
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: Error setting GPU limit: 85000.
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: error setting power limit
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: Error setting GPU limit: 85000.
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: error setting power limit
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: Error setting GPU limit: 85000.
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: error setting power limit
May 02 17:54:59 MyRouter /usr/bin/nvidia-powerd[1183]: Error setting GPU limit: 85000.

This is fixed now

took the latest upgrade 6.8.8 and it is fine now

1 Like

Hello!

I still get the same issue in Fedora 40, kernel 6.9.9 (obligatory “nice!”). Here’s the output of nvidia-smi:

Wed Jul 24 20:03:40 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.42.06              Driver Version: 555.42.06      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| 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 GTX 1050 Ti     Off |   00000000:01:00.0  On |                  N/A |
| 45%   37C    P0             N/A /   75W |    3667MiB /   4096MiB |     29%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1205      G   /usr/libexec/Xorg                             154MiB |
|    0   N/A  N/A      1597      G   alacritty                                       8MiB |
|    0   N/A  N/A      1646      C   ...unners/cuda_v11/ollama_llama_server       3346MiB |
|    0   N/A  N/A      1691      G   /usr/lib64/firefox/firefox                    142MiB |
|    0   N/A  N/A      3333      G   alacritty                                       8MiB |
+-----------------------------------------------------------------------------------------+

Any kind a support, be it just a word of encouragement, would be very well received! :slight_smile:

I edited your post to add the preformatted text tags to your post (the </> button on the toolbar) so the nvidia-smi output is formatted the same as seen on-screen.

We really do not know what your problem is since the same issue is not really helpful.

Ollama-llama is using nearly all the video ram on that GPU.

Please open your own thread since this thread already has a solution marked.
Also note that you are not using the latest nvidia driver and you really should update as the first step in troubleshooting issues.

I am closing this thread.