Bug 449286

Summary: Configuring charging tresholds not supported on Huawei MateBook D W00D 14"
Product: [Unmaintained] Powerdevil Reporter: Soukyuu <chrno-sphered>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.23.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.24
Sentry Crash Report:

Description Soukyuu 2022-01-28 11:19:41 UTC
SUMMARY
According to [1], support for setting charging tresholds was merged in 5.20. The required sysfs entries charge_control_end_threshold/charge_control_start_threshold are present for my battery.

However, I do not see an option to configure them via powerdevil KCM

STEPS TO REPRODUCE
1. install powerdevil with all dependencies
2. open power options in system settings

OBSERVED RESULT
No option to configure charging limits.

EXPECTED RESULT
Option to configure charging limits.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Archlinux, last update a week ago
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This is the 14" Huawei MateBook D with the Ryzen 5 2500U APU. I have tried setting the tresholds via console and they seem to set the values. The Plasma now complains that the power is plugged in, but battery is still discharging - I'm guessing it's working as intended, kind of?
Comment 2 Soukyuu 2022-01-28 12:04:16 UTC
I've just found this [2], so looks like it's something to look forward to in 5.24?

[2] https://invent.kde.org/plasma/powerdevil/-/merge_requests/70
Comment 3 Nate Graham 2022-01-28 18:46:03 UTC
Yup!