|
From: André W. <And...@we...> - 2018-12-29 08:54:50
|
On 28.12.2018 23:04, Alec Leamas wrote: > On 28/12/18 19:46, André Weidemann wrote: >> Hi, >> >> yesterday I upgrade my machine from 16.04 to 18.04. >> Currently lirc 0.10.0-2 is installed from the Ubuntu repositories. > >> Since it complained about the invalid port "auto" I specified one: >> /usr/sbin/lircd -c 192.168.3.125:8765 --driver=udp --nodaemon >> ...which made things even worse. >> >> The output varies on every invocation. Here are a few examples: >> lircd: bad port number "8765ce: %s��N��U" >> lircd: bad port number "8765ce: %s� �ơU" >> lircd: bad port number "8765ce: %s�>KV" >> lircd: bad port number "8765ce: %s֠�M�U" >> lircd: bad port number "8765ce: %s��-V" >> lircd: bad port number "8765ce: %s֠�}�U" > > > Hmn... Reading the udp driver docs at [1] I think the device > specification might be wrong. > > That said it certainly fails bad enough to file a bug. I'm unsure what driver to use when all I want is a network connection to a Raspberry PI where the actual TSOP is connected. I took a look into /usr/share/doc/lirc/README.Debian.gz and tried to follow the guide lines. I edited /etc/lirc/lirc_options.conf and added a "connect" line. So the file looks like this: [lircd] nodaemon = False driver = devinput device = auto output = /var/run/lirc/lircd pidfile = /var/run/lirc/lircd.pid plugindir = /usr/lib/x86_64-linux-gnu/lirc/plugins permission = 666 allow-simulate = No repeat-max = 600 connect = 192.168.3.125 [lircmd] uinput = False nodaemon = False After running "systemctl start lircd" "journalct -u lircd" shows several lines containing "Error:"... which I think should be irrelevant when running in network mode. Dec 29 01:04:39 server systemd[1]: Stopping Flexible IR remote input/output application support... Dec 29 01:04:39 server lircd[22356]: lircd-0.10.0[22356]: Info: closing 'auto' Dec 29 01:04:39 server lircd-0.10.0[22356]: Info: closing 'auto' Dec 29 01:04:39 server systemd[1]: Stopped Flexible IR remote input/output application support. Dec 29 01:04:39 server systemd[1]: Started Flexible IR remote input/output application support. Dec 29 01:04:39 server lircd-0.10.0[11008]: Info: lircd: Opening log, level: Info Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Version: lircd 0.10.0 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: System info: Linux server 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Dec 29 01:04:39 server lircd-0.10.0[11008]: Info: Initial device: auto Dec 29 01:04:39 server lircd-0.10.0[11008]: Info: Initial device: auto Dec 29 01:04:39 server lircd[11008]: lircd-0.10.0[11008]: Info: lircd: Opening log, level: Info Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: driver: devinput Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: output: /var/run/lirc/lircd Dec 29 01:04:39 server lircd[11008]: lircd-0.10.0[11008]: Warning: Running as root Dec 29 01:04:39 server lircd[11008]: lircd-0.10.0[11008]: Info: Using remote: /etc/lirc/lircd.conf. Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: nodaemon: 1 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: plugindir: /usr/lib/x86_64-linux-gnu/lirc/plugins Dec 29 01:04:39 server lircd[11008]: lircd-0.10.0[11008]: Notice: lircd(devinput) ready, using /var/run/lirc/lircd Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: logfile: syslog Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: immediate-init: 0 Dec 29 01:04:39 server lircd[11008]: lircd-0.10.0[11008]: Name lookup failure connecting to 192.168.3.125U: Success Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: permission: 666 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: driver-options: Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: pidfile: /var/run/lirc/lircd.pid Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: listen: 0 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: connect: 192.168.3.125 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: userelease: 0 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: effective_user: (null) Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: release_suffix: _EVUP Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: allow_simulate: 0 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: repeat_max: 600 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: configfile: /etc/lirc/lircd.conf Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Options: dynamic_codes: (null) Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Current driver: devinput Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Driver API version: 4 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Driver version: 0.10.0 Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: Driver info: See file:///usr/share/doc/lirc/plugindocs/devinput.html Dec 29 01:04:39 server lircd-0.10.0[11008]: Info: lircd: Opening log, level: Info Dec 29 01:04:39 server lircd-0.10.0[11008]: Warning: Running as root Dec 29 01:04:39 server lircd-0.10.0[11008]: Info: Using remote: /etc/lirc/lircd.conf. Dec 29 01:04:39 server lircd-0.10.0[11008]: Notice: lircd(devinput) ready, using /var/run/lirc/lircd Dec 29 01:04:39 server lircd-0.10.0[11008]: Name lookup failure connecting to 192.168.3.125U: Success Dec 29 01:04:42 server lircd-0.10.0[11008]: Notice: accepted new client on /var/run/lirc/lircd Dec 29 01:04:42 server lircd[11008]: lircd-0.10.0[11008]: Notice: accepted new client on /var/run/lirc/lircd Dec 29 01:04:42 server lircd[11008]: lircd-0.10.0[11008]: Info: initializing 'auto' Dec 29 01:04:42 server lircd[11008]: lircd-0.10.0[11008]: Cannot run glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*: No such file or directory Dec 29 01:04:42 server lircd[11008]: lircd-0.10.0[11008]: Notice: No input device available for devinput driver. Consider stopping lircd.socket or reconfigure lirc Dec 29 01:04:42 server lircd[11008]: lircd-0.10.0[11008]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]* Dec 29 01:04:42 server lircd[11008]: lircd-0.10.0[11008]: Warning: Failed to initialize hardware Dec 29 01:04:42 server lircd-0.10.0[11008]: Info: initializing 'auto' Dec 29 01:04:42 server lircd-0.10.0[11008]: Cannot run glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*: No such file or directory Dec 29 01:04:42 server lircd-0.10.0[11008]: Notice: No input device available for devinput driver. Consider stopping lircd.socket or reconfigure lirc Dec 29 01:04:42 server lircd-0.10.0[11008]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]* Dec 29 01:04:42 server lircd-0.10.0[11008]: Warning: Failed to initialize hardware Dec 29 01:04:43 server lircd[11008]: lircd-0.10.0[11008]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]* Dec 29 01:04:43 server lircd-0.10.0[11008]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]* Dec 29 01:04:44 server lircd[11008]: lircd-0.10.0[11008]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]* Dec 29 01:04:44 server lircd-0.10.0[11008]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]* Calling irw does not show anything. Even while lircd is running I can see no network traffic to the Raspberry PI. "tcpdump -n -i br0 host 192.168.3.125" produced no ouput at all... Also "netstat -aunp|grep 192.168.3.125" or "netstat -atnp|grep 192.168.3.125" does not show a single line. Kind Regards André |