[pulseaudio-tickets] [Bug 68286] Support toggling speaker and headphone port output, whilst keeping headphones plugged in
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Dec 12 12:07:33 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=68286
--- Comment #17 from Raman Gupta <rocketraman at gmail.com> ---
Specifically, this is what seems to work perfectly with my setup in order to
have audio on either the speakers or the headphones, but not both:
Switch to speakers:
#!/bin/sh
amixer -c 1 sset "Auto-Mute Mode" Disabled
pactl set-card-profile alsa_card.pci-0000_00_1b.0
output:analog-surround-40+input:analog-stereo
pactl set-sink-port alsa_output.pci-0000_00_1b.0.analog-surround-40
analog-output-speaker
amixer -c 1 sset 'Speaker' 100
amixer -c 1 sset 'Headphone',1 0
Switch to headphones:
#!/bin/sh
# Leave Auto-Mute Mode on Disabled for output headphones + speakers
amixer -c 1 sset "Auto-Mute Mode" 'Line Out+Speaker'
pactl set-card-profile alsa_card.pci-0000_00_1b.0
output:analog-stereo+input:analog-stereo
pactl set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output
amixer -c 1 sset 'Speaker' 0
amixer -c 1 sset 'Headphone',1 100
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20131212/79a9c88e/attachment.html>
More information about the pulseaudio-bugs
mailing list