Hi.
After I updated today, the “max charge level” is gone from Power managment - advanced.
Is it under another setting now?
I still see that on the M2 Macbook Pro 13" and KDE Plasma 6.1.3, although with an udev-rule to apply the charge limit on boot.
Does /sys/class/power_supply/macsmc-battery/charge_control_end_threshold
exists? Can you read/write inot as root? What happens if you write 80 into it like echo 80 | sudo tee /sys/class/power_supply/macsmc-battery/charge_control_end_threshold
?
No the file does not exist.
I get permission dnied with sudo.
echo 80 | sudo tee /sys/class/power_supply/macsmc-battery/charge_control_end_threshold
Please touch the device.
tee: /sys/class/power_supply/macsmc-battery/charge_control_end_threshold: Permission denied
80
If the file doesn’t exists writing to it won’t do anything. Does the directory exists? Can you list it contents? I don’t see how the files might be missing completely. They are potentially not writable but should exist.
Please paste the output of journalctl -k -g macsmc
.
Please provide details on the device. What diud you upgrade? Fedora? or macOS?
journalctl -k -g macsmc
aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report constant_charge_current' property: -132 aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report
constant_charge_current’ property: -132
aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report constant_charge_current' property: -132 aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report
constant_charge_current’ property: -132
aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report constant_charge_current' property: -132 aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report
constant_charge_current’ property: -132
aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report constant_charge_current' property: -132 aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report
constant_charge_current’ property: -132
aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report constant_charge_current' property: -132 aug. 11 17:37:45 fedora kernel: power_supply macsmc-battery: driver failed to report
constant_charge_current’ property: -132
Macbook pro 14" M1
macos Sequoia beta
The SMC firmware from Sequoia removed or renamed the setting used to control the charge limit. We’re looking how/if we can control that with the Sequoia SMC fw. The error messages is unrelated and will be gone in the next kernel release.
An alternate way to implement this has been found and will be included in the next kernel update. This will allow to set custom end thresholds instead of the hardcoded 80%. We will also soon have a solution for making the setting persistent (saving it on every write and restoring it on boot).
Excellent! Thanks to the Asahi team for all the great work you do!