bertaboy l33t
Joined: 05 Nov 2004 Posts: 604
|
Posted: Tue May 30, 2006 12:35 am Post subject: xorg HID input madness - keyboards and remotes |
|
|
I have a USB keyboard and a USB remote both plugged into my computer. The remote is a Cyberlink remote, here:
http://www.cyberlink.com/multi/cyberstore/order_44_ENU.html
The keyboard and the remote both are interacting via HID with the computer. The only thing, however, is that the computer is seeing the remote as a keyboard, with the numbers on the remote providing the same keycodes as the numbers above the letters on the keyboard (and differently from those from the numpad.)
The idea I had involved using the remote to control all of my multimedia needs, but since it is presently overlapping with my keyboard, it's simply impossible.
In addition, the remote is both devices /dev/input/event0 and /dev/input/event1, with event0 being the direction arrows and the numbers, and event1 being all other buttons on the remote.
Presently, I am able to type in numbers using the remote and control multimedia functions through both the keyboard and the remote for keys like XF86AudioMute, et co.
Questions:
Is it possible for me to have both event0 and event1 be the devices for one input?
Is it possible for me to separate keyboard functions from remote functions (like have different keycodes for the keyboard and the remote?)
Code: | cat /proc/bus/input/devices
I: Bus=0003 Vendor=0766 Product=0204 Version=0001
N: Name="TopSeed Tech Corp. USB IR Combo Device "
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=120003
B: KEY=10000 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: LED=1f
I: Bus=0003 Vendor=0766 Product=0204 Version=0001
N: Name="TopSeed Tech Corp. USB IR Combo Device "
P: Phys=usb-0000:00:1d.0-1/input1
S: Sysfs=/class/input/input1
H: Handlers=kbd mouse0 event1
B: EV=100007
B: KEY=42c03a2 20d0400 0 0 70000 4 18000 21f8 d001d006 9e0040 0 0 0
B: REL=103
I: Bus=0003 Vendor=045e Product=008c Version=0057
N: Name="Microsoft Microsoft Wireless Optical Mouse� 1.0A"
P: Phys=usb-0000:00:1d.2-1/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 event2
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=1c3
I: Bus=0003 Vendor=045e Product=001d Version=0111
N: Name="Microsoft Natural Keyboard Pro"
P: Phys=usb-0000:00:1d.1-1.1/input0
S: Sysfs=/class/input/input3
H: Handlers=kbd event3
B: EV=120003
B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe
B: LED=7
I: Bus=0003 Vendor=045e Product=001d Version=0111
N: Name="Microsoft Natural Keyboard Pro"
P: Phys=usb-0000:00:1d.1-1.1/input1
S: Sysfs=/class/input/input4
H: Handlers=kbd event4
B: EV=f
B: KEY=c0002 400 0 0 1 c00 78000 2639fa d841d7ad 9e0000 0 0 0
B: REL=40
B: ABS=1 0
|
Code: | cat /proc/bus/usb/devices
...
T: Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=045e ProdID=001d Rev= 1.11
S: Product=Microsoft Natural Keyboard Pro
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 3 Ivl=10ms
...
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0766 ProdID=0204 Rev= 0.01
S: Manufacturer=TopSeed Tech Corp.
S: Product=USB IR Combo Device
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 5 Ivl=10ms |
|
|