<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>272844</bug_id>
          
          <creation_ts>2011-05-09 12:26:30 +0000</creation_ts>
          <short_desc>Muted sound on system start up when &quot;Restore volumes at login&quot; option is turned on</short_desc>
          <delta_ts>2012-04-25 22:41:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmix</product>
          <component>Backend: Pulseaudio</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>249180</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lionlegion</reporter>
          <assigned_to name="Colin Guthrie">colin</assigned_to>
          <cc>esken</cc>
    
    <cc>greenMan18523</cc>
    
    <cc>heri+kde</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1117017</commentid>
    <comment_count>0</comment_count>
    <who name="">lionlegion</who>
    <bug_when>2011-05-09 12:26:30 +0000</bug_when>
    <thetext>Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

Kmix version 3.8

When &quot;Restore volumes at login&quot; checkbox is marked, each time after reboot the sound is muted. It can be easily unmuted with any of the sound controls ( keybord  keys or kmix applet ) but it is annoying.

When you turned off that checkmark - everything seems to be fine. In this case the sound at start up is exactly at the same level as it was before reboot ( at least at single user environment ) 

This bug appeared after upgrade from Kubuntu 10.10 to Kubuntu 11.04

Reproducible: Always

Steps to Reproduce:
Go to KMix settings
Check &quot;Restore volumes at login&quot; option
Save settings
Reboot

Actual Results:  
The sound is muted at startup

Expected Results:  
The sound to be at the same level as before reboot

OS: Linux (x86_64) release 2.6.38-8-generic
Compiler: cc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1134327</commentid>
    <comment_count>1</comment_count>
    <who name="George">greenMan18523</who>
    <bug_when>2011-06-23 18:15:59 +0000</bug_when>
    <thetext>I can confirm this.
KDE 4.6.4, rpms for opensuse 11.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154762</commentid>
    <comment_count>2</comment_count>
    <who name="Christian Esken">esken</who>
    <bug_when>2011-08-17 21:07:32 +0000</bug_when>
    <thetext>Can you try to change the volume levels, and the quit KMix once (Ctrl-q). Quitting should definitely save the volume levels (but make sure you have volume restoring enabled in KMix). If those volume levels are restored on your next login, you will have at least an workaround. Please let me know once you tried that.

You can find out whether the volume levels were changed by playing around with the volume levels and then using the volume restorer manually in a Konsole window:

kmixctrl -s      # To save
kmixctrl -r      # To restore

Please note there might be other applications messing around with the sound volume, go example  the Flashplayer (often used in a Web browser). But also any Multimedia application might be changing the volume after KMix has done it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1170994</commentid>
    <comment_count>3</comment_count>
    <who name="">lionlegion</who>
    <bug_when>2011-10-07 21:29:30 +0000</bug_when>
    <thetext>I tried to investigate problem using console commands that you supplied.
And I noticed that kmix saves and restore volume level only of master channel. In general it doesn&apos;t seem to be correct and evidently causes this problem. When computer have few audio channels all their volume levels should be saved and restored.

My laptop has 2 audio channels:
1) HDMI output ( not used so is always muted )
2) Internal speakers

I noticed that volume of internal laptop speakers is muted at start up only if HDMI volume is muted on computer shut down.

I think that when I shut down laptop internal speakers audio devices is being unplugged/umounted first. So Phonon fallback to another that is still active and it became master channel. So kmix saves volume level of one channel and restores it to completely another one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171094</commentid>
    <comment_count>4</comment_count>
    <who name="Christian Esken">esken</who>
    <bug_when>2011-10-08 10:21:14 +0000</bug_when>
    <thetext>KMix saves and restores all controls. Seems to be a soundcard related issue.

For further insight into this, please post the following information:

- Which sound backend is used. Please copy the output from
    KMix menu =&gt; Help =&gt; Hardware information

