Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: multimedia keys
On Feb 13, 2011, at 9:07 33AM, Thomas Klausner wrote:
> On Sun, Feb 13, 2011 at 01:15:13PM +0000, Dennis den Brok wrote:
>> If it's a USB keyboard, usbhidaction(1) may be helpful.
>
> It is, and that's a good pointer, thanks.
>
> However, my keyboard is "special" :(
> I tried using the example config from usbhidaction(8), but get:
> usbhidaction: config file `/etc/usbhidaction.conf', line 2, HID item not
> found: `Consumer:Consumer_Control.Consumer:Volume_Up'
>
> # usbhidctl -f uhid0 -a
> usbhidctl: USB_GET_REPORT(input) [probably not supported by device]:
> Input/output error
>
> # usbhidctl -f uhid0 -r
> Report descriptor:
> Input size=16 count=1 Array page=Consumer usage=Unassigned..0x03ff, logical
> range 0..1023
> Collection page=Consumer usage=Consumer_Control
> Total input size 2 bytes
> Total output size 0 bytes
> Total feature size 0 bytes
>
> It also attaches a uhid1, but that looks unrelated:
> # usbhidctl -f uhid1 -r
> Report descriptor:
> Collection page=Generic_Desktop usage=System_Control
> Input size=1 count=1 page=Generic_Desktop usage=System_Power_Down, logical
> range 0..1
> Input size=1 count=1 page=Generic_Desktop usage=System_Sleep, logical range
> 0..1
> Input size=1 count=1 page=Generic_Desktop usage=System_Wake_Up, logical
> range 0..1
> End collection
> Total input size 1 bytes
> Total output size 0 bytes
> Total feature size 0 bytes
>
> What next?
That I don't know. However, when I was using a keyboard with such extra buttons
I had
usbhidaction -f 0 -c /home/smb/.hidconf
in my .xinitrc and
b132$ cat .hidconf
Consumer:Consumer_Control.Consumer:Volume_Up 1
mixerctl -n -w outputs.master++
Consumer:Consumer_Control.Consumer:Volume_Down 1
mixerctl -n -w outputs.master--
Consumer:Consumer_Control.Consumer:Mute 1
/home/smb/bin/domute
Consumer:Consumer_Control.Consumer:AC_Home 1
rfirefox about:blank &
Consumer:Consumer_Control.Consumer:AC_Search 1
rfirefox http://www.google.com &
Consumer:Consumer_Control.Consumer:AL_Calculator 1
xterm -e bc &
Consumer:Consumer_Control.Consumer:AL_Email_Reader 1
composemail
>
--Steve Bellovin, http://www.cs.columbia.edu/~smb
Home |
Main Index |
Thread Index |
Old Index