[Bug 288992] New: kaccess does not release/suspend pulseaudio sink

JPH jph4dotcom at xs4all.nl
Wed Dec 14 18:38:45 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=288992

           Summary: kaccess does not release/suspend pulseaudio sink
           Product: kde
           Version: 4.7
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: jph4dotcom at xs4all.nl


Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

To save electricity, I wrote a little tool that automatically switches my
external audio amplifier on and of when a sound is played by the system. It is
a little script that queries pulseaudio to decide whether or not to power on
the audio amp. Please refer to
http://wirespeed.xs4all.nl/mediawiki/index.php/PC_energy_savings#External_audio_amp_switch
for details.

After a reboot this tool works for a little while, then it freezes until I kill
kaccess. After killing kaccess the tool works fine again without any other
intervention.

Reproducible: Always

Steps to Reproduce:
I cannot reprocue it manually, but it happpens after every reboot.
1. Fresh boot into Kubuntu 11.10 (or 11.04)
2. Use the system for a while
3. Various sounds are played, the script turns my amp on and off
4. Then after a little while (30 min?) the script freezes
5. At $-prompt: /usr/bin/pacmd list-sinks | grep state
RUNNING

Actual Results:  
After a while it keeps saying:
state: RUNNING

And my electricity bill rises ;o)

Expected Results:  
The state should cycle through SUSPENDED - RUNNING - IDLE - SUSPENDED - ...

When a sound is played:
state: RUNNING

During approx. 3 seconds, when a sound is no longer playing:
state: IDLE

After these 3 seconds with no sound:
state: SUSPENDED

Then state stays SUSPENDED until a new sound is played.

I kill kaccess and the system works fine again from that moment onward. 
Kaccess is not respawned.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list