[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-17 Thread Hui Wang
If you want the hdmi-output to be selected automatically after plugging, you need to manually select it as output once, then pulseaudio will remember uer's preference. Then unplug and replug the monitor, the system will automatically switch to hdmi-output. -- You received this bug notification be

[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-17 Thread Andrii Puhalevich
It seems that it depends on connected monitor. In my case monitor goes to power saving mode after laptop suspend or in few minutes after system lock. So ubuntu switches to analog device after resume/unlock. But its not so critical, because device can be easily changed with tray icon. And for HDMI

[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-17 Thread Hui Wang
I did a test today, plug two monitors to Intel hdmi ports, I chose hdmi2 in the gnome-control-center, suspend and resume, the output device still on the hdmi2, I didn't reproduce the problem. When you have time, please collect the log according to https://bugs.launchpad.net/ubuntu/+source/pulsea

[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-16 Thread Daniel van Vugt
** Changed in: pulseaudio (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/1895665 Title: PulseAudio automatically switches from

Re: [Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-16 Thread Andrii Puhalevich
Right. I just tested: Selected digital device. Selected HDMI 2 for digital device. Disconnected HDMI 2 from laptop (digital device automatically switched to HDMI 1, sound automatically switched to internal analog audio). Connected HDMI 2 to laptop (digital device automatically switched to HDMI 2 -

[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-16 Thread Hui Wang
Do you mean even did the change of #2, the output device still changes to internal analog audio after sleep? Before sleep, you select the hdmi- output-2 manually? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to pulseaudio in U

[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-16 Thread Andrii Puhalevich
After #2 it prefers HDMI 2 when its connected, thanks @hui.wang. But seems that anyway it prefers internal analog audio instead of digital audio. Will observe more to understand new behavior after reboots, suspends and locks. -- You received this bug notification because you are a member of Ubunt

[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-15 Thread Daniel van Vugt
Please try editing /etc/pulse/default.pa and comment out all of this: ### Should be after module-*-restore but before module-*-detect load-module module-switch-on-port-available ### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794) .ifexists module-switch-on-conne

[Touch-packages] [Bug 1895665] Re: PulseAudio automatically switches from HDMI 2 after display sleep

2020-09-15 Thread Hui Wang
I guess your bug is similar to this one: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1888598 Could you please do a test: edit the /usr/share/pulseaudio/alsa-mixer/paths/hdmi-output-0.conf and hdmi-output-1.conf, change the priority in 0.conf to 58 and change the priority in 1.conf t