$ dmesg | grep input
input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/rc/rc1/input5
$ cat /proc/bus/input/devices
I: Bus=0003 Vendor=0471 Product=0815 Version=0000 N: Name="Media Center Ed. eHome Infrared Remote Transceiver (0471:0815)" P: Phys=usb-0000:00:1a.0-2 S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/rc/rc1/input5 U: Uniq= H: Handlers=kbd event5 B: PROP=0 B: EV=100013 B: KEY=fff 0 108fc326 217605100000000 0 700158000 419000000001 209e968000000000 10000000 B: MSC=10
# Customized settings for lirc daemon
# The hardware driver to use, run lircd --driver=? for a list
DRIVER="devinput"
# Hardware driver module to load
HWMOD=""
DEVICE=/dev/input/by-path/pci-0000:00:1a.0-usb-0:2:1.0-event
$ ls -la /dev/input/by-path/
total 0 drwxr-xr-x 2 root root 160 févr. 12 09:23 ./ drwxr-xr-x 4 root root 280 févr. 12 09:23 ../ lrwxrwxrwx 1 root root 9 févr. 12 09:23 pci-0000:00:1a.0-usb-0:2:1.0-event -> ../event5 lrwxrwxrwx 1 root root 9 févr. 12 09:23 pci-0000:00:1d.2-usb-0:2:1.0-event-kbd -> ../event2 lrwxrwxrwx 1 root root 9 févr. 12 09:23 pci-0000:00:1d.2-usb-0:2:1.1-event-mouse -> ../event3 lrwxrwxrwx 1 root root 9 févr. 12 09:23 pci-0000:00:1d.2-usb-0:2:1.1-mouse -> ../mouse0 lrwxrwxrwx 1 root root 9 févr. 12 09:23 pci-0000:00:1d.7-event-ir -> ../event4 lrwxrwxrwx 1 root root 9 févr. 12 09:23 pci-0000:00:1d.7-usb-0:1:1.0-event -> ../event6
# /etc/init.d/lircd stop
# irrecord -H devinput -d /dev/input/by-path/pci-0000:00:1a.0-usb-0:2:1.0-event -n /etc/lirc/lircd.conf
irrecord - application for recording IR-codes for usage with lirc Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de) This program will record the signals from your remote control and create a config file for lircd. A proper config file for lircd is maybe the most vital part of this package, so you should invest some time to create a working config file. Although I put a good deal of effort in this program it is often not possible to automatically recognize all features of a remote control. Often short-comings of the receiver hardware make it nearly impossible. If you have problems to create a config file READ THE DOCUMENTATION of this package, especially section "Adding new remote controls" for how to get help. If there already is a remote control of the same brand available at http://www.lirc.org/remotes/ you might also want to try using such a remote as a template. The config files already contain all parameters of the protocol used by remotes of a certain brand and knowing these parameters makes the job of this program much easier. There are also template files for the most common protocols available in the remotes/generic/ directory of the source distribution of this package. You can use a template files by providing the path of the file as command line parameter. Please send the finished config files to <lirc> so that I can make them available to others. Don't forget to put all information that you can get about the remote control in the header of the file. Press RETURN to continue.
Now start pressing buttons on your remote control. It is very important that you press many different buttons and hold them down for approximately one second. Each button should generate at least one dot but in no case more than ten dots of output. Don't stop pressing buttons until two lines of dots (2x80) have been generated. Press RETURN now to start recording.
#Plusieurs lignes d'infos sur la précédente détection... que je n'ai pas copiées
Please enter the name for the next button (press <ENTER> to finish recording)
$ irrecord --list-namespace
# lircd -H devinput -d /dev/input/by-path/pci-0000:00:1a.0-usb-0:2:1.0-event/ -n /etc/lirc/lircd.conf
# irw
Écrit par: JojoPhysics, Le: 12/02/12