UbuntuAsahi / ubuntu-asahi

Native Ubuntu installations for Apple silicon hardware
https://ubuntuasahi.org/
867 stars 27 forks source link

KDE's charge limit does not work #117

Closed Consistos closed 5 months ago

Consistos commented 6 months ago

Battery charges to 100% despite settting it to 75%.

Consistos commented 6 months ago

The settings are not saved despite displaying so after applying: going to an other energy config tab and back resets the 2 charge limit settings to 100% and 99%. This only applies to them in the advanced energy config panel. (commenting instead of editing so no one take the wrong lead)

eslerm commented 6 months ago

@Consistos do you know if this issue occurs in official Ubuntu releases under amd64?

Consistos commented 5 months ago

It works after creating the following udev rule: echo 'SUBSYSTEM=="power_supply", KERNEL=="macsmc-battery", ATTR{charge_control_end_threshold}="80"' | sudo tee /etc/udev/rules.d/10-battery.rules.

tobhe commented 5 months ago

Thank you for debugging it! I'll see if we can add that to one of our packages

mkurz commented 5 months ago

I am not sure if it is a good idea to put this rule in one of your packages.

tobhe commented 5 months ago

Thanks @mkurz, replied before I properly read it. I assumed it was a fix for kde and not a hard configured limit :) Anyway, we should still try to find a solution for KDE then.