Bug 489073

Summary: Allow hiding power profiles from the Power and Battery applet for systems that don't support it
Product: [Plasma] plasmashell Reporter: anhollander516 <anhollander516>
Component: Battery MonitorAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: kde, me, natalie_clarius, nate
Priority: NOR    
Version: 6.1.0   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: This is what the applet looks like when power-profiles-daemon is installed and running on an unsupported system.

Description anhollander516@gmail.com 2024-06-23 22:22:22 UTC
Created attachment 170884 [details]
This is what the applet looks like when power-profiles-daemon is installed and running on an unsupported system.

SUMMARY
It is not possible to disable showing power profiles in the Power and Battery applet while keeping the battery information, for systems that don't support it. Uninstalling power-profiles-daemon or masking power-profiles-daemon.service causes the applet to nag you to install it. Installing PPD causes the applet to say that power profiles are unavailable. This information isn't something the user needs to see every time they open the applet, yet it can't be disabled.

STEPS TO REPRODUCE
1. Install Plasma on a system that doesn't support hardware P-states with e.g. the intel_pstate or amd_pstate driver. Alternatively, compile a kernel with it disabled (this requires disabling CPUFreq entirely, at least for intel_pstate).
2. Install power-profiles-daemon. You don't have to enable the service because it gets started automatically over D-bus, but you can.

OBSERVED RESULT
The Power and Battery applet has no configuration panel, and instead opens up the main Power Management panel when you click configure. Observe that there is no option to hide the power profiles setting. (It's worth noting that if PPD is not installed, then the option to switch power profiles on AC/battery is hidden. That's a good thing; an option that does nothing shouldn't be shown.)

EXPECTED RESULT
There should be a way to hide the unwanted, and in this case useless, information.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora 40
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
I think a better option is to not only allow the user to hide power profiles from the applet, but also to move the warning banner that shows when power-profiles-daemon is not installed from the applet to the Power Management System Settings panel, in the style of other warning banners such as recommending enabling display scaling when large font sizes are used.
Comment 1 Nate Graham 2024-06-25 22:38:48 UTC
Since some hardware indeed does not support the feature, maybe we should offer a way for the user to hide it manually.
Comment 2 anhollander516@gmail.com 2024-07-03 07:03:55 UTC
I see this was merged: https://invent.kde.org/plasma/powerdevil/-/merge_requests/386

This doesn't really fix the problem for a couple of reasons, but it was also an easy change so you get what you get.

- Some users may choose to use tuned, auto-cpufreq, etc. instead. It's not feasible to add detection for everything so some users will still encounter the error message.
- TLP is something that's generally not installed by default. The user probably knows TLP is being used and doesn't need the info in the widget. Maybe someone does want it there for peace of mind but I still think it makes more sense to at least have the option to hide it altogether.