Solved Volume buttons not working

Greg Fitzgerald

Member

Reaction score: 3
Messages: 34

I recently bought a Ducky Shrine 7, it has volume up/down and a mute button above the numpad. They are dedicated buttons. When I run xev and press those buttons nothing registers. I booted a Linux live cd and they register fine there. Wondering if there's any knobs I can tune to fix this?

Thanks!
 
OP
OP
Greg Fitzgerald

Greg Fitzgerald

Member

Reaction score: 3
Messages: 34

$ kbdcontrol -i ─╯
kbdcontrol: unable to obtain keyboard information: Inappropriate ioctl for device

Everything seems to be working but these few buttons though?
 

shepper

Aspiring Daemon

Reaction score: 281
Messages: 809

One possibility is that they have a dedicated linux interface or module. If so, there should be a reference in the liveCD dmesg and/or lsmod
 

abishai

Aspiring Daemon

Reaction score: 174
Messages: 743

Check if keyboard creates uhid device node. You can dump supported controls with usbhidctl -f /dev/uhid<number> -r
 
OP
OP
Greg Fitzgerald

Greg Fitzgerald

Member

Reaction score: 3
Messages: 34

This is from dmesg, not sure where to get the uhid number from tbh.

Code:
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0

atkbd0: <AT Keyboard> irq 1 on atkbdc0

ugen0.2: <DuckyChannel International Co., Ltd. Ducky Keyboard> at usbus0

ukbd0: <DuckyChannel International Co., Ltd. Ducky Keyboard, class 0/0, rev 2.00/1.10, addr 2> on usbus0

ums1: <DuckyChannel International Co., Ltd. Ducky Keyboard, class 0/0, rev 2.00/1.10, addr 2> on usbus0
 
OP
OP
Greg Fitzgerald

Greg Fitzgerald

Member

Reaction score: 3
Messages: 34

Does this look right? It says Microsoft, as far as I know I don't own any microsoft devices. That was the only one that showed up though when I looked for the uhid.

Code:
Report descriptor:
Collection type=Application page=Microsoft usage=0x0001
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
Input   rid=0 size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255
 

abishai

Aspiring Daemon

Reaction score: 174
Messages: 743

No, it doesn't. Here is my (I have Das Keyboard)
Code:
Report descriptor:
Collection type=Application page=Generic_Desktop usage=System_Control
Input   rid=2 size=1 count=1 page=Generic_Desktop usage=System_Power_Down, logical range 0..1
Input   rid=2 size=1 count=1 page=Generic_Desktop usage=System_Sleep, logical range 0..1
Input   rid=2 size=1 count=1 page=Generic_Desktop usage=System_Wake_Up, logical range 0..1
Feature rid=1 size=8 count=7 page=Microsoft usage=0x0001 Array, logical range 0..255
End collection
Collection type=Application page=Consumer usage=Consumer_Control
Input   rid=3 size=1 count=1 page=Consumer usage=Scan_Next_Track, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Scan_Previous_Track, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Stop, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Play/Pause, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Mute, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Bass_Boost, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Loudness, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Volume_Increment, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Volume_Decrement, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Bass_Increment, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Bass_Decrement, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Treble_Increment, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=Treble_Decrement, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AL_Consumer_Control_Configuration, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AL_Email_Reader, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AL_Calculator, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AL_Local_Machine_Browser, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AC_Search, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AC_Home, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AC_Back, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AC_Forward, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AC_Stop, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AC_Refresh, logical range 0..1
Input   rid=3 size=1 count=1 page=Consumer usage=AC_Bookmarks, logical range 0..1
End collection
Total   input size 4 bytes
Total  output size 0 bytes
Total feature size 8 bytes
 
OP
OP
Greg Fitzgerald

Greg Fitzgerald

Member

Reaction score: 3
Messages: 34

Solved this, just had to install uhidd-0.2.1_3 Userland USB HID device driver using libusb20 and they started to work.
 
Top