- The ouput of &quot;amixer&quot; (or &quot;amixer -c 1&quot; or any other number that corresponds to the affected soundcard).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171203</commentid>
    <comment_count>5</comment_count>
      <attachid>64340</attachid>
    <who name="">lionlegion</who>
    <bug_when>2011-10-08 15:52:21 +0000</bug_when>
    <thetext>Created attachment 64340
Output of &apos;amixer -c 0&apos; command</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171208</commentid>
    <comment_count>6</comment_count>
    <who name="">lionlegion</who>
    <bug_when>2011-10-08 16:03:18 +0000</bug_when>
    <thetext>KMix menu =&gt; Help =&gt; Hardware information:

Sound drivers supported: PulseAudio + ALSA + OSS
Sound drivers used: PulseAudio

For output of &apos;amixer -c 0&apos; please see upper attachment


Since you mentioned that kmix should save all controls I tried to double check.
I had 3 output devices during my test
1) HDMI output ( not used so is always muted )
2) Internal speakers
3) Wireless speaker connected  via USB dongle

I did
1) kmixctrl -s
2) Change volume levels of all 3 channels
3) kmixctrl -r

And it always restores only level of &apos;Internal speakers&apos; channel for me. Two other volume controls are not being affected by &apos;kmixctrl -r&apos; command.
It works this way despite which one is set as master channel. So my previous guess about master channel issue is really incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206794</commentid>
    <comment_count>7</comment_count>
    <who name="Christian Esken">esken</who>
    <bug_when>2011-12-30 18:37:24 +0000</bug_when>
    <thetext>I see you are using Pulseaudio as Backend. Probably KMix volume restoration (kmixctrl) interferes with the one built in Pulseaudio. In theory this should not happen, as kmixctrl will/should also use Pulsaudio.
This behavior has also been reported in a different bug report. I will look it up later and merge them if applicable. I might automatically disable volume restoration when Pulseaudio gets activated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249655</commentid>
    <comment_count>8</comment_count>
    <who name="Christian Esken">esken</who>
    <bug_when>2012-04-25 21:33:34 +0000</bug_when>
    <thetext>I think this might be the same issue as the one from bug 249180. I will not directly merge both bugs, but assign it over to the Pulseaudio backend maintainer, so he can either merge them, not merge them or give them back to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249683</commentid>
    <comment_count>9</comment_count>
    <who name="Colin Guthrie">colin</who>
    <bug_when>2012-04-25 22:41:21 +0000</bug_when>
    <thetext>Yeah I think this is ultimately a dupe.

The issue was that kmixctl (a command line app) didn&apos;t recognise PulseAudio as running and thus &quot;restored&quot; volumes (normally if PulseAudio is detected, it should refuse to restore volumes - just like if the tick boxes were always turned off) Sadly, the volumes were *saved* from kmix (the GUI app) which DID detect PA properly and thus didn&apos;t ever save anything.

Thus kmixctl would always restore null or default volumes which have no relation to the previous volume.

This should now be fixed in kmix 4.8.3

*** This bug has been marked as a duplicate of bug 249180 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>64340</attachid>
            <date>2011-10-08 15:52:21 +0000</date>
            <delta_ts>2011-10-08 15:52:21 +0000</delta_ts>
            <desc>Output of &apos;amixer -c 0&apos; command</desc>
            <filename>amixer_output</filename>
            <type>text/plain</type>
            <size>2334</size>
            <attacher>lionlegion</attacher>
            
              <data encoding="base64">U2ltcGxlIG1peGVyIGNvbnRyb2wgJ01hc3RlcicsMAogIENhcGFiaWxpdGllczogcHZvbHVtZSBw
dm9sdW1lLWpvaW5lZCBwc3dpdGNoIHBzd2l0Y2gtam9pbmVkIHBlbnVtCiAgUGxheWJhY2sgY2hh
bm5lbHM6IE1vbm8KICBMaW1pdHM6IFBsYXliYWNrIDAgLSA2NAogIE1vbm86IFBsYXliYWNrID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