Comments (3)
Thank you. The fix is up.
from bat.
Thank you for your feedback.
The question mark is a glob pattern that's supposed to capture any variation in the battery device name across different models.
The problem must be with the location of bash on your system. Can you confirm that the following works too before I start working on a fix for that?
[Unit]
Description=Persist the battery charging threshold after boot
After=multi-user.target
StartLimitBurst=0
[Service]
Type=oneshot
Restart=on-failure
ExecStart=/bin/bash -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'
[Install]
WantedBy=multi-user.target
from bat.
Thanks for looking into this. I tried changing the services to BAT? and did
sudo systemctl daemon-reload
sudo systemctl restart bat-boot.service
There was no error so it seems to be only the bash location that was the problem.
from bat.
Related Issues (20)
- issue: Charging does not stop no matter if the laptop is running or sleeping HOT 5
- issue: How to set charge resume level? HOT 3
- issue: Fails to build: cannot load embed: malformed module path "embed" HOT 3
- Works with T14 Gen2 Intel ThinkPads HOT 1
- issue: bat uninstall HOT 6
- issue: Could not find Bash on NixOS while setting persist mode HOT 5
- bat-asus-battery-bin package on AUR failed to build HOT 2
- Not working. After connect charger battery charging. ASUS TUF Gaming F17 FX706HE_FX706HE 1.0 HOT 2
- issue: when i run " # ./bat --threshold" HOT 1
- Request procedure how to update the app HOT 5
- Use system call to retrieve the Linux kernel version
- Run CI checks in parallel
- feat: battery health command HOT 18
- issue: 目前本人用thinkpad t15g gen1 移动工作站,以后可能换dell precision,请贵编以后加强下dell HOT 1
- issue: Battery percentage setting doesn't persist; systemctl does not indicate that [email protected] is running. HOT 44
- feat: replace dependency on Bash with /bin/sh for cross-platform compatibility
- Not working on Asus Zenbook with Ubuntu 23.04 HOT 6
- build: create additional Make targets
- issue: charge threshold not working after waking up from sleep HOT 19
- build: package bat for NixOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bat.