Bug 436662 - Default Audio Device (profile) does not persist across login
Summary: Default Audio Device (profile) does not persist across login
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_pulseaudio (show other bugs)
Version: 5.21.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-05 23:33 UTC by Chef Niko
Modified: 2024-06-07 08:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chef Niko 2021-05-05 23:33:50 UTC
SUMMARY
When I log in to my system, the default audio device is not selected correctly. It is set to the original device instead of the device which was active at log out.

STEPS TO REPRODUCE
1. Change the default audio device (and/or profile) to something different than what is initially selected in System Settings -> Audio.
2. Log out
3. Log in

OBSERVED RESULT
Default audio device is reset to the original device.

EXPECTED RESULT
Default audio device is the same when logging in, which it was when logging out. OR an additional option to set default device on log in.

SOFTWARE/OS VERSIONS
Kubuntu 21.04
Plasma: 5.21.4
Frameworks: 5.80.0
QT: 5.15
Kernel 5.11.0-16-generic x64 

ADDITIONAL INFORMATION
After manually editing the pulse configuration file '~/.config/pulse/default.pa', the desired audio device is active on login. However, this should be saved using KDE's system settings window, and not need to be done manually via editing config files.

This has been a problem for a while now, but it is getting better. In the last version of KDE I was running, it didn't even show my desktop speakers after a reboot until I restarted pulseaudio. Now they show up initially, so that's good progress, but the default device after a login should be the same as before the logout.

I don't know if this is related, but I am also having a problem where quite frequently (almost daily, but not every login or reboot) the default profile on my video card is reset. I.e. the active profile changes to 'Digital Stereo (HDMI 5) Output', instead of 'Digital Stero (HMDI 6) Output', which is what I repeatedly set it to.
Comment 1 David Edmundson 2021-05-05 23:39:55 UTC
KDE's pulseaduio UI does not save it's own setup, instead we rely on pulseaudio to save settings.

Please report to pulseaudio that the last state is not saved and restored and link here.
Comment 2 Chef Niko 2021-05-05 23:50:52 UTC
Thank you for the information.

When I set the default profile with pacmd, the default device does persist across logins, which is another fix, or at least workaround. 

E.g.
`($) ~: pacmd set-default-sink alsa_output.pci-0000_04_00.0.analog-stereo`

Please confirm if you would still like me to file a bug with pulseaudio, and if so, please update me with what KDE's pulseaudio UI is actually doing, so I can include that information.