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.
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.
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
/dev/input/event2: OSMC Remote Controller USB Keyboard Mouse
/dev/input/event3: OSMC Remote Controller USB Keyboard Mouse
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”
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)
Key repeat handling:
Repeat type 20 (EV_REP)
Repeat code 0 (REP_DELAY)
Repeat code 1 (REP_PERIOD)
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