https://bugs.kde.org/show_bug.cgi?id=504889

            Bug ID: 504889
           Summary: Power Profile incorrectly shown when hardware does not
                    support it
    Classification: Plasma
           Product: plasmashell
      Version First 6.3.5
       Reported In:
          Platform: Solus
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Power and Battery  widget
          Assignee: plasma-b...@kde.org
          Reporter: kde...@tlcnet.info
                CC: k...@privat.broulik.de, natalie_clar...@yahoo.de
  Target Milestone: 1.0

SUMMARY
"Power Profile" is shown in Power and Battery  *but* the system does not
support power profiles. The message says to install power-profiles-daemon
installed even whe power-profiles-daemon is installed

This is confusing. It makes it look like there's a bug in the applet detecting
the package being installed. This provides no valuable information to the user
when their system doesn't support using power-profiles-daemon.

Note: This was reported to Solus by a user on Plasma 6.3.5, I reproduced on
git-master

SYSTEM SETUP
A system with a CPU that does not support pstates e.g. any AMD earlier than
Zen2
power-profiles-daemon is installed, powerprofilesctl is running

Cheat sheet for AMD CPUs
https://www.pcgamer.com/heres-your-cheat-sheet-for-amds-zen-based-cpu-nomenclature/

Check with the following. If it says `amd-pstate`, pstate is supported,
otherwise it is not

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver


STEPS TO REPRODUCE
1. Have / add a default panel with the system tray 
2. Click on the Power and Brightness app

OBSERVED RESULT
"Power profiles" is shown with the message  
"Power profiles may be supported on your device. Try installing the
power-profiles-daemon package using your distribution's package manager and
restarting the system"

EXPECTED RESULT
"Power profiles" is not shown

SOFTWARE/OS VERSIONS
Operating System: Solus 4.7
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.8.3
Kernel Version: 6.14.6-319.current (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
Memory: 17.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 10 Graphics
Manufacturer: LENOVO
Product Name: 81SS
System Version: Lenovo IdeaPad FLEX-14API

$ powerprofilesctl
    balanced:
    PlatformDriver: placeholder

    power-saver:
    PlatformDriver: placeholder


ADDITIONAL INFORMATION
For systems where the CPU is not supported by power-profiles-daemon, telling
the user to install it is counter-productive. power-profiles-daemon conflicts
with other governers like scheduti, which supports some CPUs the former
doesn't.

The user report on the Solus forums:
https://discuss.getsol.us/d/11649-power-widget-cant-change-profiles-decrease-temperature-amd-zen-cpu-on-kde

The affected system has Plasma 6.3.5 and a AMD Zen+ Ryzen 5 2500U

On that system they have the same output from powerprofilesctl
    huawei@huawei-solus ~ $ powerprofilesctl
    balanced:
    PlatformDriver: placeholder

    power-saver:
    PlatformDriver: placeholder
    huawei@huawei-solus ~ $

SUGGESTION
If powerprofilesctl can be queried, and shows "PlatformDriver: placeholder", do
not show the Power Profile entry.

I don't know if there's a more robust way of determining if a particular system
CPU is supported by power-profiles-daemon to prevent the suggestion to install
it if it's not going to be supported

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to