Bug 345651 - Notification volume gets raised to 100% on login
Summary: Notification volume gets raised to 100% on login
Status: RESOLVED UPSTREAM
Alias: None
Product: phonon-backend-vlc
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR major
Target Milestone: 0.8
Assignee: Harald Sitter
URL:
Keywords:
: 352538 363355 380857 (view as bug list)
Depends on:
Blocks: 390394
  Show dependency treegraph
 
Reported: 2015-03-29 12:27 UTC by Wolfgang Bauer
Modified: 2018-02-17 22:01 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Bauer 2015-03-29 12:27:40 UTC
When using the phonon-backend-vlc with PulseAudio, the notication volume gets always reset to 100% at login.
So the next notification sound will be played at 100% volume, which also raises the overall volume to 100% (with the default flat-volume=true).

Also, testing the notification sound in the KCM shows the same behaviour, it always plays the sound at 100% and raises the overall volume.

Reproducible: Always

Steps to Reproduce:
1. set the volume to a sane value in KMix
2. logout and login again
3. wait for a notification sound to play or force one to be played (easy way to reproduce: enable a login sound)

Actual Results:  
Notification gets played at 100% volume, the overall volume gets raised to 100% as well.

Expected Results:  
Notification should be played at a sane volume, the same one as before.

The same problem exists in KDE4 and Plasma5. I'm using Phonon 4.8.1 in KDE4 (4.8.3 in Plasma5) and phonon-backend-vlc 0.8.2.

Not sure if that's related, but without PulseAudio the notication volume control doesn't work at all and notification sounds always play back at 100% (in this case it's less of a problem though as it doesn't change the overall volume)

This still happens with the fix for bug#324975.
A workaround for KDE4 is to _enable_ the volume control though (only necessary in 15.04 of course), and set a lower volume in systemsettings->Application and System Notifications->Playback Settings.
Comment 1 auxsvr 2015-06-09 14:13:21 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Harald Sitter 2015-06-09 15:51:46 UTC
vlc 2.2?
Comment 3 auxsvr 2015-06-09 18:22:34 UTC
Yes.
Comment 4 Harald Sitter 2015-06-09 20:24:56 UTC
http://quickgit.kde.org/?p=phonon-vlc.git&a=commit&h=19e71f5973026e358f75a9adf253905a7efb664c

since phonon-vlc cannot set the stream category to notifications or find out which stream it is supposed to control vlc is able to entirely bypass phonon. nothing we can do about that unfortunately.
Comment 5 Harald Sitter 2016-02-08 13:25:47 UTC
*** Bug 359056 has been marked as a duplicate of this bug. ***
Comment 6 Harald Sitter 2016-02-08 13:29:49 UTC
*** Bug 352538 has been marked as a duplicate of this bug. ***
Comment 7 Janet 2016-02-27 15:15:13 UTC
The easy solution for the user is to dump phonon-backend-vlc and use phonon-backend-gstreamer instead.
Comment 8 Olan 2016-02-29 20:54:39 UTC
With phonon-backend-gstreamer I get no sound when I want to play in Amarok mp3.
Comment 9 Wolfgang Bauer 2016-02-29 22:05:39 UTC
(In reply to Olan from comment #8)
> With phonon-backend-gstreamer I get no sound when I want to play in Amarok
> mp3.

Then install an MP3 plugin for gstreamer, and/or fix your gstreamer installation.

Or stick to vlc and disable/uninstall PulseAudio. Setting "flat-volumes=no" in /etc/pulse/daemon.conf should also improve things with PulseAudio, as it prevents Phonon to change the master volume.

In KDE4 you can also change the notification volume in systemsettings->Applications and System Notifications->Manage Notifications->Playback Settings.

It should also work to change the notifications volume with the temporarily appearing application volume slider that appears in KMix while a notification is playing, I think.
Comment 10 Harald Sitter 2016-05-22 08:34:12 UTC
*** Bug 363355 has been marked as a duplicate of this bug. ***
Comment 11 Harald Sitter 2016-05-24 07:29:52 UTC
*** Bug 363355 has been marked as a duplicate of this bug. ***
Comment 12 Harald Sitter 2016-06-08 13:47:37 UTC
Git commit 001c117c2aa543015140f83184d6fb06728a385f by Harald Sitter.
Committed on 08/06/2016 at 13:38.
Pushed by sitter into branch 'master'.

implement glorious new version AO 10 interface

gives us a category which we can forward to libvlc in 3.0 to set the
pulse role. this resolves the long standing issue of not having
notifications be notifications on the PA side, thus having screwed up
volume.

M  +4    -1    src/CMakeLists.txt
M  +31   -0    src/audio/audiooutput.cpp
M  +3    -0    src/audio/audiooutput.h

http://commits.kde.org/phonon-vlc/001c117c2aa543015140f83184d6fb06728a385f
Comment 13 Harald Sitter 2017-06-06 12:37:48 UTC
*** Bug 380857 has been marked as a duplicate of this bug. ***