Annoying click every 2 seconds, high CPU usage, ... when running on battery power

Bug #973816 reported by Maarten Baert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ALSA Tray
New
Undecided
Unassigned

Bug Description

I noticed alsa-tray causes an annoying click roughly every 2 seconds when my laptop is running on battery power. It also uses far more CPU time (peaks of 100% usage right before every click). The program reacts extremely slowly to any change in volume, and the slider is almost unusable.

I think some kind of power management system is repeatedly switching the sound card on and off. I tried replacing (almost) all temporary mixer objects with one persistent object, so the mixer isn't opened and closed all the time, and this seems to fix the problem.

Note: the line numbers in the diff file may not be correct, because I already made some other changes to fix another bug:
https://bugs.launchpad.net/alsa-tray/+bug/970767

Revision history for this message
Maarten Baert (maarten-baert) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.