On 6/3/25 12:37 PM, Dmitry Baryshkov wrote:
On Tue, Jun 03, 2025 at 01:48:11PM +0800, Fenglin Wu wrote:Is there a chance we store that value in SDAM and can read it back?
On 5/31/2025 6:36 PM, György Kurucz wrote:Which limits usablity of the attribute, it is now impossible to identify
Right.Add charge control support for SM8550 and X1E80100.Thank you for this, tested on my Lenovo Yoga Slim 7x, the limiting works
well, I finally don't have to worry about leaving my laptop plugged in
for too long.
One small thing I noticed is that after setting the sysfs values and
rebooting, they report 0 again. The limiting appears to stay in effect
though, so it seems that the firmware does keep the values, but Linux
does not read them back. Indeed, looking at the code, it seems that
actually reading back the values is only implemented for the SM8550.
Based on offline information, X1E80100 doesn't support reading back those
threshold values in battery management firmware, so I can only use the
cached values for sysfs read.
whether it is enabled or disabled. Is there a chance of fixing that for
the X1E80100 platform?
Konrad