[Goodies-dev] [Bug 5181] New: Use g_timeout_add_seconds for less wake-ups
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Thu Apr 2 14:05:05 CEST 2009
http://bugzilla.xfce.org/show_bug.cgi?id=5181
Summary: Use g_timeout_add_seconds for less wake-ups
Product: Xfce Panel Plugins
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Low
Component: wavelan
AssignedTo: goodies-dev at xfce.org
ReportedBy: bug at montun.dk
Created an attachment (id=2269)
--> (http://bugzilla.xfce.org/attachment.cgi?id=2269)
Use g_timeout_add_seconds on glib version >=2.14
The wawelan panel plugin is often used on laptops. Wavlan wakes up every 250 ms
with no syncronations towards other processes causing the kernel to wake up
uneeded an increasing powercomsomption.
Now this plugin is used on laptops and as a user I do want to see the current
lan performance, but not with the cost of worse battery life. So I added a
patch that uses g_timeout_add_seconds().
>From glib documentation on g_timeout_add (); If you want to have a
timer in the "seconds" range and do not care about the exact time of
the first call of the timer, use the g_timeout_add_seconds() function;
this function allows for more optimizations and more efficient system
power usage.
Pros: better battery life
Drawback: lower update interval
Patch based on http://trac.transmissionbt.com/changeset/7463
More on powersaving and timers:
http://mjg59.livejournal.com/74651.html?thread=452251
--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Goodies-dev
mailing list