Is this possible in Linux?
10 hours ago, Gat Pelsinger said:The second thing is I can "feel" my kernel suffocating reacting to syscalls every second.
No, you can't. I assure you polling ACPI information even once per second is not going to significantly stress a modern cpu. You can check this yourself with htop or any other program that reports live cpu usage.
10 hours ago, Gat Pelsinger said:Battery discharging. Percentage got less. Kernel reports in ACPI. Something magically gives signal to my idle daemon. Daemon updates the percentage on the screen.
something like this? https://wiki.archlinux.org/title/Acpid
you'll have to check yourself whether your laptop generates an event for the percentage changing... I wouldn't count on it, considering 30s or even 1 minute is a perfectly adequate refresh rate for battery level... I mean, if you're worried about your percentage changing much faster than that then you should replace your battery.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now