> I had been monitoring cpu usage and every 1 sec, my cpu usage % would
spike to 70-80%, I ran a "top" and located the spike.... Xfce-4 battery
-p. The battery monitor is just really sucking alot of cpu usage for
such a small app.

CPU usage can disturb other applications, but when it comes to what kind
of behavior drains battery most (once kernel uses dynticks and can make
HW to sleep when it's not used), it's how often something wakes and how
long.

For example SDL programs might look completely idle when they are not
doing anything (use 0% CPU according to top), but in reality they are
are polling the system (very quickly) several times a second.

In this case I think the main problem is that the thing wakes up once a
sec.  Battery state doesn't change that fast and plugging in a charger
could/should send an event about it...

-- 
Xfce-4 battery monitor using too much cpu
https://bugs.launchpad.net/bugs/113440
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to