[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 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

[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 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

[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/pulseaudio/+bug/1888598/comments/12 
and 
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1888598/comments/32

-- 
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

[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
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

Re: [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
- this resolves the main part of the issue, but sound still left on
internal analog audio).

On Wed, Sep 16, 2020 at 12:30 PM Hui Wang <1895...@bugs.launchpad.net>
wrote:

> 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 subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1895665
>
> Title:
>   PulseAudio automatically switches from HDMI 2 after display sleep
>
> Status in pulseaudio package in Ubuntu:
>   Incomplete
>
> Bug description:
>   I have an Nvidia based video card that has an HDMI output + a
> DisplayPort output.
>   DisplayPort output audio is listed as "Digital Stereo (HDMI)" and HDMI
> output is listed as "Digital Stereo (HDMI 2)".
>
>   I prefer to use "Digital Stereo (HDMI 2)".
>   But after each display sleep (screen lock for example) audio is switched
> to built in audio
>
>   ProblemType: Bug
>   DistroRelease: Ubuntu 20.04
>   Package: pulseaudio 1:13.99.1-1ubuntu3.6
>   ProcVersionSignature: Ubuntu 5.4.0-47.51-generic 5.4.55
>   Uname: Linux 5.4.0-47-generic x86_64
>   NonfreeKernelModules: nvidia_modeset nvidia
>   ApportVersion: 2.20.11-0ubuntu27.8
>   Architecture: amd64
>   CasperMD5CheckResult: skip
>   CurrentDesktop: XFCE
>   Date: Tue Sep 15 14:56:58 2020
>   InstallationDate: Installed on 2020-06-20 (86 days ago)
>   InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64
> (20200423)
>   SourcePackage: pulseaudio
>   UpgradeStatus: No upgrade log present (probably fresh install)
>   dmi.bios.date: 11/11/2019
>   dmi.bios.vendor: Dell Inc.
>   dmi.bios.version: 1.11.1
>   dmi.board.name: 0CNDTP
>   dmi.board.vendor: Dell Inc.
>   dmi.board.version: A01
>   dmi.chassis.type: 10
>   dmi.chassis.vendor: Dell Inc.
>   dmi.modalias:
> dmi:bvnDellInc.:bvr1.11.1:bd11/11/2019:svnDellInc.:pnG55590:pvr:rvnDellInc.:rn0CNDTP:rvrA01:cvnDellInc.:ct10:cvr:
>   dmi.product.family: GSeries
>   dmi.product.name: G5 5590
>   dmi.product.sku: 08EA
>   dmi.sys.vendor: Dell Inc.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1895665/+subscriptions
>

-- 
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

[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
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

[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 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

[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-connect.so
  load-module module-switch-on-connect
  .endif

Then reboot.


** Changed in: pulseaudio (Ubuntu)
   Status: New => Incomplete

-- 
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

[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 to 59, then reboot and redo the test.

-- 
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