Bug 477620

Summary: Logout/in doesn't preserve sound speakers or microphone sound volume (pipewire)
Product: [I don't know] kde Reporter: Anthony Fieroni <bvbfan>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: isma.af, me, nate, nowrep, postix, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Anthony Fieroni 2023-11-27 15:28:16 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Make sound volume e.g. 100, microphone 30
2. Logout/in
3. Volume is random 40 or so, microphone is 100 or random

OBSERVED RESULT
After logout/in sound volume and microphone volume are not restored correctly


EXPECTED RESULT
After logout/in sound volume and microphone volume to be restored correctly

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.25.9
(available in About System)
KDE Plasma Version: 5.25.9
KDE Frameworks Version: 5.112
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Comment 1 Harald Sitter 2024-02-12 00:32:35 UTC
I don't think plasma-pa is in charge of remembering volume, that'd be pipewire.
Comment 2 Anthony Fieroni 2024-06-27 18:59:52 UTC
Moved to since SDDM doesn't present. https://wiki.debian.org/PipeWire#Device_volume_for_SDDM_users_is_not_restored_on_login explains the problem, the workaround isn't good, it needs fix at SDDM side.
Comment 3 postix 2024-11-13 12:37:57 UTC
The output volume stays the same for me, but the input microphone volume always changes to 100% on reboot / relogin or
`systemctl restart --user pipewire` or `systemctl restart --user wireplumber` using

pipewire 2.1.6
wireplumber 0.5.5
Fedora 41 / Tumbleweed with Plasma 6.2.3

See also

[1] https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4363 by Ratijas 
> Microphone sensitivity resets to 100% when changing input devices

[2] https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/744 by Nate
> Volume or recording levels of audio devices reproducibly change to undesirable values under certain circumstances
Comment 4 Nate Graham 2024-11-13 15:22:24 UTC
Yeah, this is one of those or a similar upstream issue.