Bug 489073 - Allow hiding power profiles from the Power and Battery applet for systems that don't support it
Summary: Allow hiding power profiles from the Power and Battery applet for systems tha...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Battery Monitor (show other bugs)
Version: 6.1.0
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-23 22:22 UTC by anhollander516@gmail.com
Modified: 2024-06-25 22:38 UTC (History)
4 users (show)

See Also:
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. (56.96 KB, image/png)
2024-06-23 22:22 UTC, anhollander516@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
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.