I’m trying to start/stop Kodi via the script in the link. I’ve done a fresh install of osmc, created the mediacenter script, made it executable and created the /etc/triggerhappy/triggers.d/osmc.conf file with the suggested content and before that installed triggerhappy.
I’ve been at it a few days now, but I can’t seem to get it to work. I’m using a Harmony One, which is set to send Xbox 360 commands and my osmc is setup accordingly. The Harmony works fine controlling osmc’s interface. Evtest is not working though, there’s no response.
When I run evtest, after I disable lirceventd (otherwise it’s in use). I get no response on the right input (meson-ir). No reaction on any of the IR commands.
No reaction even with the official remote?
Unfortunately, I never used the built-in receiver as I already owned a Flirc and found it a bit more sensitive to IR inputs.
The official (RF) remote gives the expected results. I also own a better receiver, but it has the same problem. (mce receiver). The built-in receiver works just fine though navigating the kodi interface.
output:
osmc@HTPC:~$ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0: gpio_keypad
/dev/input/event1: cec_input
/dev/input/event2: OSMC Remote Controller USB Keyboard Mouse
/dev/input/event3: OSMC Remote Controller USB Keyboard Mouse
/dev/input/event4: meson-ir
Select the device event number [0-4]: 2
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x2017 product 0x1688 version 0x110
Input device name: “OSMC Remote Controller USB Keyboard Mouse”
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 2 (KEY_1)
Event code 3 (KEY_2)
Event code 4 (KEY_3)
etc.
Key repeat handling:
Repeat type 20 (EV_REP)
Repeat code 0 (REP_DELAY)
Value 500
Repeat code 1 (REP_PERIOD)
Value 50
Properties:
Testing … (interrupt to exit)
Event: time 1621343128.792943, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70051
Event: time 1621343128.792943, type 1 (EV_KEY), code 108 (KEY_DOWN), value 1
Event: time 1621343128.792943, -------------- SYN_REPORT ------------
Event: time 1621343128.904911, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70051
Event: time 1621343128.904911, type 1 (EV_KEY), code 108 (KEY_DOWN), value 0