Comments (7)
I’m not sure I understand what the problem is. If you unplug your charger then the status has to rightfully show that your battery is discharging. The application merely relays what the operating system is telling it so if it says the charging status is unknown, then that is what it is reading. You mentioned it works anyway right?
What kind of start up issues are you experiencing on Manjaro?
from bat.
Yeah it works.
Regarding manjaro , I get some <failed>
to start the service during startup init screen. I don't find this on other distros though.
from bat.
Can you post the error message here? Does that mean it’s not working on Manjaro?
from bat.
I'm sorry but I don't have Manjaro installed now. I'll open a new issue if I install anytime soon.
Thx for the script🙂
from bat.
Hi, as I said earlier, the error is visible in manjaro because manjaro shows systemd services on startup. So, I am assuming that this is with any distro and not really an issue. From arch wiki, I got this for a similar implementation :
This error is due to the service being started before asus-wmi could be loaded by the kernel (noted as kernel: battery: new extension: ASUS Battery Extension in the journal), making it impossible to write there.
The combination of those two options allows unlimited restart of the service for DefaultStartLimitIntervalSec (set to 10 seconds by default in /etc/systemd/system.conf), leaving enough time for the sysfs path to become available and writable and thus ensuring the fastest execution of the service.
But the thing is that battery starts to charge until I select manjaro linux in grub menu( I have windows and manjaro as dual boot) and stops when the os is actually started. So, anyway to stop charging right after starting the laptop i.e.: grub menu with this tool? Thanks.
from bat.
No. The operating system has to load and expose the variables before systemd can write to them again i.e. set the battery charging threshold, upon restart.
from bat.
ok thanks :)
from bat.
Related Issues (20)
- I have an Asus laptop but I get an error - zenbook ux463fl HOT 7
- 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
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.