! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-mixer-plugin 4.4.2 is top cause of wakeups
Status:
RESOLVED: WONTFIX
Product:
Xfce4-mixer
Component:
Panel Plugin

Comments

Description fijam 2008-10-30 13:15:56 CET
xfce4-mixer-plugin generates about 10 wakeups per second on my system effectively shortening battery life.

I am not sure if this is reproducible or what (if any) logs would be helpful but I am willing to provide necessary information.
Comment 1 dannym editbugs 2009-01-11 20:19:11 CET
Yeah, if you check "panel-plugin/plugin.c", line 507, it adds a timeout callback to be called every second: function is "mixer_timer_cb".

Sorry, but this is by design because it polls for changes in the volume control values from time to time. If you want, comment out the line that says:
   mixer->timer = g_timeout_add (UPDATE_TIMEOUT,
                (GSourceFunc) mixer_timer_cb,
                mixer                        
        );
If you have and use ALSA ("./configure --with-sound=alsa"), that might even work without ill effects.
Comment 2 dannym editbugs 2009-01-11 21:28:04 CET
I mean replace by "mixer->timer = 0;"
Comment 3 dannym editbugs 2009-01-11 22:28:10 CET
and it should only wake up once per second... 
I also committed a small fix for 4.4 branch now that should at least make the panel settings dialog less demanding (that was refreshing the device list every 500ms or so sometimes).

So it should be better now, and if you can, find the culprits which wake up the computer more often than once every second, and try the workaround I gave. You can find out which part it is by commenting out huge slabs of the xfce4-mixer plugin source code and see when it goes away. When you do this in a divide-and-conquer fashion, you don't need that many tries to find out. Make sure the culprit _is_ the mixer plugin before doing all that, though :)
Comment 4 fijam 2009-01-13 23:16:55 CET
Thanks!

That actually sounds like an approach I could undertake once I have some spare time on my hands.

Bug #4541

Reported by:
fijam
Reported on: 2008-10-30
Last modified on: 2009-07-14

People

CC List:
0 users

Version

Attachments

Additional information