Posted by: vwbusguy | October 17, 2009

HP laptop headphone fix

In Fedora 10, my HP dv-6 laptop did strange things with headphones.  If I plugged headphones in, the sound would continue to come out the speakers while also out the headphone jack.  In Fedora 11, sound no longer worked at all through the headphone jack.

Every once and a while I would Google search to find that this problem appears to consistently hit HP dv-5, dv-6, and dv-7 and some HP Mini’s that have AMD audio using the snd-hda-intel driver.

Today, I found a workaround, but it is not very fun.  Some have found a series of commands you can do to mute the speakers and unmute them as well as mute and unmute the headphone jack using hda-verb.

It worked, but the syntax is far from user-friendly or easy to remember.  So, I have packaged a fix, based on their source code that puts friendly scripts in /usr/bin.  It’s not a perfect workaround, but it works:

headphone-on   – Mutes the laptop speakers, and unmutes the headphone jacks.
headphone-off   – Mutes the headphone jacks, and unmutes the laptop speakers.

These need to be ran as root.  The next glorious step would be for alsa or hal to do this automagically, but in the meantime, us HP owners can watch HomestarRunner on our laptops in the library again with a single root command.

Get hda-hp RPMs and source here.

Advertisements

Responses

  1. […] the original post:  vwbusguy -Scott Williams-: HP laptop headphone fix Share and […]

  2. This sequence should be fixed in Fedora 12 already, and updates to alsa-driver (in Fedora 1[01]) should pull it in eventually.

  3. Installs cleanly and commands run on F10 on a dv6-1030us, but with no apparent effect on the no-speaker-muting-when-using-headphones problem.

    Output from command line:
    $ sudo headphone-on
    nid = 0xd, verb = 0x707, param = 0x0
    value = 0x0
    nid = 0xf, verb = 0x707, param = 0x40
    value = 0x0
    $ sudo headphone-off
    nid = 0xd, verb = 0x707, param = 0x40
    value = 0x0
    nid = 0xf, verb = 0x707, param = 0x0
    value = 0x0

    • I take that back. The scripts aren’t firing properly as “sudo headphone-on”, etc, using the Gnome command line Mini-Commander applet, but do work properly when fired from a terminal window.

      • Oh, and thanks a ton for putting this together.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: