Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg HID input madness - keyboards and remotes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bertaboy
l33t
l33t


Joined: 05 Nov 2004
Posts: 604

PostPosted: Tue May 30, 2006 12:35 am    Post subject: xorg HID input madness - keyboards and remotes Reply with quote

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
Back to top
View user's profile Send private message
bertaboy
l33t
l33t


Joined: 05 Nov 2004
Posts: 604

PostPosted: Tue May 30, 2006 11:30 pm    Post subject: Reply with quote

any ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum