Bug 493530

Summary: Switch power profile shortcut shows OSD about profiles even when power-profiles-daemon isn't installed
Product: [Unmaintained] Powerdevil Reporter: Ben Hutchinson <benhutchy123456>
Component: generalAssignee: Natalie Clarius <natalie_clarius>
Status: RESOLVED FIXED    
Severity: minor CC: natalie_clarius, nate
Priority: NOR Keywords: usability
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:

Description Ben Hutchinson 2024-09-23 12:04:11 UTC
SUMMARY
Unlike the battery tray icon which doesn't show any power profiles and suggests installing power-profiles-daemon the power profile switcher will show the power profiles which will not do anything.

STEPS TO REPRODUCE
1. Do not have power-profiles-daemon installed
2. Use the "Switch Power Profile" keybind (Default Meta+B)

OBSERVED RESULT
Power profiles (which do not do anything) show up

EXPECTED RESULT
No menu should appear or perhaps an informative notification should appear

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Fedora Linux 40, Kernel 6.10.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.2
Qt Version: 6.7.2
Comment 1 Nate Graham 2024-09-23 18:02:36 UTC
The action that the shortcut triggers should probably be internally disabled in this case. Or maybe the shortcut itself shouldn't be exposed publicly, if that's feasible.
Comment 2 Natalie Clarius 2024-09-25 02:21:52 UTC
This is fixed in Plasma 6.2 as a side effect of the shortcut now cycling through available profiles, rather than bringing up the interactive menu. If there are no profiles available, nothing will happen.