Re: audio output via DP/hdmi over jack only after restarting xserver?
Paul Davis <[email protected]> Tue, 26 May 2026 17:48:14 -0600
| Newsgroups | gmane.linux.audio.users |
|---|---|
| Message-ID | <CAFa_cK=ZhR1sDy7bM91udzg67azfsgwop+FvrM=9ie5MZHQ98Q@mail.gmail.com> |
--0000000000008e2a5f0652c121be Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable try -d alsa -dhw:0,3 On Tue, May 26, 2026 at 4:29=E2=80=AFPM Peter P. <peterparker-97jfqw80gc5Wk0Htik3J/[email protected]>= wrote: > Hi list, > > I sometimes connect a miniDisplayPort to HDMI adaptor with an X230 > thinkpad. In order to output audio via this connection using jack I have > to restart my Xserver (means: logging out and back into X). > > Here is how I am trying to debug this, first listing the respective > output (card 0, device 0): > $ aplay -l > **** List of PLAYBACK Hardware Devices **** > card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] > Subdevices: 0/1 > Subdevice #0: subdevice #0 > card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2] > > I can start jackd with this output, its options being > $ jackd -v -t2000 -dalsa -dhw:0 -r48000 -p512 -n3 -Xseq -D -Phw:PCH,3 -i2 > -o2 > although there is no monitor connected to this output. > > $ cat /proc/asound/card0/pcm3p/sub0/status > shows the device as running after jackd start. > > Next step: Connecting an external HDMI monitor via a miniDisplayPort > adapter to the > laptop, this makes xrandr show that HDMI1 is connected. > > Enabling the monitor output via xrandr will make aplay -l lists the > monitor model as well: > card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [DELL U2410] > > Playing back audio will not output sound. > If I exit my Xsession and log back in, while jackd keeps running, audio > output suddenly works, and I have no idea why. > > I often have to switch back and forth between HDMI audio and other > outputs but having to log out and back into X is quite cumbersome. > > If anyone has any ideas how I can got about debugging/fixing this > further, I'd be glad to hear! > > best, Peter > --0000000000008e2a5f0652c121be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he= lvetica,sans-serif">try -d alsa -dhw:0,3</div></div><br><div class=3D"gmail= _quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Tue,= May 26, 2026 at 4:29=E2=80=AFPM Peter P. <<a href=3D"mailto:peterparker= @fastmail.com">peterparker-97jfqw80gc5Wk0Htik3J/[email protected]</a>> wrote:<br></div><blockquote= class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so= lid rgb(204,204,204);padding-left:1ex">Hi list,<br> <br> I sometimes connect a miniDisplayPort to HDMI adaptor with an X230<br> thinkpad. In order to output audio via this connection using jack I have<br= > to restart my Xserver (means: logging out and back into X). <br> <br> Here is how I am trying to debug this, first listing the respective<br> output (card 0, device 0):<br> $ aplay -l <br> **** List of PLAYBACK Hardware Devices ****<br> card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]<br= > =C2=A0 Subdevices: 1/1<br> =C2=A0 Subdevice #0: subdevice #0<br> card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]<br> =C2=A0 Subdevices: 0/1<br> =C2=A0 Subdevice #0: subdevice #0<br> card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]<br> =C2=A0 Subdevices: 1/1<br> =C2=A0 Subdevice #0: subdevice #0<br> card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]<br> <br> I can start jackd with this output, its options being<br> $ jackd -v -t2000 -dalsa -dhw:0 -r48000 -p512 -n3 -Xseq -D -Phw:PCH,3 -i2 -= o2<br> although there is no monitor connected to this output.<br> <br> $ cat /proc/asound/card0/pcm3p/sub0/status <br> shows the device as running after jackd start.<br> <br> Next step: Connecting an external HDMI monitor via a miniDisplayPort adapte= r to the<br> laptop, this makes xrandr show that HDMI1 is connected.<br> <br> Enabling the monitor output via xrandr will make aplay -l lists the<br> monitor model as well:<br> card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [DELL U2410]<br> <br> Playing back audio will not output sound.<br> If I exit my Xsession and log back in, while jackd keeps running, audio<br> output suddenly works, and I have no idea why.<br> <br> I often have to switch back and forth between HDMI audio and other<br> outputs but having to log out and back into X is quite cumbersome.<br> <br> If anyone has any ideas how I can got about debugging/fixing this<br> further, I'd be glad to hear!<br> <br> best, Peter<br> </blockquote></div> --0000000000008e2a5f0652c121be--