View Single Post
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#42
Originally Posted by donsaibot View Post
In my case batlevel uses about 2-5 % of CPU constantly. But i only experienced a slightly decrease in battery life.

My question is if its only waiting to recieve the percentage and not polling it is this normal?
it depends, generally polling is bad, but then it depends on the interval of polling and what it takes to poll, if its running a command, checkng a file etc.
in this case I think polling would be more expensive as Ill have to
1. either run lshal command and get the value
2. get the value by registering to the dbus service.

QT mobility api's already do that and inform the app when the percentage level changes, of course its using the dbus in the background.

but either ways we cant have a "home desktop" app that takes almost zero percentage cpu to display some realtime info.