On Sat, Sep 12, 2015 at 07:52:33AM +0000, Miod Vallat wrote:
> > 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.
> > It is a standard keyboard, a very 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 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
> 
> Can you show the output of `usbhidctl -f /dev/wskbd1 -r', `usbhidctl -f
> /dev/uhid0 -r' and `usbhidctl -f /dev/uhid1 -r'? (needs root
> permissions)

Here it is:

# usbhidctl -f /dev/wskbd1 -r 
Report descriptor:
Collection page=Generic_Desktop usage=Keyboard
Output  size=1 count=1 page=LEDs usage=Num_Lock, logical range 0..1
Output  size=1 count=1 page=LEDs usage=Caps_Lock, logical range 0..1
Output  size=1 count=1 page=LEDs usage=Scroll_Lock, logical range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_LeftControl, logical
range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_LeftShift, logical
range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt, logical
range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI, logical
range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_RightControl,
logical range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_RightShift, logical
range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_RightAlt, logical
range 0..1
Input   size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI, logical
range 0..1
Input   size=8 count=6 Array page=Keyboard
usage=No_Event..Keyboard_LANG2, logical range 0..255
End collection
Total   input size 8 bytes
Total  output size 1 bytes
Total feature size 0 bytes

# usbhidctl -f /dev/uhid0 -r  
Report descriptor:
Collection page=Consumer usage=Consumer_Control
Input   size=16 count=1 Array page=Consumer usage=Unassigned..AC_Format,
logical range 0..572
End collection
Total   input size 2 bytes
Total  output size 0 bytes
Total feature size 0 bytes

# usbhidctl -f /dev/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
 
> > Why wsconsctl is detecting it as two keys? With Caps_Lock +
> > Num_Lock on I get ledstate=3, as all the keys was on.
> 
> I don't understand your question. Could you write clearly what you did,
> what your expectations were, and what you observed?

If I turn only NumLock on, the ledstate on wsconsctl is 2, and I think
it should be one, as it happens with CapsLock, 1 key = 1 led, like I posted
on the last mail.
Only CapsLock on return keyboard.ledstate=1, I can't use Scroll Lock, no
led change usder X
-- 
Regards

Henrique Lengler 

Reply via email to