Article View: pl.comp.os.linux.sprzet
Article #74221pilot jako jako klawiatura
From: MaRc
Date: Wed, 27 Jul 2011 11:47
Date: Wed, 27 Jul 2011 11:47
112 lines
4676 bytes
4676 bytes
Witam
jestem w trakcie skladania htpc. żeby nie ciagac klawiatury, zakupilem
pilota, ktory w systemie jest widziany jako klawiatura. wciskanie na
pilocie przyciskow 1-0, gora, dol, ok - w efekcie widoczne jest jakbym
naciskal normalne klawisze na klawiaturze. ogolnie fajnie dziala to pod
xbmc, ale juz dla vdr nie - menu itd.
probowalem walczyc z lirc, ale to nie tedy droga.
jak moge "przechwycic" przyciski z odbiornika i zmapowac je na takie
jakie ja chce? znaczy jak przycisne "menu" zeby mapowane bylo na
przycisk "m" itp.
oto troche informacji o urzadzeniu:
[16418.555208] usb 6-2: new low speed USB device number 4 using uhci_hcd
[16418.758216] petalynx 0003:18B1:0037.0004: fixing up Petalynx Maxter
Remote report descriptor
[16418.758841] input: ELMAK.pl irMAKbd pl as
/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/input/input14
[16418.759056] petalynx 0003:18B1:0037.0004: input,hiddev0,hidraw1: USB
HID v1.00 Mouse [ELMAK.pl irMAKbd pl] on usb-0000:00:1d.0-2/input0
cat /proc/bud/input/devices
...
I: Bus=0003 Vendor=18b1 Product=0037 Version=0100
N: Name="ELMAK.pl irMAKbd pl"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/input/input14
U: Uniq=
H: Handlers=sysrq kbd mouse2 event12
B: PROP=0
B: EV=12001f
B: KEY=80000f afd037 bf004400 0 0 70001 10000 38007 ff9f63fa c140dfff
febeffdf ffefffff ffffffff fffffffe
B: REL=103
B: ABS=f01 0
B: MSC=10
B: LED=1f
Bus 006 Device 004: ID 18b1:0037 Petalynx Maxter Remote Control
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x18b1 Petalynx
idProduct 0x0037 Maxter Remote Control
bcdDevice 3.97
iManufacturer 3 ELMAK.pl
iProduct 1 irMAKbd pl
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 41
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 40mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 246
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 0x0005 1x 5 bytes
bInterval 10
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)
jak moge przemapowac klawisze??
--
MaRc
Technical Details
Message-ID:
<j0otsf$rj0$1@pippin.nask.net.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!not-for-mail From: MaRc <tuksmr@gmail.com> Newsgroups: pl.comp.os.linux.sprzet Subject: pilot jako jako klawiatura Date: Wed, 27 Jul 2011 13:47:27 +0200 Organization: NASK - www.nask.pl Lines: 112 Message-ID: <j0otsf$rj0$1@pippin.nask.net.pl> NNTP-Posting-Host: 193.59.37.1 Mime-Version: 1.0 X-Trace: pippin.nask.net.pl 1311767247 28256 193.59.37.1 (27 Jul 2011 11:47:27 GMT) X-Complaints-To: abuse ATSIGN nask.pl NNTP-Posting-Date: Wed, 27 Jul 2011 11:47:27 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110702 Thunderbird/5.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit