Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charge_control_thresholds 0 0 #80

Open
SandaruKasa opened this issue Sep 9, 2023 · 0 comments
Open

charge_control_thresholds 0 0 #80

SandaruKasa opened this issue Sep 9, 2023 · 0 comments

Comments

@SandaruKasa
Copy link

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant