NEWS
LIRC Adapter Funktion mit RPI4
-
@johndoe sagte in LIRC Adapter Funktion mit RPI4:
/dev/lirc0
Wie sehen da die Rechte aus?
ls -l /dev/lirc0
-
@thomas-braun said in LIRC Adapter Funktion mit RPI4:
ls -l /dev/lirc0
crw-rw---- 1 root video 251, 0 Aug 13 16:18 /dev/lirc0
-
Ist der user iobroker in der Gruppe 'video' drin?
Vermutlich nicht.sudo -u iobroker groups
-
iobroker tty dialout audio video bluetooth gpio i2c
-
Bitte vollständige Ein- und Ausgabezeilen posten.
Lirc ist etwas tricky. Im Ubuntu-Wiki gibt es noch ein paar Hinweise:
-
@thomas-braun said in LIRC Adapter Funktion mit RPI4:
Bitte vollständige Ein- und Ausgabezeilen posten.
Was meinst du?
So:$ sudo -u iobroker groups iobroker tty dialout audio video bluetooth gpio i2c
Mehr kommt da nicht.
-
So.
echad@chet:/opt/iobroker $ sudo -u iobroker groups iobroker tty dialout audio video plugdev bluetooth gpio i2c
-
SHPI@SmartHomePi:~ $ sudo -u iobroker groups iobroker tty dialout audio video bluetooth gpio i2c
-
Aber Fakt ist doch, dass der LIRC Adapter mit lirc verbunden ist und lirc auch sendet.
Was bedeutet das denn:Aug 13 17:59:10 SmartHomePi lircd-0.10.1[502]: Info: Cannot configure the rc device for /dev/lirc0
?
-
Vermutlich nichts, du willst ja keine rc / Fernbedienung betreiben.
-
Kann es daran liegen:
SHPI@SmartHomePi:~ $ sudo systemctl restart lirc.service Failed to restart lirc.service: Unit lirc.service not found.
?
-
-
Hat es was zu sagen, dass die Meldungen von lircd.service doppelt kommen:
SHPI@SmartHomePi:~ $ systemctl status lircd.service ● lircd.service - Flexible IR remote input/output application support Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2022-08-13 20:51:49 CEST; 5min ago TriggeredBy: ● lircd.socket Docs: man:lircd(8) http://lirc.org/html/configure.html Main PID: 965 (lircd) Tasks: 2 (limit: 1829) CPU: 1.815s CGroup: /system.slice/lircd.service └─965 /usr/sbin/lircd --nodaemon Aug 13 20:53:01 SmartHomePi lircd[965]: lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1 Aug 13 20:53:01 SmartHomePi lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1 Aug 13 20:53:02 SmartHomePi lircd[965]: lircd-0.10.1[965]: Info: removed client Aug 13 20:53:02 SmartHomePi lircd[965]: lircd-0.10.1[965]: Info: removed client Aug 13 20:53:02 SmartHomePi lircd-0.10.1[965]: Info: removed client Aug 13 20:53:02 SmartHomePi lircd-0.10.1[965]: Info: removed client Aug 13 20:53:33 SmartHomePi lircd[965]: lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1 Aug 13 20:53:33 SmartHomePi lircd-0.10.1[965]: Notice: accepted new client from 127.0.0.1 Aug 13 20:53:33 SmartHomePi lircd[965]: lircd-0.10.1[965]: Info: Cannot configure the rc device for /dev/lirc0 Aug 13 20:53:33 SmartHomePi lircd-0.10.1[965]: Info: Cannot configure the rc device for /dev/lirc0
?
Ich habe LIRC noch mal neu installiert und konfiguriert: Keine Änderung.
Der LIRC-Adapter ist mit dem Client verbunden und über die RPI-Konsole kann ich IR-Kommandos schicken.
Aber im IOBroker werden die Fernbedienung-KEYs nicht angezeigt. -
Nachdem ich jetzt alles noch mal neu installiert und konfiguriert habe, läuft LIRC einwandfrei.