Powertop shows 30 wakeups/second
Bug #136724 reported by
Stefano Maggiolo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Weather wallpaper |
Confirmed
|
Low
|
Raúl González Duque |
Bug Description
When running weather-wallpaper (as the only python application on the system) powertop shows this:
8,8% ( 28,8) python : schedule_timeout (process_timeout)
It always shows something around 30 wakeups/seconds, when the application should be totally idle. I don't know much python and I can't (for now) provide a solution.
To post a comment you must log in.
I think about this and maybe the best solution is using gobject.timeout_add (waiting for the timeout_ add_seconds, when pygtk will implement it) and launching a thread that does the update a single time everytime the timeout tick. When there's no connection you can just kill the first timer and create a new one that tick every minute, doing the opposite when the connection is back.