ich bin zur Zeit dabei eine MCE Fernbedienung vom HAMA zum laufen zu bringen und werd fast wahnsinnig -.-
also dmesg sagt mir folgendes:
Code
[ 4.325223] sda:<6>input: HID 05a4:9881 as /devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input2
[ 4.336443] input,hidraw0: USB HID v1.10 Keyboard [HID 05a4:9881] on usb-0000:00:03.0-1
[ 4.346898] sda1 sda2 < sda5<6>input: HID 05a4:9881 as /devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.1/input/input3
[ 4.366229] input,hidraw1: USB HID v1.10 Mouse [HID 05a4:9881] on usb-0000:00:03.0-1
lsusb gebt mir folgende infos
Code
root@vdr:~# lsusb -s 002:002 -v
Bus 002 Device 002: ID 05a4:9881 Ortek Technology, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x05a4 Ortek Technology, Inc.
idProduct 0x9881
bcdDevice 1.10
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 63
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 208
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0005 1x 5 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)
Display More
dann hab ich noch folgende infos bei den input devices
Code
root@vdr:~# ls -l /dev/input/by-id/
insgesamt 0
lrwxrwxrwx 1 root root 9 2009-02-19 21:37 usb-05a4_9881-event-kbd -> ../event2
root@vdr:~# ls -l /dev/input/by-path/
insgesamt 0
lrwxrwxrwx 1 root root 9 2009-02-19 21:37 pci-0000:00:03.0-usb-0:1:1.0-event-kbd -> ../event2
lrwxrwxrwx 1 root root 9 2009-02-19 21:37 pci-0000:00:03.0-usb-0:1:1.1- -> ../mouse1
lrwxrwxrwx 1 root root 9 2009-02-19 21:37 pci-0000:00:03.0-usb-0:1:1.1-event- -> ../event3
lrwxrwxrwx 1 root root 9 2009-02-19 21:37 pci-0000:00:09.0--event-ir -> ../event7
lrwxrwxrwx 1 root root 9 2009-02-19 21:37 platform-i8042-serio-0-event-kbd -> ../event1
lrwxrwxrwx 1 root root 9 2009-02-19 21:37 platform-pcspkr-event-spkr -> ../event4
Display More
und noch /proc/
Code
root@vdr:~# cat /proc/bus/input/devices
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=05a4 Product=9881 Version=0110
N: Name="HID 05a4:9881"
P: Phys=usb-0000:00:03.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=120013
B: KEY=e080ffdf 1cfffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=05a4 Product=9881 Version=0110
N: Name="HID 05a4:9881"
P: Phys=usb-0000:00:03.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.1/input/input3
U: Uniq=
H: Handlers=kbd mouse1 event3
B: EV=17
B: KEY=1f0000 0 2020000 3878 d801d001 1e0000 0 0 0
B: REL=103
B: MSC=10
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=40001
B: SND=6
I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0001 Vendor=13c2 Product=0000 Version=0002
N: Name="DVB on-card IR receiver"
P: Phys=pci-0000:00:09.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:09.0/input/input7
U: Uniq=
H: Handlers=kbd event7
B: EV=100013
B: KEY=fc812 a052041 0 0 0 0 0 4000 40002800 1e1680 0 0 ffc
B: MSC=18
Display More
meiner meinung nach ist nun /dev/input/event2 die Fernbedienung
nun will ich sie mir inputlircd an lirc binden .
jedoch klappt das nicht hier der der output:
Code
root@vdr:~# sudo inputlircd -f -g -m0 /dev/input/event2
Failed to grab /dev/input/event2: Device or resource busy
Unable to open any event device!
selbige wenn ich es über die ID mach
Code
root@vdr:~# sudo inputlircd -f -g -m0 /dev/input/by-id/usb-05a4_9881-event-kbd
Failed to grab /dev/input/by-id/usb-05a4_9881-event-kbd: Device or resource busy
Unable to open any event device!
ich weis leider nicht wo mein Fehler liegt und warum die devices immer busy sind.
Hat jemand von euch vielleicht noch einen Tip was ich falsch mache?
Danke schon mal für eure Hilfe
Liebe Grüße
Jens