By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1505

Summary: kmix : icon does not change when mute is checked or unchecked
Product: TDE Reporter: Francois Andriot <albator78>
Component: tdemultimediaAssignee: Michele Calgaro <michele.calgaro>
Status: RESOLVED DUPLICATE    
Severity: normal CC: albator78, bugwatch, darrella, michele.calgaro, q4os, slavek.banko
Priority: P5    
Version: 3.5.13.x [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2247    
Attachments: kmix 3.5.13.2 : fix icon change on muting/unmuting

Description Francois Andriot 2013-05-10 15:08:10 CDT
How to reproduce:
Run kmix
Right click on icon in systray.
Click Mute

Actual result: the icon remains the same
Expected result: the icon should change to reflect the new state (muted or unmuted)
Comment 1 Francois Andriot 2013-05-10 15:09:41 CDT
Created attachment 1254 [details]
kmix 3.5.13.2 : fix icon change on muting/unmuting
Comment 2 Slávek Banko 2013-05-11 07:51:06 CDT
It's strange - for me it works correctly without this patch.
Comment 3 Slávek Banko 2013-05-12 08:34:52 CDT
Fixed in GIT hash c4ec71ca.
Comment 4 Darrell 2013-05-13 13:03:53 CDT
The kmix icon already toggles correctly on my R14 GIT system without the patch.
Comment 5 Francois Andriot 2013-05-21 15:21:07 CDT
I re-open this bug since the patch, while helping, does not solve the root cause.

On my laptop computer, I have a "mute" button.
When I press the "mute" button, the kmix icon is not updated.
The sound is correctly muted, the right-click in kmix icon shows that "Mute" is checked, but the icon is still the "unmuted" icon.
If I close kmix then reopen, I have the correct icon. But after startup, the icon is never updated again.
Comment 6 Francois Andriot 2013-05-21 16:00:55 CDT
OK I've found it's related to using Pulseaudio. Yes I'm using Pulseaudio and wanting to keep it :-)

How to reproduce on my computer:
1) Stop kmix (if running), and start pulseaudio (if not running)
2) Delete ~/.trinity/share/config/kmix*
3) Run kmix
4) Try mute/unmute: Sound is muted/unmuted correclty (I can see that pulseaudio output is muted using pulseaudio specific utility), but Kmix icon is not refreshed.

Now stop kmix.
Check "kmixrc". It says (among others):
  MasterMixer=ALSA::PulseAudio:1

Check "kmixctrlrc". It says (among others):

[MixerPulseAudio.Dev0]
is_muted=0
is_recsrc=0
name=Master
volumeL=21952
volumeR=29274

[MixerPulseAudio.Dev1]
is_muted=0
is_recsrc=0
name=Capture
volumeLCapture=0
volumeRCapture=0

So here we see that "Dev0" is Master, and "Dev1" is "Capture".
So why does "kmixrc" use "ALSA::Pulseaudio::1" as default master ??? It should have selected "ALSA::Pulseaudio::0" ...


Now set KMIX Master channel to "HDA intel / Master".
Instantly (no restart required), everything works fine. including the icon refresh. (of course sound control does not affect Pulseaudio now but Alsa directly ...)


And now the weirdest thing !
Without quitting Kmix, switch again Master channel to "Pulseaudio/ master".
And then it works perfectly. Kmix controls pulseaudio output (confirmed via PA utility) AND the kmix icon is correclty updated....
If I close kmix then open it again, the icon-not-refreshing issue is back ...
Comment 7 Michele Calgaro 2014-04-12 08:31:20 CDT
Changing status back to NEW for too long inactivity
Comment 8 Francois Andriot 2014-04-12 12:09:42 CDT
The actual problem is the lack of Pulseaudio support in KMix.
When KMix uses Pulseaudio's alsa redirection, the bug occurs.
When disabling entirely pulseaudio and using real Alsa, the bug does not occur.
Comment 9 Q4OS Team 2019-10-11 05:15:08 CDT
I can confirm this bug as exactly as described in the OP. I guess it's related to Pulseaudio, as described in the comment #6 https://bugs.trinitydesktop.org/show_bug.cgi?id=1505#c6
Comment 10 Michele Calgaro 2020-05-25 00:05:18 CDT
Duplicate of bug 3110, which has now been fixed.

*** This bug has been marked as a duplicate of bug 3110 ***
Comment 11 Michele Calgaro 2020-05-25 00:06:57 CDT
In addition to this, inital support for PulseAudio has been added into R14.1.0 and more work is planned for R14.2.0.
See bug 3052 for a nice summary (https://bugs.pearsoncomputing.net/show_bug.cgi?id=3052#c5)