Ich versuche seit der Einführung von Stretch nun schon LIRC zum Laufen zu bekommen.
Ich habe schon alles versucht was ich dazu finden konnte.
So habe ich sowohl die Anleitung https://gist.github.com/prasanthj/c15a5298eb682bde34961c322c95378b (https://gist.github.com/prasanthj/c15a5298eb682bde34961c322c95378b) als auch https://forum.fhem.de/index.php/topic,86080.msg869676.html#msg869676 (https://forum.fhem.de/index.php/topic,86080.msg869676.html#msg869676) versucht, beides ohne Erfolg.
Wenn ich mode2 -d /dev/lirc0 aufrufe kommt immer:
Using driver default on device /dev/lirc0
Cannot initiate device /dev/lirc0
Start und stop scheinen Einwandfrei zu funktionieren.
Status ergibt:
pi@raspberrypi:~$ sudo /etc/init.d/lircd status
● lircd.service - Flexible IR remote input/output application support
Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2019-07-06 11:51:36 CEST; 10min ago
Docs: man:lircd(
http://lirc.org/html/configure.html
Process: 699 ExecStart=/usr/sbin/lircd --nodaemon (code=killed, signal=TERM)
Main PID: 699 (code=killed, signal=TERM)
Jul 06 11:51:21 raspberrypi lircd[699]: lircd-0.9.4c[699]: Notice: lircd(default) ready, using /var/run/lirc/lircd
Jul 06 11:51:21 raspberrypi lircd-0.9.4c[699]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput: Multiple values for same code: BTN_TRIGGER_HAPPY1
Jul 06 11:51:21 raspberrypi lircd-0.9.4c[699]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput: Multiple values for same code: BTN_WHEEL
Jul 06 11:51:21 raspberrypi lircd-0.9.4c[699]: Error: error in configfile line 1
Jul 06 11:51:21 raspberrypi lircd-0.9.4c[699]: Error: reading of file '/etc/lirc/lircd.conf.d/hardware.conf' failed
Jul 06 11:51:21 raspberrypi lircd-0.9.4c[699]: Warning: config file /etc/lirc/lircd.conf contains no valid remote control definition
Jul 06 11:51:21 raspberrypi lircd-0.9.4c[699]: Notice: lircd(default) ready, using /var/run/lirc/lircd
Jul 06 11:51:36 raspberrypi lircd[699]: lircd-0.9.4c[699]: Notice: caught signal
Jul 06 11:51:36 raspberrypi systemd[1]: Stopping Flexible IR remote input/output application support...
Jul 06 11:51:36 raspberrypi systemd[1]: Stopped Flexible IR remote input/output application support.
Meine Config Dateien
/etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
i2c-dev
lirc_dev
lirc_rpi gpio_in_pin=23 gpio_out_pin=18
/etc/lirc/hardware.conf
LIRCD_ARGS="--uinput --listen"
LOAD_MODULES=true
DRIVER="default"
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
/boot/config.txt
# Uncomment this to enable the lirc-rpi module
dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=18,gpio_in_pull=up
#dtparam=gpio_out_pin=18
#dtparam=gpio_in_pin=23
/etc/lirc/lirc_options.conf
# These are the default options to lircd, if installed as
# /etc/lirc/lirc_options.conf. See the lircd( and lircmd(
# manpages for info on the different options.
#
# Some tools including mode2 and irw uses values such as
# driver, device, plugindir and loglevel as fallback values
# in not defined elsewhere.
[lircd]
nodaemon = False
driver = default
device = /dev/lirc0
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
#effective-user =
#listen = [address:]port
#connect = host[:port]
#loglevel = 6
#uinput = ...
#release = ...
#logfile = ...
[lircmd]
uinput = False
nodaemon = False
# [modinit]
# code = /usr/sbin/modprobe lirc_serial
# code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput
# code2 = ...
# [lircd-uinput]
# release-timeout = 200
Ich habe auch schon lirc deinstalliert und erneut installiert, weiß wirklich nicht was ich noch überprüfen könnte.
Für Hilfestellung wäre ich wirklich sehr Dankbar
Hey,
das ist ja verrückt. Ich glaube ich hatte das selbe Problem Mitte der Woche und wollte grade die Lösung dazu für andere posten, wobei ich per Suche auf deine Frage gestoßen bin.
Versuch mal in der config.txt das hier reinzusetzen:
dtoverlay=gpio-ir,gpio_pin=23
dtoverlay=gpio-ir-tx,gpio_pin=22
statt deinem
dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=18,gpio_in_pull=up
Erste Zeile ist der Receive-Pin, zweite der Send-Pin. Natürlich musst du die Zahlen anpassen. :)
Hoffe es hilft!
Habe die Info von hier:
https://www.raspberrypi.org/forums/viewtopic.php?t=235918 (https://www.raspberrypi.org/forums/viewtopic.php?t=235918)
Scheinbar wurde das "lirc-rpi" im aktuellen Kernel ersetzt und man muss nun gpio-ir nutzen. Im Detail weiß ich aber leider auch nicht, was da abgeht und ich hatte WIRKLICH Glück nach 1h Google auf diesen Tipp zu stoßen! Daher wollte ich ihn so oder so hier verbreiten!
Patrick
Danke für den Tip,
leider kommt dann auch nur dieser Hinweis:
mode2 -d /dev/lirc0
Using driver default on device /dev/lirc0
Trying device: /dev/lirc0
Please use the --raw option to access the device directly instead through the abstraction layer
Grüße Uli