Bug 426281 - Show apps inhibiting power management in the KCM, just like in the applet
Summary: Show apps inhibiting power management in the KCM, just like in the applet
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_powerdevil (show other bugs)
Version: 5.19.5
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-07 14:38 UTC by Lassi Väätämöinen
Modified: 2023-11-13 02:47 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lassi Väätämöinen 2020-09-07 14:38:02 UTC
SUMMARY
If an application prevents energy saving functionality, there is no way for an average user to tell which application it is.

Using KDE Connect as an example.

STEPS TO REPRODUCE
1. Pair/Connect a mobile device with KDE Connect 
2. Go to System Settings -> Power Management -> Energy Saving
3. Set "Screen Energy Saving" to switch off after 1 minute

OBSERVED RESULT
Wait for over a minute, display not switched off.

EXPECTED RESULT
Display would be switched off, as there is no indication to the user that this would not happen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Operating System: openSUSE Tumbleweed 20200905
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.8.4-1-default
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,6 GiB of RAM
Graphics Processor: Radeon RX 580 Series

ADDITIONAL INFORMATION
Eventually the application "inhibiting DPMS" was discovered via 'journalctl -e'. 

Then needed to go to Tray -> KDE Connect Settings and disable "Inhibit screensaver" -plugin.

It would be useful to show in the system settings a list of applications that are inhibiting Energy saving functionalities. Initially as a simple list in a separate dialog, for example.

In a more elaborate version, there could be a function to launch the given application settings, directly from Energy Saving settings.

Possibly related to issue https://bugs.kde.org/show_bug.cgi?id=357288
Comment 1 Nicolas Fella 2020-09-07 22:57:03 UTC
The battery Plasmoid shows this informatiom
Comment 2 Nate Graham 2020-09-08 20:50:39 UTC
The Battery & Brightness system tray applet shows this already. When you open it and any applications are inhibiting power management, they will be listed in the header area.
Comment 3 Lassi Väätämöinen 2020-09-08 20:56:47 UTC
Running a desktop PC that does not have battery and uses a monitor whose brightness is not adjustable via software dimisses the use of battery applet.

Also, the bug reported here is about System Aettings, which does not display the inhibiting applications.

So, IMO setting it WORKSFORME and pointing to another application does not really justify the resolution.
Comment 4 Nate Graham 2020-09-08 21:07:21 UTC
Fair enough.
Comment 5 popov895 2020-10-20 07:10:58 UTC
Try Power Management Inhibition extension (https://store.kde.org/p/1426768). It shows the same information, but separate from the battery applet.