Comments (5)
That is strange behavior, there is an old issue with a same status. So when you remove the tmux-battery related parameters from your status-right the CPU spikes disappear? Did you test any of those three parameters you used?
from tmux-battery.
The spikes stopped when I removed the uses of tmux-battery without any further intervention. I've since had tmux running for more than 50 hours and it's all ok. I did try disbaling each of the three flags separately and resourcing. I noticed that for each removed flag the spikes in cpu use would be smaller - peaking at 50% - but were still present. Disabling any two flags simultaneously would reduce the spikes just a bit more. I did however not notice any flag to have any greater consequence than any of the other two.
I should add that though most times the issue occurred with the battery fully charged, it would not stop even after the battery would then start discharging to any level or even charging again. The indicators are also accurate and in line with the system indicators.
from tmux-battery.
In the recent days I have been recognizing this behavior myself as well. For me it is not a single spike. I was monitoring the system for a while and it kept peaking at 100% for quite a while. And when I closed tmux, the CPU usage went back to normal.
And having my terminal doing the things I always do, does not make my CPU usage peak at all. I have not ruled out the reason for my personal problem. I will look into the question if it is caused by tmux-battery. I'll keep this updated.
from tmux-battery.
I was just experiencing a similar (though not as extreme) symptom. I am using Fedora 29 and when using upower
to check the battery, I saw about an average 5% bump in sustained CPU usage. When I changed the scripts locally to call acpi
instead, my CPU usage dropped down to my baseline again.
Has anyone else seen this? Would this be a good reason to use acpi
instead of upower
as the first choice?
from tmux-battery.
@rux616 Thank you for your comment. When Googling on excessive power usage of upower
it seems to be a general problem. I see bug reports from back in 2011, some in 2014.
If acpi
and upower
are available on a machine and acpi
does not cause those cpu and memory spikes, then choosing acpi
over upower
seems okay to me.
The comment https://bugs.launchpad.net/ubuntu/+source/upower/+bug/876279/comments/7 also tells something interesting: a possible flooding of monitoring events on the battery.
I am curious if we could get to know what exactly causes upower
to randomly request this amount of cpu.
from tmux-battery.
Related Issues (20)
- unable to showdischarge status in new WSL
- No indication at powerline HOT 1
- No indication at all HOT 1
- [feature] Support Android HOT 3
- Add colour for battery_status when charging HOT 1
- I'm seeing time remaining as a decimal not time HOT 3
- Support for custom background colors HOT 2
- Separate custom background and foreground colors
- Contributor name fix HOT 2
- Unable to see battery_percentage in status-right HOT 2
- Status line print the decimal points of the percentage of the remaining battery
- Can I use this on WSL? HOT 1
- [Solved] battery percentage wrong when I have a second battery
- UPS support
- Feature: Suggest to charge/remove charging at 20% or 80%
- Is there a way to make the background "transparent" or at least consistently one color? HOT 2
- Battery status not showing in Termux HOT 1
- batt_icon_status_charged /_charging, .._discharching: HOT 3
- battery status does not work with acpi (but with upower)
- Two Battery Laptop (Lenovo Thinkpad T70s) HOT 1
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 tmux-battery.