Bug 503048 - Nvidia: disable sleep when power management is not setup correctly
Summary: Nvidia: disable sleep when power management is not setup correctly
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-20 09:34 UTC by Peter Eszlari
Modified: 2025-04-21 17:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eszlari 2025-04-20 09:34:48 UTC
Nvidia needs a special setup to make suspend / hibernate work, see e.g.:

https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend

https://download.nvidia.com/XFree86/Linux-x86_64/565.77/README/powermanagement.html

Most distributions don't set this up for the user, resulting in a broken out-of-the-box experience when returning from sleep. You can find a lot of user complaints about this online.

As a safety measure, Plasma could disable sleep completely, when it detects a Nvidia card as the main GPU and the needed services:

- nvidia-suspend.service
- nvidia-hibernate.service
- nvidia-resume.service

are not active and

/proc/driver/nvidia/params

is missing "PreserveVideoMemoryAllocations" and "TemporaryFilePath".
Comment 1 TraceyC 2025-04-21 17:18:58 UTC
This sounds like it could be made part of 
https://invent.kde.org/plasma/plasma-workspace/-/issues/64