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 2 selecting I also had to open sound settings window.
Btw, maybe try to set priority=99 for hdmi-output-1.conf? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895665 Title: PulseAudio automatically switches from HDMI 2 after display sleep To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1895665/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs