Re: [pulseaudio-discuss] Inserting headphone "locks" audio
On Sun, Aug 06, 2023 at 07:55:22AM -0700, John Oliver wrote: > On Sat, Aug 5, 2023 at 11:23 PM Sean Greenslade > wrote: > > I suspect what you will need to do is to make sure that the internal > > card (likely the top one in pavucontrol) profile is set to your correct > > HDMI port, and then select that card as the default in the Output > > Devices tab. Some applications may not respect the default, but you can > > move them over to the internal card by using the drop-down in the > > playback tab. > > How would I do that? Sorry, I know next to nothing about this stuff. In pavucontrol, the relevant tabs are "Playback" and "Output Devices". The Playback tab shows all applications that are currently outputting sound. When you have multiple sound cards available, each application line will also have a drop-down box to select which sound card to send the application's sound to. This drop-down will change the output on-the-fly. On the Output Devices tab, you will have a line for every sound card currently attached to your system. At the far right of each line, there is a group of three buttons. One is the card mute, one is the Left-Right volume unlock, and the last one is the "Set as Default" button. Only one card in your system can be selected as the default. You generally only need to select your desired default once, then Pulse should remember that selection going forward. That said, not all applications respect the default. Some pulse-aware applications have their own internal settings for which card they select, and most applications will return to the card they last used if you had manually moved it to a different card in the Playback tab. Hopefully this helps. Let me know if anything is still unclear. --Sean
Re: [pulseaudio-discuss] Inserting headphone "locks" audio
How would I do that? Sorry, I know next to nothing about this stuff. On Sat, Aug 5, 2023 at 11:23 PM Sean Greenslade wrote: > > I suspect what you will need to do is to make sure that the internal > card (likely the top one in pavucontrol) profile is set to your correct > HDMI port, and then select that card as the default in the Output > Devices tab. Some applications may not respect the default, but you can > move them over to the internal card by using the drop-down in the > playback tab. >
Re: [pulseaudio-discuss] Inserting headphone "locks" audio
On Sat, Aug 05, 2023 at 10:55:36AM -0700, John Oliver wrote: > > I would guess that the dock shows up as a separate audio device from the > > internal sound card on the laptop, hence the two options listed in > > pavucontrol. But to confirm, can you post the output you get from the > > following command: > > > > $ pactl list cards > > > > That should give some more detail on what the two audio devices are. > > Card #0 > Name: alsa_card.pci-_00_1f.3-platform-skl_hda_dsp_generic > Driver: module-alsa-card.c > Owner Module: 22 > Properties: > alsa.card = "0" > alsa.card_name = "sof-hda-dsp" > alsa.long_card_name = "LENOVO-21CB000HUS-ThinkPadX1CarbonGen10" OK, so card #0 is indeed your internal card, and card #6 is the dock. These are the two cards you see in pavucontrol. > Card #6 > Name: > alsa_card.usb-DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_10085535-02 > Driver: module-alsa-card.c > Owner Module: 32 > Properties: > alsa.card = "1" > alsa.card_name = "ThinkPad Hybrid USB-C with USB-" > alsa.long_card_name = "DisplayLink ThinkPad Hybrid USB-C with USB- at > usb-:00:0d.0-3.2, super spee" > alsa.driver_name = "snd_usb_audio" > device.bus_path = "pci-:00:0d.0-usb-0:3.2:1.2" > sysfs.path = > "/devices/pci:00/:00:0d.0/usb2/2-3/2-3.2/2-3.2:1.2/sound/card1" > udev.id = > "usb-DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_10085535-02" > device.bus = "usb" > device.vendor.id = "17e9" > device.vendor.name = "DisplayLink" > device.product.id = "6015" > device.product.name = "ThinkPad Hybrid USB-C with USB-A Dock" > device.serial = "DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_10085535" > device.string = "1" > device.description = "ThinkPad Hybrid USB-C with USB-A Dock" > module-udev-detect.discovered = "1" > device.icon_name = "audio-card-usb" > Profiles: This section is what corresponds to the entries in the dropdowns in the configuration tab of pavucontrol. > input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: > 65, available: no) > input:iec958-stereo: Digital Stereo (IEC958) Input (sinks: 0, sources: 1, > priority: 32823, available: yes) > output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: > 39268, available: yes) > output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, > sources: 1, priority: 6565, available: yes) > output:analog-stereo+input:iec958-stereo: Analog Stereo Output + Digital > Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 39323, available: > yes) > output:analog-surround-21: Analog Surround 2.1 Output (sinks: 1, sources: > 0, priority: 34068, available: yes) > output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + > Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: yes) > output:analog-surround-21+input:iec958-stereo: Analog Surround 2.1 Output + > Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34123, > available: yes) > output:analog-surround-41: Analog Surround 4.1 Output (sinks: 1, sources: > 0, priority: 34068, available: yes) > output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + > Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: yes) > output:analog-surround-41+input:iec958-stereo: Analog Surround 4.1 Output + > Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34123, > available: yes) > output:analog-surround-50: Analog Surround 5.0 Output (sinks: 1, sources: > 0, priority: 33968, available: yes) > output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + > Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: yes) > output:analog-surround-50+input:iec958-stereo: Analog Surround 5.0 Output + > Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34023, > available: yes) > output:analog-surround-51: Analog Surround 5.1 Output (sinks: 1, sources: > 0, priority: 34068, available: yes) > output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + > Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: yes) > output:analog-surround-51+input:iec958-stereo: Analog Surround 5.1 Output + > Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34123, > available: yes) > output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, > priority: 38268, available: yes) > output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + > Analog Stereo Input (sinks: 1, sources: 1, priority: 5565, available: yes) > output:iec958-stereo+input:iec958-stereo: Digital Stereo Duplex (IEC958) > (sinks: 1, sources: 1, priority: 38323, available: yes) > off: Off (sinks: 0, sources: 0, priority: 0, available: yes) What I notice here is that none of these profiles mention HDMI / Display Port. So my suspicion is that audio for the HDMI ports is still provided by the built-in audio card, whereas the analog port (headphone jack) on the dock is provided by the dock's USB audio card. I
Re: [pulseaudio-discuss] Inserting headphone "locks" audio
Card #0 Name: alsa_card.pci-_00_1f.3-platform-skl_hda_dsp_generic Driver: module-alsa-card.c Owner Module: 22 Properties: alsa.card = "0" alsa.card_name = "sof-hda-dsp" alsa.long_card_name = "LENOVO-21CB000HUS-ThinkPadX1CarbonGen10" alsa.driver_name = "snd_soc_skl_hda_dsp" device.bus_path = "pci-:00:1f.3-platform-skl_hda_dsp_generic" sysfs.path = "/devices/pci:00/:00:1f.3/skl_hda_dsp_generic/sound/card0" device.bus = "pci" device.vendor.id = "8086" device.vendor.name = "Intel Corporation" device.product.id = "51c8" device.string = "0" device.description = "sof-hda-dsp" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" Profiles: HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 40768, available: yes) off: Off (sinks: 0, sources: 0, priority: 0, available: yes) Active Profile: HiFi Ports: [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, not available) Part of profile(s): HiFi [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, not available) Part of profile(s): HiFi [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, latency offset: 0 usec, not available) Part of profile(s): HiFi [Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown) Part of profile(s): HiFi [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, not available) Part of profile(s): HiFi [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, not available) Part of profile(s): HiFi [In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown) Part of profile(s): HiFi Card #6 Name: alsa_card.usb-DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_10085535-02 Driver: module-alsa-card.c Owner Module: 32 Properties: alsa.card = "1" alsa.card_name = "ThinkPad Hybrid USB-C with USB-" alsa.long_card_name = "DisplayLink ThinkPad Hybrid USB-C with USB- at usb-:00:0d.0-3.2, super spee" alsa.driver_name = "snd_usb_audio" device.bus_path = "pci-:00:0d.0-usb-0:3.2:1.2" sysfs.path = "/devices/pci:00/:00:0d.0/usb2/2-3/2-3.2/2-3.2:1.2/sound/card1" udev.id = "usb-DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_10085535-02" device.bus = "usb" device.vendor.id = "17e9" device.vendor.name = "DisplayLink" device.product.id = "6015" device.product.name = "ThinkPad Hybrid USB-C with USB-A Dock" device.serial = "DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_10085535" device.string = "1" device.description = "ThinkPad Hybrid USB-C with USB-A Dock" module-udev-detect.discovered = "1" device.icon_name = "audio-card-usb" Profiles: input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: no) input:iec958-stereo: Digital Stereo (IEC958) Input (sinks: 0, sources: 1, priority: 32823, available: yes) output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 39268, available: yes) output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes) output:analog-stereo+input:iec958-stereo: Analog Stereo Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 39323, available: yes) output:analog-surround-21: Analog Surround 2.1 Output (sinks: 1, sources: 0, priority: 34068, available: yes) output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: yes) output:analog-surround-21+input:iec958-stereo: Analog Surround 2.1 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34123, available: yes) output:analog-surround-41: Analog Surround 4.1 Output (sinks: 1, sources: 0, priority: 34068, available: yes) output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: yes) output:analog-surround-41+input:iec958-stereo: Analog Surround 4.1 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34123, available: yes) output:analog-surround-50: Analog Surround 5.0 Output (sinks: 1, sources: 0, priority: 33968, available: yes) output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: yes) output:analog-surround-50+input:iec958-stereo: Analog Surround 5.0 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34023, available: yes) output:analog-surround-51: Analog Surround 5.1 Output (sinks: 1, sources: 0, priority: 34068, available: yes) output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: yes) output:analog-surround-51+input:iec958-stereo: Analog Surround 5.1 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 34123, available: yes)
Re: [pulseaudio-discuss] Inserting headphone "locks" audio
On Fri, Aug 04, 2023 at 07:18:30AM -0700, John Oliver wrote: > I have two drop-downs, both titled "Built-in Audio" The top is "Digital > Stereo (HDMI) Output" and the other is "Analog Stereo Duplex" > > I'm not clear on what I would change. The top one has a bunch of other > options, all of which are unplugged and unavailable. The other has three > more options... "Analog Stereo Input", "Analog Stereo Output", and "Off" I would guess that the dock shows up as a separate audio device from the internal sound card on the laptop, hence the two options listed in pavucontrol. But to confirm, can you post the output you get from the following command: $ pactl list cards That should give some more detail on what the two audio devices are. --Sean
Re: [pulseaudio-discuss] Inserting headphone "locks" audio
I have two drop-downs, both titled "Built-in Audio" The top is "Digital Stereo (HDMI) Output" and the other is "Analog Stereo Duplex" I'm not clear on what I would change. The top one has a bunch of other options, all of which are unplugged and unavailable. The other has three more options... "Analog Stereo Input", "Analog Stereo Output", and "Off" On Fri, Aug 4, 2023 at 12:20 AM Sean Greenslade wrote: > On Thu, Aug 03, 2023 at 08:09:53AM -0700, John Oliver wrote: > > I have a ThinkPad X1 running Ubuntu 22.04 and a "ThinkPad Hybrid USB-C > with > > USB-A Dock" If I insert a headphone jack to the docking station, I can > > only hear sound coming from the headphones... I cannot switch to HDMI. > At > > my last job I had another ThinkPad running RHEL 8 and a docking station, > > and I was able to leave my headphones plugged in and switch to HDMI. How > > can I fix? The docking station is tucked away, and it's a bit of a chore > > to plug the headphones in and out. > > Some audio interfaces have the HDMI and the analog ports exposed as > different profiles of the same card. If you run pavucontrol and go into > the Configuration tab, check what is listed in the Profile drop-down for > your audio card. The profile that corresponds to using only the analog > ports is usually called "Analog Stereo Duplex". The HDMI options (if > present) will have various names depending on the number of ports and > which channel configurations your card supports. > > Changing the selection in that dropdown should live re-route any playing > audio to the selected port. Try selecting some of the HDMI options and > see if that gets the audio routed the way you want. > > --Sean > >
Re: [pulseaudio-discuss] Inserting headphone "locks" audio
On Thu, Aug 03, 2023 at 08:09:53AM -0700, John Oliver wrote: > I have a ThinkPad X1 running Ubuntu 22.04 and a "ThinkPad Hybrid USB-C with > USB-A Dock" If I insert a headphone jack to the docking station, I can > only hear sound coming from the headphones... I cannot switch to HDMI. At > my last job I had another ThinkPad running RHEL 8 and a docking station, > and I was able to leave my headphones plugged in and switch to HDMI. How > can I fix? The docking station is tucked away, and it's a bit of a chore > to plug the headphones in and out. Some audio interfaces have the HDMI and the analog ports exposed as different profiles of the same card. If you run pavucontrol and go into the Configuration tab, check what is listed in the Profile drop-down for your audio card. The profile that corresponds to using only the analog ports is usually called "Analog Stereo Duplex". The HDMI options (if present) will have various names depending on the number of ports and which channel configurations your card supports. Changing the selection in that dropdown should live re-route any playing audio to the selected port. Try selecting some of the HDMI options and see if that gets the audio routed the way you want. --Sean