You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running Arch Linux (kernel 6.4.12-arch1-1) on an AMD Matebook 16 (HVY-WXX9).
I have the da28d6c revision of the huawei-wmi kernel module installed through dkms.
Describe the bug
/sys/devices/platform/huawei-wmi/charge_control_thresholds occasionally reports 0 0 as its value. It has essentially the same meaning as 0 100 with one small difference: it is possible to write 0 100 back, while trying to write 0 0 gives an error. This causes some things like the matebook applet or this service to fail, because they all assume writing back whatever was read from the file will always succeed (unless the user lacks permissions).
To Reproduce
Turn the laptop off and unplug the charger for a couple of hours.
Expected behavior
Either accepting 0 0 as a valid input or reporting 0 100 instead of 0 0 in the first place.
The text was updated successfully, but these errors were encountered:
Specs
I'm running Arch Linux (kernel 6.4.12-arch1-1) on an AMD Matebook 16 (HVY-WXX9).
I have the da28d6c revision of the huawei-wmi kernel module installed through dkms.
Describe the bug
/sys/devices/platform/huawei-wmi/charge_control_thresholds
occasionally reports0 0
as its value. It has essentially the same meaning as0 100
with one small difference: it is possible to write0 100
back, while trying to write0 0
gives an error. This causes some things like the matebook applet or this service to fail, because they all assume writing back whatever was read from the file will always succeed (unless the user lacks permissions).To Reproduce
Turn the laptop off and unplug the charger for a couple of hours.
Expected behavior
Either accepting
0 0
as a valid input or reporting0 100
instead of0 0
in the first place.The text was updated successfully, but these errors were encountered: