Switch between speakers and headphones with PulseAudio (was Re: HDA jack retasking)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/19/2013 01:10 AM, Raman Gupta wrote:
> Next problem: getting PulseAudio to recognize that I have both
> headphones plugged in (to the retasked jack) as well as regular
> speakers, and switch between them at command.
> 
> PulseAudio shows two output Ports: "Analog Output" as well as
> "Headphones", but both ports output to my headphones. Without the
> retasking, both ports output to my speakers. Frustrating.

Just to follow up on this, as per the nice folks on #pulseaudio, it
doesn't seem pulseaudio is capable of this yet, so I created:

https://bugs.freedesktop.org/show_bug.cgi?id=68286

It can be worked around by using amixer to modify the hardware
controls directly. For my card (HDA Intel PCH with Realtek ALC898
chipset), here are the scripts I use:

1) enable speakers:

#!/bin/sh
amixer -c 0 sset "Auto-Mute Mode" Disabled
amixer -c 0 sset "Headphone,1" mute

2) enable headphones:

#!/bin/sh
amixer -c 0 sset "Auto-Mute Mode" Enabled
amixer -c 0 sset "Headphone,1" unmute

Regards,
Raman
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux