Vor kurzem habe ich bereits drei HowTo’s für Ubuntu veröffentlicht.
HTPC – Media Center – Logitech Harmony reagiert träge unter Windows und Linux
Linux – LIRC – XBMC mit Logitech Harmony steuern – Lircmap.xml und Keyboard.xml
Ubuntu (alle Versionen) – LIRC Konfiguration mit MCE RC6 IR605Q (147a:e03e) und Logitech Harmony
Nun möchte ich den MCE RC6 Infrarot Empfänger – Modell IR605Q aber mit dem aktuellsten Arch Linux betreiben (Stand: 03.02.2012).
EDIT: Einen Gutscheincode für den RC6 Infrarot Empfänger – Modell IR605Q gibt es hier – gültig bis 7. Februar 2012!
lsusb | grep -i formosa Bus 003 Dev 003: ID 147a:e03e Formosa Industrial Computing, Inc. Infrared Receiver [IR605A/Q]
uname -r 3.2.2-1-ARCH
lircd -v lircd 0.9.0
Diese HowTo funktioniert auch für Ubuntu 11.10 (Danke Fab) und sollte dann auch für 12.04 funktionieren!
ACHTUNG: In der Harmony muss das richtige MCE Profil (Windows Media Center SE) ausgewählt sein – HowTo – Danke Fab.
UPDATE_2013-01-18: Mit der systemd Umstellung hat sich auch die LIRC Konfiguration ein klein wenig geändert – hier mehr.
Das Besondere an dieser LIRC-Konfiguration ist, dass es einige Änderungen in der Kernel- und LIRC-Version gab – der aktuelle Kernel erkennt den MCE-IR-Empfänger bereits ohne LIRC! Daher ist in der hardware.conf REMOTE_DRIVER und REMOTE_MODULES leer …
vi /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="Windows Media Center Transceivers/Remotes (all)" REMOTE_MODULES="" REMOTE_DRIVER="" REMOTE_DEVICE="/dev/lirc0" REMOTE_SOCKET="" REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb" REMOTE_LIRCD_ARGS="" #Chosen IR Transmitter TRANSMITTER="None" TRANSMITTER_MODULES="" TRANSMITTER_DRIVER="" TRANSMITTER_DEVICE="" TRANSMITTER_SOCKET="" TRANSMITTER_LIRCD_CONF="" TRANSMITTER_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=""
… und hier noch die dazugehörige lircd.conf.
vi /etc/lirc/lircd.conf
#This configuration has been automatically generated via #the Ubuntu LIRC package maintainer scripts. # #It includes the default configuration for the remote and/or #transmitter that you have selected during package installation. # #Feel free to add any custom remotes to the configuration #via additional include directives or below the existing #Ubuntu include directives from your selected remote and/or #transmitter. #Configuration for the Windows Media Center Transceivers/Remotes (all) remote: include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"
BESONDERHEIT: Damit nicht der Kernel die Eingaben der Fernbedienung verarbeitet, sondern LIRC, muss noch ein zusätzlicher Befehl beim Starten ausgeführt werden. Diesen packen wir am Besten in die rc.local.
vi /etc/rc.local
echo lirc > /sys/class/rc/rc0/protocols
Des Weiteren wurden bei LIRC 0.9.0 die Namen der LIRC-Tasten verändert (/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb). Daher müssen wir noch die XBMC Lircmap.xml (von der Ubuntu-HowTo) anpassen.
vi /home/USERNAME/.xbmc/userdata/Lircmap.xml
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml --> <!-- --> <!-- How to add remotes --> <!-- <remote device="name_Lirc_calls_the_remote"> --> <!-- --> <!-- For the commands the layout following layout is used --> <!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND> --> <!-- --> <!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml --> <!-- --> <!-- Logitech Harmony --> <!-- loggn.de - Nico Hartung --> <!-- https://www.loggn.de/linux-ubuntu-lirc-xbmc-mit-logitech-harmony-steuern-lircmap-xml-und-keyboard-xml/ --> <!-- --> <lircmap> <remote device="mceusb"> <!-- no Display --> <power>KEY_POWER</power> <teletext>Teletext</teletext> <menu>KEY_DVD</menu> <back>KEY_BACK</back> <info>More</info> <guide>Guide</guide> <red>KEY_RED</red> <green>KEY_GREEN</green> <yellow>KEY_YELLOW</yellow> <blue>KEY_BLUE</blue> <left>KEY_LEFT</left> <right>KEY_RIGHT</right> <up>KEY_UP</up> <down>KEY_DOWN</down> <select>KEY_OK</select> <volumeplus>KEY_VOLUMEUP</volumeplus> <volumeminus>KEY_VOLUMDOWN</volumeminus> <pageplus>KEY_CHANNELUP</pageplus> <pageminus>KEY_CHANNELDOWN</pageminus> <mute>KEY_MUTE</mute> <play>KEY_PLAY</play> <pause>KEY_PAUSE</pause> <stop>KEY_STOP</stop> <forward>KEY_FORWARD</forward> <reverse>KEY_REWIND</reverse> <skipplus>KEY_NEXT</skipplus> <skipminus>KEY_AGAIN</skipminus> <record>KEY_RECORD</record> <one>KEY_1</one> <two>KEY_2</two> <three>KEY_3</three> <four>KEY_4</four> <five>KEY_5</five> <six>KEY_6</six> <seven>KEY_7</seven> <eight>KEY_8</eight> <nine>KEY_9</nine> <zero>KEY_0</zero> <clear>KEY_CLEAR</clear> <enter>KEY_ENTER</enter> <!-- with Display --> <display>Aspect</display> <start>Home</start> <myvideo>Videos</myvideo> <mymusic>Music</mymusic> <mypictures>Pictures</mypictures> <mytv>TV</mytv> <!-- old versions of harmony --> <star>Star</star> <hash>Hash</hash> </remote> </lircmap>
Die dazu passende Keyboard.xml bzw. Keymap.xml findet ihr in der Ubuntu-HowTo.
Viel Spaß! 😉
Schreibe einen Kommentar