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
After resuming from suspend-then-hibernate, if battery level is above charge threshold (80), it shouldn't be charging.
Actual Behavior
The battery is charging despite that battery level is above threshold (80) after resuming from suspend-then-hibernate. bat -t correctly shows the threshold I configured. Manually setting charge threshold again makes it work properly.
Steps to reproduce
Set threshold and persist. sudo bat -t 80sudo bat -p.
Set appropriate HibernateDelaySec (like 20 for testing) in /etc/systemd/sleep.conf.
Charge the battery until it meets the threshold. Check that the battery is not charging with bat -s.
sudo systemctl suspend-then-hibernate and wait for it to enter hibernate mode.
Resume from hibernate. Check battery status with bat -s and it says it's charging.
Run sudo bat -t 80 then check battery status. This time the threshold works and battery isn't charging.
Additional Notes
With both suspend and hibernate the threshold works properly.
I tried both 0.8 and 0.8.1, neither works.
Expected Behavior
After resuming from suspend-then-hibernate, if battery level is above charge threshold (80), it shouldn't be charging.
Actual Behavior
The battery is charging despite that battery level is above threshold (80) after resuming from suspend-then-hibernate.
bat -t
correctly shows the threshold I configured. Manually setting charge threshold again makes it work properly.Steps to reproduce
sudo bat -t 80
sudo bat -p
.HibernateDelaySec
(like 20 for testing) in/etc/systemd/sleep.conf
.bat -s
.sudo systemctl suspend-then-hibernate
and wait for it to enter hibernate mode.bat -s
and it says it's charging.sudo bat -t 80
then check battery status. This time the threshold works and battery isn't charging.Additional Notes
With both suspend and hibernate the threshold works properly.
I tried both
0.8
and0.8.1
, neither works.System Info
The text was updated successfully, but these errors were encountered: