Plex Media Player insists on listening for release events. Mythtv and Kodi work fine without them. When I try to enable them I have problems. I have written a small patch to eliminate release events in PMP but the developer does not like it. He thinks I should move away from LIRC. I need irexec. This is what I really need, and to get it I have to run LIRC. If there were an irexec alternative, I would consider trying something else.
When lircd-uniput is run with -a -r _EVUP --loglevel=debug switches, the debug log shows that the suffix is appended, but programs are registering double button presses instead of the release events (e.g. KEY_LEFT_EVUP). irw shows just the single button press and not the release event. In Plex Media Player, the log shows a lircd-uinput kernel event like KEY_BUTTON_71 that isn't even in the devinput.lircd.conf file, but this is okay because it is ignored anyway. The double button press still occurs here.
Using lircd with --release _EVUP works fine, but I understand this will be deprecated soon.
This is occuring with the devinput driver.
Two more things:
[1] On my Fedora 28 system, I can't seem to load the lircd-uinput.service file on boot. It fails trying to access the lircd socket. A restart fixes the problem. How can I fix this permanently?
[2] Is this actually working fine and is lircd-uinput supposed to echo everything received from lircd? This would not make sense to me. In that case, is there a better way to do this?
Thanks for continuing to maintain this program (and for any help!)
/etc/lirc/lirc_options.conf:
[lircd]
nodaemon = False
driver = devinput
#driver = default
device = auto
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib64/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
effective-user = lirc
#listen = [address:]port
#connect = host[:port]
#loglevel = 6
loglevel = 10
#release = False
#release_suffix = _EVUP
#logfile = ...
#driver-options = ...
[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]
add-release-events = True
release-timeout = 200
release-suffix = _EVUP
systemd log:
-- Logs begin at Thu 2013-12-19 10:20:27 EST, end at Sun 2018-05-06 12:55:28 EDT. --
May 06 12:49:25 htpc systemd[1]: Started Flexible IR remote input/output application support.
May 06 12:49:25 htpc lircd-0.10.0[927]: Info: lircd: Opening log, level: Info
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Version: lircd 0.10.0
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: System info: Linux htpc 4.16.6-302.fc28.x86_64 #1 SMP Wed May 2 00:07:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
May 06 12:49:25 htpc lircd-0.10.0[927]: Info: Initial device: auto
May 06 12:49:25 htpc lircd-0.10.0[927]: Info: Initial device: auto
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: driver: devinput
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: output: /var/run/lirc/lircd
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Info: lircd: Opening log, level: Info
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: nodaemon: 1
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: plugindir: /usr/lib64/lirc/plugins
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: logfile: syslog
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: immediate-init: 0
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: permission: 666
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: driver-options:
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: pidfile: /var/run/lirc/lircd.pid
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: listen: 0
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: connect: (null)
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: userelease: 0
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: effective_user: (null)
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: release_suffix: _EVUP
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: allow_simulate: 0
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: repeat_max: 600
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: configfile: /etc/lirc/lircd.conf
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Options: dynamic_codes: (null)
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Current driver: devinput
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Driver API version: 4
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Driver version: 0.10.0
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: Driver info: See file:///usr/share/doc/lirc/plugindocs/devinput.html
May 06 12:49:25 htpc lircd-0.10.0[927]: Info: lircd: Opening log, level: Info
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Info: Using remote: devinput-32.
May 06 12:49:25 htpc lircd-0.10.0[927]: Info: Using remote: devinput-32.
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_MISC
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_MOUSE
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_SOUTH
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_MISC
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_MOUSE
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_SOUTH
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TOOL_PEN
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TOOL_PEN
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER_HAPPY1
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER_HAPPY1
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_WHEEL
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: /etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_WHEEL
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Info: Using remote: mceusb.
May 06 12:49:25 htpc lircd-0.10.0[927]: Info: Using remote: mceusb.
May 06 12:49:25 htpc lircd[927]: lircd-0.10.0[927]: Notice: lircd(devinput) ready, using /var/run/lirc/lircd
May 06 12:49:25 htpc lircd-0.10.0[927]: Notice: lircd(devinput) ready, using /var/run/lirc/lircd
May 06 12:49:31 htpc lircd[927]: lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:49:31 htpc lircd[927]: lircd-0.10.0[927]: Info: initializing 'auto'
May 06 12:49:31 htpc lircd[927]: lircd-0.10.0[927]: Info: Using device: /dev/input/event12
May 06 12:49:31 htpc lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:49:31 htpc lircd[927]: lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:49:31 htpc lircd-0.10.0[927]: Info: initializing 'auto'
May 06 12:49:31 htpc lircd-0.10.0[927]: Info: Using device: /dev/input/event12
May 06 12:49:31 htpc lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:49:35 htpc lircd[927]: lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:49:35 htpc lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:53:08 htpc systemd[1]: Started Forward LIRC button presses as uinput events.
May 06 12:53:08 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Debug: lircd-uinput: Opening log, level: Debug
May 06 12:53:08 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Info: Reading data from /var/run/lirc/lircd, writing to /dev/uinput
May 06 12:53:08 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Info: Adding release events after a 200 ms timeout
May 06 12:53:08 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Info: Using "_LIRCUP" as release suffix
May 06 12:53:08 htpc lircd[927]: lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:53:08 htpc lircd-0.10.0[2784]: Debug: lircd-uinput: Opening log, level: Debug
May 06 12:53:08 htpc lircd-0.10.0[2784]: Info: Reading data from /var/run/lirc/lircd, writing to /dev/uinput
May 06 12:53:08 htpc lircd-0.10.0[2784]: Info: Adding release events after a 200 ms timeout
May 06 12:53:08 htpc lircd-0.10.0[2784]: Info: Using "_LIRCUP" as release suffix
May 06 12:53:08 htpc lircd-0.10.0[927]: Notice: accepted new client on /var/run/lirc/lircd
May 06 12:53:59 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Debug: Sending KEY_DOWN as 108:1
May 06 12:53:59 htpc lircd-0.10.0[2784]: Debug: Sending KEY_DOWN as 108:1
May 06 12:53:59 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Debug: Sending KEY_DOWN_LIRCUP as 108:0
May 06 12:53:59 htpc lircd-0.10.0[2784]: Debug: Sending KEY_DOWN_LIRCUP as 108:0
May 06 12:54:01 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Debug: Sending KEY_DOWN as 108:1
May 06 12:54:01 htpc lircd-0.10.0[2784]: Debug: Sending KEY_DOWN as 108:1
May 06 12:54:01 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Debug: Sending KEY_DOWN_LIRCUP as 108:0
May 06 12:54:01 htpc lircd-0.10.0[2784]: Debug: Sending KEY_DOWN_LIRCUP as 108:0
May 06 12:54:02 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Debug: Sending KEY_DOWN as 108:1
May 06 12:54:02 htpc lircd-0.10.0[2784]: Debug: Sending KEY_DOWN as 108:1
May 06 12:54:03 htpc lircd-uinput[2784]: lircd-0.10.0[2784]: Debug: Sending KEY_DOWN_LIRCUP as 108:0
May 06 12:54:03 htpc lircd-0.10.0[2784]: Debug: Sending KEY_DOWN_LIRCUP as 108:0