Bug 404373

Summary: Audio Volume level settings not saved across logins.
Product: [Unmaintained] plasma-pa Reporter: Fred Wells <fredcwells>
Component: generalAssignee: David Rosca <nowrep>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fred Wells 2019-02-14 22:43:26 UTC
SUMMARY
Audio Volume level settings not saved across logins.

STEPS TO REPRODUCE
1. Login to KDE
2. Adjust audio volume to new level
3. Logout & Login again


OBSERVED RESULT

Volume still set to initial level.


EXPECTED RESULT

Volume level should be at the new level.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.13

ADDITIONAL INFORMATION

Volume level at login is fixed at 40%.   At one point it was fixed at 20% and somehow changed to 40% with no clear understanding why.
Comment 1 David Rosca 2019-02-15 10:52:02 UTC
You need to enable module-device-restore and if you want also module-stream-restore Pulseaudio modules.
Comment 2 Fred Wells 2019-02-15 18:16:13 UTC
How is that accomplished?  There are no user accessible options to enable any PA modules in KDE that I can find.
Comment 3 Fred Wells 2019-02-15 18:29:37 UTC
So, I managed to find pacmd enable-module for this purpose.  Of course, this is not a general user solution even if it worked, which it doesn't. :(

These modules are now enabled, as indicated here...
$ pacmd list-modules  | grep restore
        name: <module-device-restore>
                module.description = "Automatically restore the volume/mute state of devices"
        name: <module-stream-restore>
                module.description = "Automatically restore the volume/mute/device state of streams"
        name: <module-card-restore>
                module.description = "Automatically restore profile of cards"
        name: <module-default-device-restore>
                module.description = "Automatically restore the default sink and source"
Comment 4 David Rosca 2019-02-15 18:47:34 UTC
If you have those modules loaded then it should work.
plasma-pa is just volume control application, it doesn't handle anything else (including restoring old volume), that's PulseAudio's job.