Bug 383787 - Notification volume slider jumps to zero after change
Summary: Notification volume slider jumps to zero after change
Status: RESOLVED DUPLICATE of bug 367688
Alias: None
Product: plasma-pa
Classification: Plasma
Component: kcm (show other bugs)
Version: 5.10.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-21 12:23 UTC by tuxfusion
Modified: 2017-09-24 14:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.11


Attachments
debug (1016 bytes, patch)
2017-08-21 13:55 UTC, David Rosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tuxfusion 2017-08-21 12:23:34 UTC
Notification sounds where always 0 or muted on this machine. I want to use them now. Increasing the volume slider of the notifications inside system settings makes the slider jump back to zero all the time. In that event no error is displayed and no error is printed in console. However, on loading of the module, there are quite some errors in the console. None of which showed a solution during research:

Errors:
https://pastebin.com/RzHjpd5v
Comment 1 Kai Uwe Broulik 2017-08-21 12:28:47 UTC
I experienced the same. Notification sounds immediately mute themselves against after touching the slider.
Comment 2 tuxfusion 2017-08-21 13:42:57 UTC
Update: I could fix the behavior with pavucontrol. When opening it, it showed "Notifications" muted. I unmuted it and raised the volume. Notification sounds now play and I can adjust the volume both from, systemsettings and pavucontrol. I have no idea why systemsettings was not able to alter the volume values and pavucontrol could.
Comment 3 David Rosca 2017-08-21 13:46:32 UTC
This should have been already fixed, see bug 367688.

I can't myself reproduce it.
Comment 4 Kai Uwe Broulik 2017-08-21 13:49:08 UTC
I reproduced it on Plasm 5.10.4, though. I'm also seeing the same issue with neon dev edition git master of a couple of days old.
Comment 5 David Rosca 2017-08-21 13:55:28 UTC
Created attachment 107423 [details]
debug

Can you apply this patch and send me the output when changing the volume?
Comment 6 Patrick Silva 2017-08-21 15:15:35 UTC
I confirm this bug on neon dev unstable.
Comment 7 Kai Uwe Broulik 2017-08-23 12:04:47 UTC
I unmuted, after that I moved the slider to 40%:

set volume 39637
write changes 0 false ""
set muted false
set volume 0
write changes 0 false ""
set muted true
write changes 0 true ""
set muted true

As you can see it sets volume to 0 again afterwards.
Comment 8 David Rosca 2017-08-23 13:00:39 UTC
Git commit 792248092d25512ef2fe37ff4c79c02242832626 by David Rosca.
Committed on 23/08/2017 at 12:59.
Pushed by drosca into branch 'master'.

StreamRestore: Always set channel count to 1

This is what pavucontrol is doing too.
FIXED-IN: 5.11

Differential Revision: https://phabricator.kde.org/D7485

M  +13   -14   src/streamrestore.cpp
M  +1    -2    src/streamrestore.h

https://commits.kde.org/plasma-pa/792248092d25512ef2fe37ff4c79c02242832626
Comment 9 Nate Graham 2017-09-24 14:01:54 UTC

*** This bug has been marked as a duplicate of bug 367688 ***