Yes, manual mentions this. Native Windows drivers open dialog to point
what device I plugged in after I plug headset. Ubuntu (Unity) also has
similar popup: http://bazaar.launchpad.net/~unity-settings-daemon-team
/unity-settings-daemon/trunk/files/head:/plugins/media-keys/what-did-
you-plug-in/ but it doesn't open, when I plug something into jack.
Xubuntu doesn't have things such as that.

acpi_listen, when I plug/unplug headset, outputs only headphone's event
jack/headphone HEADPHONE plug|unplug

event about microphone such as
jack/microphone MICROPHONE plug or unplug
is not listed in acpi_listen output

I'm not sure I have a time to figure out Takashi's sources such as that
and make patches

enum {
        ALC_HEADSET_MODE_UNKNOWN,
        ALC_HEADSET_MODE_UNPLUGGED,
        ALC_HEADSET_MODE_HEADSET,
        ALC_HEADSET_MODE_MIC,
        ALC_HEADSET_MODE_HEADPHONE,
};

But I found semi-silution with acpid

I created /etc/acpi/events/acer-headset which runs script on jack acpi event:
event=jack/headphone HEADPHONE plug
action=/etc/acpi/acer-headset.sh

And script (/etc/acpi/acer-headset.sh) which opens pavucontrol to chose
input source everytime when I plug headset

#!/bin/bash
USR=<username>
XDISPLAY=":0.0" # echo $DISPLAY in users env
TAB=4 # tab with input source selection

# set X environment
export DISPLAY=${XDISPLAY}
export XAUTHORITY="/home/${USR}/.Xauthority"

sudo -u ${USR} -E pavucontrol --tab=${TAB}

The solution is quite comfortable for me. Thanks for explanation of some
details, Raymond, it helped me.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1446457

Title:
  [HDA-Intel - HDA Intel PCH, recording] No autoswitch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1446457/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to