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

issue: persist does not work for me (it worked in the past) #108

Open
Zeit08 opened this issue Feb 1, 2025 · 2 comments
Open

issue: persist does not work for me (it worked in the past) #108

Zeit08 opened this issue Feb 1, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Zeit08
Copy link

Zeit08 commented Feb 1, 2025

Subject of the issue

my battery limit is stuck at 60 as persistence.

I can change it to 80 or 100 and the battery charges, I also use sudo bat persist 80 or 100, but after a reboot I am still stuck at 60.

Maybe I forgot that I put this parameter somewhere manually? Can you help me troubleshoot?

Thanks

Your system

OS: Fedora
Host: ASUSTeK COMPUTER INC. ZenBook UX425IA_UM425IA
Kernel: 6.12.11-200.fc41.x86_64

bat version: 1.2-2-gd91a29d

Version

1.2 (Latest)

Steps to reproduce

No response

Expected behaviour

No response

Actual behaviour

No response

@Zeit08 Zeit08 added the bug Something isn't working label Feb 1, 2025
@tshakalekholoane
Copy link
Owner

Did you run bat reset?

This can also be done manually by trying to find the service that’s setting the threshold on boot by running:

sudo journalctl --boot | rg 'bat-.*\.service'

And remove it:

sudo systemctl disable $service && sudo rm /etc/systemd/system/$service

Substituting $service with the highlighted file from the first command.

That should be enough but if you want to make sure, you can do the same for every file in /etc/systemd/system/ with a bat- prefix (and .service suffix).

Alternatively, it could be related to a kernel regression in 6.12 (#102) in which you should upgrade or if you’re on a dual boot system maybe it’s being set from Windows?

@Zeit08
Copy link
Author

Zeit08 commented Feb 3, 2025

I deleted a few services with bat- as prefix and finally I am charging over 60% after a reboot. Thanks for the input of looking for the services and delete them. I appreciated the commands you wrote.
bat reset was not enough.

btw, off-topic, have you seen the next GNOME will have a battery management settings built-in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants