Ce wiki s'intéresse à l'installation de la carte TNT (qui est simple) et surtout à celle de sa télécommande (pas non plus très compliquée à installer).
A partir de Feisty (7.04), le chipset de la carte est reconnu. On n'a pas besoin de la méthode suivante. Cependant, pour détecter les chaînes de télévision sur kaffeine, j'ai du laisser en “auto” et non pas la liste correspondant à ma ville…
Pour les anciennes versions, comme l'a proposé tioneb, il faut télécharger le firmware (dvb-usb-avertv-a800-02.fw) sur le site de linuxtv et de le placer dans /lib/firmware/2.6* .
cd ~ wget http://www.linuxtv.org/downloads/firmware/dvb-usb-avertv-a800-02.fw sudo mv dvb-usb-avertv-a800-02.fw /lib/firmware/`uname -r`/
Il faut d'abord installer lirc :
sudo apt-get install lirc lirc-x
Puis rechercher le fichier correspondant à la télécommande parmi les /dev/input/eventX (X étant le nombre à changer) :
sudo cat /dev/input/event2 {� E�����{� E�
Vous devez avoir des caractères bizarres lorsque vous appuyez sur des touches de votre télécommande.
Une fois que vous l'avez identifier, il faut modifier le fichier /etc/lirc/hardware.conf de la façon suivante :
sudo gedit /etc/lirc/hardware.conf
Mon fichier :
# /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="" #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=false # Run "lircd --driver=help" for a list of supported drivers. DRIVER="dev/input" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="/dev/input/event2" MODULES="" # Default configuration files for your hardware if any LIRCD_CONF="" LIRCMD_CONF=""
Ensuite, il faut entrer l'association entre la touche pressée et le code reçu dans le fichier /etc/lirc/lircd.conf
sudo gedit /etc/lirc/lircd.conf &
Mon fichier :
# # this config file was created by using lirc-0.8 on Thu Sept 14 2006 # # contributed by elturisto # # brand: AVerMedia # model no. of remote control: RM-FP # devices being controlled by this remote: AVerMedia DVB-T USB2.0 (A800) # begin remote name rmfp bits 32 flags SPACE_ENC|CONST_LENGTH eps 30 aeps 100 header 8967 4524 one 565 1682 zero 565 559 ptrail 561 repeat 8968 2276 gap 107905 toggle_bit 0 begin codes power 0x00010074 source 0x00010094 1 0x00010002 2 0x00010003 3 0x00010004 4 0x00010005 5 0x00010006 6 0x00010007 7 0x00010008 8 0x00010009 9 0x0001000a 0 0x0001000b display 0x00010069 snapshot 0x00010095 chrtn 0x0001006a chprev 0x000100ca chup 0x00010192 chdown 0x00010193 voldown 0x00010072 volup 0x00010073 fullscreen 0x00010174 mute 0x00010071 audio 0x00010188 record 0x000100a7 play 0x000100cf stop 0x00010080 pause 0x000100a4 rewind 0x0001009e forward 0x0001009f teletext 0x00010184 last 0x00010194 next 0x00010195 epg 0x0001016d menu 0x0001008b end codes end remote
Il faut relancer lirc avec ces nouvelles configurations :
sudo dpkg-reconfigure lirc
Normalement, si tout fonctionne, avec irw vous devriez voir les touches sur votre terminal :
$ sudo irw 0000000000010005 00 4 rmfp 0000000000010006 00 5 rmfp 000000000001000a 00 9 rmfp 000000000001000b 00 0 rmfp 0000000000010192 00 chup rmfp 0000000000010072 00 voldown rmfp 0000000000010073 00 volup rmfp
Si ça fonctionne : c'est quasiment terminé ! Il reste à personnaliser vos touches selon vos besoins.
Pour ma part, j'ai créé un fichier ~/.lircrc et j'ai mis des raccourcis pour Kaffeine et Amarok ainsi que la reconnaissance des chiffres :
gedit ~/.lircrc
#amarok begin prog = irexec button = menu config = amarok end begin prog = irexec button = power config = dcop amarok MainApplication-Interface quit end begin prog = irexec button = play config = dcop amarok player play end begin prog = irexec button = forward config = dcop amarok player seekRelative 10 end begin prog = irexec button = rewind config = dcop amarok player seekRelative -5 end begin prog = irexec button = pause config = dcop amarok player pause end begin prog = irexec button = stop config = dcop amarok player stop end begin prog = irexec button = next config = dcop amarok player next end begin prog = irexec button = last config = dcop amarok player prev end begin prog = irexec button = chup config = dcop amarok player next end begin prog = irexec button = chdown config = dcop amarok player prev end begin prog = irexec button = volup config = dcop amarok player volumeUp end begin prog = irexec button = mute config = dcop amarok player mute end begin prog = irexec button = voldown config = dcop amarok player volumeDown end begin prog = irexec button = epg config = dcop amarok playlist togglePlaylist end begin prog = irexec button = chrtn config = toggleRandomAmarok end begin prog = irexec button = fullscreen config = dcop amarok player showOSD end #kaffeine begin prog = irexec button = source config = kaffeine end begin prog = irexec button = play config = dcop kaffeine KaffeineIface play end begin prog = irexec button = pause config = dcop kaffeine KaffeineIface pause end begin prog = irexec button = stop config = dcop kaffeine KaffeineIface stop end begin prog = irexec button = forward config = dcop kaffeine KaffeineIface posPlus end begin prog = irexec button = rewind config = dcop kaffeine KaffeineIface posMinus end begin prog = irexec button = next config = dcop kaffeine KaffeineIface next end begin prog = irexec button = last config = dcop kaffeine KaffeineIface previous end begin prog = irexec button = chup config = dcop kaffeine KaffeineIface next end begin prog = irexec button = chdown config = dcop kaffeine KaffeineIface previous end begin prog = irexec button = power config = dcop kaffeine KaffeineIface quit end begin prog = irexec button = volup config = dcop kaffeine KaffeineIface volUp end begin prog = irexec button = mute config = dcop kaffeine KaffeineIface mute end begin prog = irexec button = voldown config = dcop kaffeine KaffeineIface volDown end begin prog = irexec button = fullscreen config = dcop kaffeine KaffeineIface fullscreen end # Chiffres begin prog = irxevent button = 1 config = Key SHIFT-1 CurrentWindow end begin prog = irxevent button = 2 config = Key SHIFT-2 CurrentWindow end begin prog = irxevent button = 3 config = Key SHIFT-3 CurrentWindow end begin prog = irxevent button = 4 config = Key SHIFT-4 CurrentWindow end begin prog = irxevent button = 5 config = Key SHIFT-5 CurrentWindow end begin prog = irxevent button = 6 config = Key SHIFT-6 CurrentWindow end begin prog = irxevent button = 7 config = Key SHIFT-7 CurrentWindow end begin prog = irxevent button = 8 config = Key SHIFT-8 CurrentWindow end begin prog = irxevent button = 9 config = Key SHIFT-9 CurrentWindow end begin prog = irxevent button = 0 config = Key SHIFT-0 CurrentWindow end
Vous pouvez utiliser des interfaces graphiques avec irkick (il faut aussi installer kdelirc).
Pour finir, il faut ajouter au démarrage :
- Sur gnome : Système-Préférences-Sessions-Programmes au démarrage : irxevent puis irexec
- Sur kde :
kate ~/.kde/Autostart/irexec #!/bin/bash irexec
kate ~/.kde/Autostart/irxevent #!/bin/bash irxevent
chmod u+x ~/.kde/Autostart/irexec ~/.kde/Autostart/irxevent