capturing volume keys for 2 alsa devices

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

 



Hi,

The volume knob on my dell multimedia usb keyboard finally started to 
work with the 2.6.23-rc series kernels. Of course I already had the 
multimedia keycodes entrered in my window manager configuration:

	<keybind key="0xb0">
      <action name="Execute">
        <execute>/usr/bin/amixer -q -c0 sset PCM,0 2+,2+</execute>
      </action>
    </keybind>
    <keybind key="0xae">
      <action name="Execute">
        <execute>/usr/bin/amixer -q -c0 sset PCM,0 2-,2-</execute>
      </action>
    </keybind>

These are keycodes 174 and 176, which are pretty standard volume_down 
and volume_up codes.

Now I also have a plantronics usb headset plugged into that box and its 
little volume control unit emits the _same_ 174, 176 codes as the 
keyboard knob. Ideally I'd like to intercept these keys and apply them 
to "amixer -c1" (headset) instead of -c0 (sound card).

Has anybody found a way to do that?

Thanks,

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux