| Summary: | Support ACPI platform profile, /sys/firmware/acpi/platform_profile_choices | ||
|---|---|---|---|
| Product: | [Unmaintained] Powerdevil | Reporter: | Méven Car <meven29> |
| Component: | general | Assignee: | Kai Uwe Broulik <kde> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | andrey, bastian.beischer, nate, null, richrocksmyworld |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Méven Car
2021-02-03 08:43:36 UTC
Kai has this in progress: https://invent.kde.org/plasma/powerdevil/-/merge_requests/34 yes i am waiting for this too. kernel 5.12 on my lenovo ideapad and nothing shows up in powerdevil. Was this added in Plasma 5.23? If yes: Why don't I see a toggle in the battery and brightness applet? I'm on a Lenovo T14 Gen 2 which uses ACPI Platform Profiles. (In reply to Bastian Beischer from comment #3) > Was this added in Plasma 5.23? If yes: Why don't I see a toggle in the > battery and brightness applet? I'm on a Lenovo T14 Gen 2 which uses ACPI > Platform Profiles. Not yet, needs some works, IMO a matter of time (understand 5.24-5.27) since I expect devs to be motivated to work on this feature and we now have a good dependency to work with. https://invent.kde.org/plasma/powerdevil/-/merge_requests/49 added power profile support, but this is only visible for laptops supporting the feature at the driver level and linux 5.12+ @Meven: But I am running Linux 5.14.13 and profiles are available via: /sys/firmware/acpi/platform_profile Is that not what is needed? I understood that is what is required, so I was confused when I didn't see a toggle. (In reply to Bastian Beischer from comment #6) > @Meven: But I am running Linux 5.14.13 and profiles are available via: > > /sys/firmware/acpi/platform_profile > > Is that not what is needed? I understood that is what is required, so I was > confused when I didn't see a toggle. You need also to install https://gitlab.freedesktop.org/hadess/power-profiles-daemon/ as well if not already installed. Can you confirm installing power-profies-daemon and logout/in back again makes power profiles visible in UI ? That was it, thanks. It works now. I'll forward this to the arch package maintainer so the power profiles daemon can be included as an optional dependency. I have a supported laptop (lenovo ideapad) and kernel 5.14. I installed the daemon but don't see anything in the UI. Am I missing something? In konsole I get:
powerprofilesctl
* balanced:
Driver: placeholder
power-saver:
Driver: placeholder
Although actually mine supports 3 profiles (quiet, balanced, performance)
(In reply to Tornado99 from comment #9) > I have a supported laptop (lenovo ideapad) and kernel 5.14. I installed the > daemon but don't see anything in the UI. Am I missing something? In konsole > I get: > > powerprofilesctl > * balanced: > Driver: placeholder > > power-saver: > Driver: placeholder > > Although actually mine supports 3 profiles (quiet, balanced, performance) This output indicates powerprofiles did not find any power profiles drivers (intel_pstate or ACPI), hence "placeholder". Either your hardware does not actually supports any power profile or powerprofiles daemon or the kernel driver has a bug, or your systems is not properly configured to take advantage of it. What does `cat /sys/firmware/acpi/platform_profile_choices` report, if the file exists ? Same question for `cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference` ? As for the GUI, did you restart powerdevil after installation, the simplest way to do it is to logout plasma and login again (Disconnect, no reboot necessary) ? Do you have an AMD cpu ? What is your distro ? No such file or directory for both 'cat' I rebooted. AMD Ryzen 3550H. My system definitely supports 3 profiles. I can switch for example to balanced using: kdesu bash -c "echo '\_SB.PCI0.LPC0.EC0.VPC0.DYTC 0x000FB001' | tee /proc/acpi/call" I have verified the max clock speed is different with the 3 different profiles using AMD uProf. Manjaro KDE 5.22.5, 5.87.0, kernel 5.14.10-1 (In reply to Tornado99 from comment #11) > No such file or directory for both 'cat' > > I rebooted. AMD Ryzen 3550H. > > My system definitely supports 3 profiles. I can switch for example to > balanced using: > > kdesu bash -c "echo '\_SB.PCI0.LPC0.EC0.VPC0.DYTC 0x000FB001' | tee > /proc/acpi/call" > > I have verified the max clock speed is different with the 3 different > profiles using AMD uProf. As far I can tell this way of setting profile is currently not handled by power-profiles, it should be reported there. This concerns AMD CPU. I saw this come from https://wiki.archlinux.org/title/Lenovo_IdeaPad_5_14are05#System_Performance_Mode This acpi_call direct API is not supported by power-profiled-daemon, and is quite unorthodox. https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/issues |