Partager l'article ! Ajout d'une télécomande X10: Ici on ajoute une telecommande X10 OR22V # http://www.domadoo.fr/produit,438,2,T%C3%A9l%C3%A9commande-MediaCen ...
| Juin 2012 | ||||||||||
| L | M | M | J | V | S | D | ||||
| 1 | 2 | 3 | ||||||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 | ||||
| 11 | 12 | 13 | 14 | 15 | 16 | 17 | ||||
| 18 | 19 | 20 | 21 | 22 | 23 | 24 | ||||
| 25 | 26 | 27 | 28 | 29 | 30 | |||||
|
||||||||||
Ici on ajoute une telecommande X10 OR22V
# http://www.domadoo.fr/produit,438,2,T%C3%A9l%C3%A9commande-MediaCenter-R-F-(OR23-OR22).htm
############################# INSTALLATION DU MODULE LIRC ATIUSB
|
cd /usr/src apt-get install lirc-modules-source tar xvf lirc-modules.tar.bz2 cd /usr/src/modules/lirc-modules/ dpkg-reconfigure lirc-modules-source make mkdir /lib/modules/`uname -r`/misc/ cp lirc_atiusb.ko /lib/modules/`uname -r`/misc/ cp lirc_dev.ko /lib/modules/`uname -r`/misc/ depmod -a |
############################# MODIFICATION LIRC
|
aptitude install lirc vi /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="OR22V" REMOTE_MODULES="" REMOTE_DRIVER="atilibusb" REMOTE_DEVICE="/dev/lirc0" REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf" REMOTE_LIRCD_ARGS="" #Enable lircd START_LIRCD="true" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD="false" #Try to load appropriate kernel modules LOAD_MODULES="true" # Default configuration files for your hardware if any LIRCMD_CONF="" #Forcing noninteractive reconfiguration #If lirc is to be reconfigured by an external application #that doesn't have a debconf frontend available, the noninteractive #frontend can be invoked and set to parse REMOTE and TRANSMITTER #It will then populate all other variables without any user input #If you would like to configure lirc via standard methods, be sure #to leave this set to "false" FORCE_NONINTERACTIVE_RECONFIGURATION="false" START_LIRCMD="" :wq |
############################# MODIFICATION LIRC
vi /etc/modprobe.d/blacklist.conf
Append following lines to the file and save it.
Code:
|
#Set ATI USB RF Receiver Modules to Blacklist for X10 OR22V Remote blacklist ati_remote blacklist lirc_atiusb |
#################### PARAMETRAGE DES TOUCHES DE LA TELECOMANDE
| irrecord -d /dev/lirc0 /tmp/my_remote |
#################### EXEMPLE DE FICHIERS LIRCD.CONF
|
vi /et/lirc/lircd.conf # Please make this file available to others # by sending it to <lirc@bartelmus.de> # # this config file was automatically generated # using lirc-0.8.4a(atilibusb) on Tue Sep 8 23:54:34 2009 # # contributed by funnybox2006 # # brand: X10 # model no. of remote control: OR22V with RF USB Dongle # devices being controlled by this remote: # note: use atilibusb driver for this remote and set device in hardware.conf to /dev/lirc0 begin remote name OR22V bits 16 eps 30 aeps 100 one 0 0 zero 0 0 pre_data_bits 8 pre_data 0x14 post_data_bits 16 post_data 0x0 gap 139982 min_repeat 2 toggle_bit_mask 0x80800000 begin codes KEY_POWER 0xD702 KEY_RED 0x87B2 KEY_YELLOW 0x89B4 KEY_GREEN 0x0833 KEY_TEXT 0x6B96 KEY_BLUE 0x0A35 KEY_BACK 0x75A0 KEY_INFO 0x84AF KEY_UP 0x6F9A KEY_LEFT 0x729D KEY_OK 0x739E KEY_RIGHT 0x749F KEY_DOWN 0x77A2 KEY_TIMESHIFTING 0x6D98 KEY_EPG 0x0631 KEY_DVDMENU 0x5984 KEY_LIVETV 0x719C KEY_VOLUMEUP 0x5E89 KEY_WINDOWS 0x709B KEY_CHANNELUP 0x608B KEY_VOLUMEDOWN 0x5D88 KEY_CHANNELDOWN 0x618C KEY_MUTE 0x5580 KEY_PREVIOUS 0x76A1 KEY_NEXT 0x78A3 KEY_REWIND 0x79A4 KEY_PLAY 0x7AA5 KEY_FASTFORWARD 0x7BA6 KEY_RECORD 0x7CA7 KEY_STOP 0x7DA8 KEY_PAUSE 0x7EA9 KEY_1 0x628D KEY_2 0x638E KEY_3 0x648F KEY_4 0x6590 KEY_5 0x6691 KEY_6 0x6792 KEY_7 0x6893 KEY_8 0x6994 KEY_9 0x6A95 KEY_* 0x8CB7 KEY_0 0x6C97 KEY_# 0x0D38 KEY_CLEAR 0x85B0 KEY_ENTER 0x0B36 end codes end remote :wq |
############################ TEST DE LA TELECOMANDE
|
invoke-rc.d lirc start irw vi /etc/modules lirc_atiusb |
|
|
Cela signifie que l'ensemble des documents
mis à votre disposition sont libres d'utilisation
à des fins personnelles mais qu'en
aucun
cas ils ne peuvent être utilisés à des fins
commerciales.
|
L'insertion d'un extrait dans une publication à caractère scientifique est soumise aux lois du
copyright et doit faire l'objet d'une autorisation écrite préalable.
L'utilisation à des fins pédagogiques est permise à la condition expresse de me prevenir, d'une part, et d'informer les étudiants concernés de l'existence de ce site de référence, d'autre part.