I’m trying to set up the Virgin Stream remote for Coreelec but am running into the issue that not all buttons are under the same event. They are under event 3,4 and 5 in the example below
evtest
Lounge:~ # evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: cec_input
/dev/input/event1: input_btrcu
/dev/input/event2: vad_keypad
/dev/input/event3: RemoteUnit Keyboard
/dev/input/event4: RemoteUnit Consumer Control
/dev/input/event5: RemoteUnit
/dev/input/event6: meson-ir
/dev/input/event7: eventlircd
Select the device event number [0-7]:
Below is the hwdb file - can anybody tell me how to make it so all buttons work all the time…!
Select / Channel up/down / EPG / context menu / Full screen are the buttons not working
evdev:input:b0005v057Ap0087*
# Power button -> stop playback
KEYBOARD_KEY_116=stop
# Home -> Kodi homepage (map to KEY_HOME)
KEYBOARD_KEY_172=home
# Guide -> TV EPG (map to KEY_PROG1)
KEYBOARD_KEY_148=prog1
# TV -> fullscreen playback (map to KEY_TV)
KEYBOARD_KEY_377=tv
# Back -> Back
KEYBOARD_KEY_158=back
# Three dots (context menu)
KEYBOARD_KEY_438=context_menu
# Mic/Search button -> Info
KEYBOARD_KEY_358=info
# Channel up/down
KEYBOARD_KEY_402=channelup
KEYBOARD_KEY_403=channeldown
# Record -> stop (same as stop playback)
KEYBOARD_KEY_167=stop
# Rewind
KEYBOARD_KEY_168=rewind
# Play/Pause
KEYBOARD_KEY_164=playpause
# Forward (Fast forward)
KEYBOARD_KEY_208=fastforward
# Numeric buttons 1 to 9
KEYBOARD_KEY_2=1
KEYBOARD_KEY_3=2
KEYBOARD_KEY_4=3
KEYBOARD_KEY_5=4
KEYBOARD_KEY_6=5
KEYBOARD_KEY_7=6
KEYBOARD_KEY_8=7
KEYBOARD_KEY_9=8
KEYBOARD_KEY_10=9
# Red
KEYBOARD_KEY_398=red
# Green
KEYBOARD_KEY_399=green
# Yellow
KEYBOARD_KEY_400=yellow
# Blue
KEYBOARD_KEY_401=blue