You are not logged in.
Hi,
I have 2 devices connected to the motherboard: 1 headphone through the headphone jack and 1 external speaker
What I'd like to do is have these two devices connected at the same time then be able to switch between them using pavucontrol
I thought this would be as simple as running something like below to switch between them (or directly through pavucontrol):
pacmd set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output-headphones
pacmd set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output-lineoutBut unfortunately, sound always go to the headphones. The only way to switch to speaker is to unplug the headphones.
Is there a way to fix this?
pacmd list-sinks output
1 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 9959
volume: front-left: 31615 / 48% / -19.00 dB, front-right: 31615 / 48% / -19.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 19.72 ms
max request: 3 KiB
max rewind: 344 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 1
configured latency: 20.00 ms; range is 0.50 .. 2000.00 ms
card: 1 <alsa_card.pci-0000_00_1b.0>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC892 Analog"
alsa.id = "ALC892 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xfe700000 irq 50"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "1c20"
device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Realtek ALC892"
alsa.components = "HDA:10ec0892,14627673,00100302"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: yes)
properties:
analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-headphones>Last edited by devrepublic (2014-03-17 02:28:20)
Offline
Bump. Anyone got ideas on what's wrong with this?
Offline
Do you have "pavucontrol" installed on your systems, this will correct some of the problems.
Our enemies are your enemies, Nick. Disorder, war. It's just a matter of time before a dirty bomb goes off in Moscow, or an EMP fries Chicago. --- Alexander Pierce, Captain America: Winter Soldier
Access Denied! De-cryption failed, override denied all files sealed! --- Triskelion, Shield OS
-----
How to ask questions the smart way
Offline
Yes, I have pavucontrol installed. As I mentioned in my original post, changing the output doesn't do anything -- sound always ends up on the headphones.
Offline
Normally this is the auto-mute feature in alsa. Try to disable it in alsamixer. Not sure when adding pulse to the mix but should be a good start.
Offline
Hey frank, so disabling auto-mute allowed both speaker and headphone to play at the same time. Unfortunately, there seems to be no way to simply send everything to the speakers..
Offline
I've never tried to do this but now that both outputs are enabled, can't you use a script to mute the output you don't need?
Here is a good link: https://bbs.archlinux.org/viewtopic.php?id=160187
Where brebs points to hda-verb here https://bbs.archlinux.org/viewtopic.php?id=125522
Which is a script to toggle back n forth headphone and speaker. The first link has a different solution to the second link (hda-verb). Choose which fits your needs but make sure to modify the values to your hardware setup.
Not sure if my guesses are helpful so take my advice with a grain of salt.
Offline
Thanks for the idea. I just made a script that uses amixer to set Headphone/Front to 0/100 and that seems to do what I need. I'm still confused as to why pulseaudio doesn't work by default...
Offline