<?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>380857</bug_id>
          
          <creation_ts>2017-06-05 08:58:35 +0000</creation_ts>
          <short_desc>Respect playback device output on systems with pulseaudio (flat-volumes = yes)</short_desc>
          <delta_ts>2017-06-06 12:37:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>phonon-backend-vlc</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>345651</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>0</everconfirmed>
          <reporter name="Leonard Lausen">leonard</reporter>
          <assigned_to name="Harald Sitter">sitter</assigned_to>
          <cc>bcooksley</cc>
    
    <cc>fabo</cc>
    
    <cc>jb</cc>
    
    <cc>myriam</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>romain.perier</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>1680647</commentid>
    <comment_count>0</comment_count>
    <who name="Leonard Lausen">leonard</who>
    <bug_when>2017-06-05 08:58:35 +0000</bug_when>
    <thetext>flat-volumes, which is enabled by default in PulseAudio (though many distributions disable it) scales the device-volume with the volume of the &quot;loudest&quot; application. Applications, unaware of this feature, can set their volume to 100% at startup, potentially blowing the speakers or ears of the user.

Unfortunately KDE applications do exactly that, which is not only a health hazard for users but also relatively hard to debug for users unfamiliar with PulseAudio.

KDE Applications should therefore at startup never set their output volume to 100%, but simply to the volume of the playback device to which they are outputting.

I noticed this behaviour in particular with the error messages generated by Dolphin and Okular, but it probably affects more applications.

Related bugs are #346614, #352312, #352176 and #327723</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1680859</commentid>
    <comment_count>1</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2017-06-06 11:31:07 +0000</bug_when>
    <thetext>Which phonon backend are you using?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1680863</commentid>
    <comment_count>2</comment_count>
    <who name="Leonard Lausen">leonard</who>
    <bug_when>2017-06-06 11:49:42 +0000</bug_when>
    <thetext>The package is currently build with the following USE flags (gentoo):

➜  ~ equery uses phonon    
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-libs/phonon-4.9.1-r1:
 U I
 - - abi_x86_32 : 32-bit (x86) libraries
 - - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                  https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 + - designer   : Install plugin for dev-qt/designer
 - - gstreamer  : Add support for media-libs/gstreamer (Streaming media)
 + + pulseaudio : Add support for PulseAudio sound server
 + + qt4        : Add support for the Qt GUI/Application Toolkit version 4.x
 + + qt5        : Add support for the Qt 5 application and UI framework
 + - vlc        : Install VLC Phonon backend

I.e. if I understand correctly it should use the pulseaudio backend.

https://packages.gentoo.org/packages/media-libs/phonon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1680864</commentid>
    <comment_count>3</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2017-06-06 11:56:04 +0000</bug_when>
    <thetext>Run `kcmshell5 phonon` go to the backend tab. What&apos;s the first backend in the list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1680869</commentid>
    <comment_count>4</comment_count>
    <who name="Leonard Lausen">leonard</who>
    <bug_when>2017-06-06 12:05:46 +0000</bug_when>
    <thetext>Thanks for the clarification. It turns out only the vlc backend is
listed there..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1680877</commentid>
    <comment_count>5</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2017-06-06 12:37:48 +0000</bug_when>
    <thetext>The problem is that the vlc backend right now creates all PA streams as category=video (or rather libvlc does and currently has no way to change that), which results in the stream getting a default volume (100%) which combined with flat volumes pushes everything up.
If vlc could set category=notification it would get the default volume inherited from the global notification volume as seen in plasma-pa or pavucontrol rather than max volume.

This is fixed in vlc master (to be vlc 3) and phonon-vlc master. Unfortunately, until that gets released we cannot do much about this.

As far as specific applications (i.e. not notifications) are concerned you&apos;ll have to file bugs against the specific applications. If an application wants to explicitly set the volume to 100% that is the application&apos;s business.

*** This bug has been marked as a duplicate of bug 345651 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>