Discussion:
HDA jack retasking
Raman Gupta
2013-08-18 22:57:55 UTC
Permalink
I have Intel HDA Audio on my motherboard (Asus P9X79 PRO). This
chipset has the capability to retask jacks for another purpose, for
example changing a line out jack to a headphone jack.

Has anyone successfully retasked an audio jack (specifically, on my
motherboard, the blue Line Out jack) to a headphone?

I found a post on pulseaudio-discuss re. this hda-jack-retask program
which seems to imply it can be done, but it didn't seem to work (I
didn't try every available combination however):

http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-December/012342.html

Regards,
Raman
T.C. Hollingsworth
2013-08-19 00:23:04 UTC
Permalink
Post by Raman Gupta
I have Intel HDA Audio on my motherboard (Asus P9X79 PRO). This
chipset has the capability to retask jacks for another purpose, for
example changing a line out jack to a headphone jack.
Has anyone successfully retasked an audio jack (specifically, on my
motherboard, the blue Line Out jack) to a headphone?
I found a post on pulseaudio-discuss re. this hda-jack-retask program
which seems to imply it can be done, but it didn't seem to work (I
Did you try the version of this that is now included in the "alsa-tools" package
in Fedora? It's called "hdajackretask", without the dashes. According to the
changelog in that Ubuntu package, the alsa-tools version and the Ubuntu PPA
version are now identical.

The alsa-tools version works for me, but only if I use the "Install boot
override" function and reboot. The "Apply now" function appears to do nothing,
as far as I can tell. :-(

Thanks for pointing out this exists BTW. Even just having this work on reboot
is pretty useful to me. :-)

-T.C.
Raman Gupta
2013-08-19 05:10:26 UTC
Permalink
Post by T.C. Hollingsworth
Post by Raman Gupta
I have Intel HDA Audio on my motherboard (Asus P9X79 PRO). This
chipset has the capability to retask jacks for another purpose, for
example changing a line out jack to a headphone jack.
Has anyone successfully retasked an audio jack (specifically, on my
motherboard, the blue Line Out jack) to a headphone?
I found a post on pulseaudio-discuss re. this hda-jack-retask program
which seems to imply it can be done, but it didn't seem to work (I
Did you try the version of this that is now included in the "alsa-tools" package
in Fedora? It's called "hdajackretask", without the dashes. According to the
changelog in that Ubuntu package, the alsa-tools version and the Ubuntu PPA
version are now identical.
Good find. I didn't realize alsa-tools now included this.
Post by T.C. Hollingsworth
The alsa-tools version works for me, but only if I use the "Install boot
override" function and reboot. The "Apply now" function appears to do nothing,
as far as I can tell. :-(
Ok, the reboot worked to retask the jack here as well! Excellent.
Post by T.C. Hollingsworth
Thanks for pointing out this exists BTW. Even just having this work on reboot
is pretty useful to me. :-)
Glad we could help each other.

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.

Regards,
Raman
Raman Gupta
2013-08-19 22:27:19 UTC
Permalink
Post by Raman Gupta
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
Ahmad Samir
2013-10-01 05:08:17 UTC
Permalink
Post by Raman Gupta
Post by Raman Gupta
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
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
#!/bin/sh
amixer -c 0 sset "Auto-Mute Mode" Disabled
amixer -c 0 sset "Headphone,1" mute
#!/bin/sh
amixer -c 0 sset "Auto-Mute Mode" Enabled
amixer -c 0 sset "Headphone,1" unmute
Regards,
Raman
I know this was from over than a month ago, but anyway.... you can use
something like this in a single script to toggle auto-mute:

#!/bin/sh
# check auto-mute state
amixer sget 'Auto-Mute Mode' | grep Item0 | grep -q Disabled
# $? is 0 if auto-mute is disabled
# $? is 1 if auto-mute is enabled
if [ "$?" -eq "0" ]; then
# unmute the headphones and mute the speakers
amixer -c 0 sset "Auto-Mute Mode" Enabled
amixer -c 0 sset "Headphone,1" unmute
else
# mute the headphones and umunte the spearkers
amixer -c 0 sset "Auto-Mute Mode" Disabled
amixer -c 0 sset "Headphone,1" mute
fi
Post by Raman Gupta
--
users mailing list
Post by Raman Gupta
users at lists.fedoraproject.org
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
--
Ahmad Samir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20131001/eda35b78/attachment.html>
Loading...