hexdump naprv ide potom nejde...?
lsusb: Bus 005 Device 003: ID 0471:060c Philips (or NXP) Consumer Infrared Transceiver (HP)
/dev/input/by-id/usb-_BB+_Dongle_e.d__AHAG-event-if00 -> ../event7
/proc/bus/input/devices:
I: Bus=0003 Vendor=0471 Product=060c Version=0101
N: Name="Media Center Ed. eHome Infrared Remote Transceiver (0471:060c)"
P: Phys=usb-0000:00:1d.0-2
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/rc/rc0/input7
U: Uniq=
H: Handlers=kbd event7
B: PROP=0
B: EV=100013
B: KEY=fff 0 200108fc32e 237605100000000 0 700158000 419200004001 8e968000000000 10000000
B: MSC=10
Pre pridávanie komentárov sa musíte prihlásiť.
Tá myška Ti poguje po obrazovke, teda skáče a vytriasa lupiny bez zjavného dôvodu a bez rytmu hudby?
Inak, asi si si všimol riadok:
Handlers=kbd event7
Tak si skús pozrieť či to negeneruje scancode ako klávesnica. Predpokladám, že si nehal štandardný vstup evdev či jak sa to teraz volá.
a pod rootom lsusb -v -s 005:003
Cannot get serial info: Invalid argument
# setserial -a /dev/input/event12
Cannot get serial info: Invalid argument
# lsusb -v -s 006:002
Bus 006 Device 002: ID 0471:060c Philips (or NXP) Consumer Infrared Transceiver (HP)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0471 Philips (or NXP)
idProduct 0x060c Consumer Infrared Transceiver (HP)
bcdDevice 1.01
iManufacturer 1
iProduct 2 BB+ Dongle(e.d)
iSerial 3 AHAG
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)
Takze, ako som sa pytal vyssie, negeneruje to dialkove nahodou stlacenia multimedialnych klaves? Zopar distribucii uz tak davno funguje.
# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event2) with:
Driver mceusb, table rc-rc6-mce
Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
Enabled protocols: RC-6
Repeat delay = 500 ms, repeat period = 125 ms a
Kde "/dev/input/event2" je to spominane ir-remote a toto je asi ten problem.
Nikdy som s tim nepracoval a vobec co si spominal: "negeneruje to dialkove nahodou stlacenia multimedialnych klaves? Zopar distribucii uz tak davno funguje." nieake to generuje jak som odpovedal ale to my moc nepomoze ked si nemozem nakonfigurovat lirc. Napadlo nepouzivat lirc a pouzit to ir-keytable len stim neviem co robit. Predtim som to robil pomocou irrecord ktory zachytaval hex cisla (skumal som tie hex pomocou hexdump), no a po naistalovani v4l-utils (video4linux) ziadne hex nedostane. Tak ak niekto vie co robit s tim ir-keytable hodila bi sa nieaka rada.
Treba prepisat tento subor:
echo lirc > /sys/class/rc/rc0/protocols
Po restarte sa to obnovi tak som si to pridal do daemonov abi sa to prepisalo vzdy pri starte systemu. /dev/input/eventX mi us nikdy nepojde ale po prepisani toho suboru "hexdump /dev/lirc0" vypisuje vstup, moze sa ti otestovat aj takto: "cat /dev/lirc0"
Este som musel vytvorit tento adresar:
mkdir /var/run/lirc/ Teraz si mozem kludne pouzit irrecord ktorim vytvorim subor lircd.conf a ulozim ho do /etc/lirc/. Teraz mozrm kludne napisat:
lirc -d /dev/lirc0
a s "irw" si otestujem tlacitka.
Vdaka za snahu oradu a dufam ze ked niekto budemat podobny problem mu to pomoze