Hi,

I'm trying to set the multimedia keys of my keyboard to de something. It
have three simple keys with shutdown, internet and mail figures on it.
This is the keyboard
[http://www.satellite-computer.com/content/?900.html] a standard simple
one.
First I tried to detect them using xev(1), but when I press the keys, nothing
happens.
Someone on irc, pointed me to try usbhidaction(1), and to run usbhidctl
to detect the keys. Running usbhidctl first made me note that sometimes
the command fails, and gives:

usbhidctl: USB_GET_REPORT (probably not supported by device): Bad address

but when it works I get:

Keyboard.Num_Lock=1
Keyboard.Caps_Lock=0
Keyboard.Scroll_Lock=0
Keyboard.Keyboard_LeftControl=0
Keyboard.Keyboard_LeftShift=0
Keyboard.Keyboard_LeftAlt=0
Keyboard.Keyboard_Left_GUI=0
Keyboard.Keyboard_RightControl=0
Keyboard.Keyboard_RightShift=0
Keyboard.Keyboard_RightAlt=0
Keyboard.Keyboard_Right_GUI=0
Keyboard.Keyboard_Return_(ENTER)=1 [0]
Keyboard.No_Event=1 [1]
Keyboard.No_Event=1 [2]
Keyboard.No_Event=1 [3]
Keyboard.No_Event=1 [4]
Keyboard.No_Event=1 [5]

So, where is the keys...

In this process, I noted another bug that could be related(?), 
my Scroll Lock LED don't turn on, the key is recognized by xev(1) 
(... keycode 78 (keysym 0xff14, Scroll_Lock)...) which means it is
working but not by wsconsctĺ neither by usbhidctl, see:

Only Caps_Lock on:

$ usbhidctl -f /dev/wskbd | grep Lock
Keyboard.Num_Lock=0
Keyboard.Caps_Lock=1
Keyboard.Scroll_Lock=0

$ wsconsctl | grep led
keyboard.ledstate=1

Ok, Caps_Lock is good, now, only Num_Lock on:

$ wsconsctl | grep led
keyboard.ledstate=2

$ usbhidctl -f /dev/wskbd | grep Lock
Keyboard.Num_Lock=1
Keyboard.Caps_Lock=0
Keyboard.Scroll_Lock=0

Why wsconsctl is detecting it as two keys? With Caps_Lock +
Num_Lock on I get ledstate=3, as all the keys was on.

Is these errors related? Can someone help me to solve?

My keyboard wsconsctl related output:

$ wsconsctl | grep keyboard
keyboard.type=pc-xt
keyboard.bell.pitch=400
keyboard.bell.period=100
keyboard.bell.volume=50
keyboard.bell.pitch.default=400
keyboard.bell.period.default=100
keyboard.bell.volume.default=50
keyboard.repeat.del1=400
keyboard.repeat.deln=100
keyboard.repeat.del1.default=400
keyboard.repeat.deln.default=100
keyboard.ledstate=2
keyboard.encoding=br
keyboard1.type=usb
keyboard1.bell.pitch=400
keyboard1.bell.period=100
keyboard1.bell.volume=50
keyboard1.bell.pitch.default=400
keyboard1.bell.period.default=100
keyboard1.bell.volume.default=50
keyboard1.repeat.del1=400
keyboard1.repeat.deln=100
keyboard1.repeat.del1.default=400
keyboard1.repeat.deln.default=100
keyboard1.ledstate=2
keyboard1.encoding=br

If you need more info please ask.

-- 
Regards

Henrique Lengler 

Reply via email to