I have just got a new remote via your ebay shop. Everything seems to work apart from the Stop button out of the box.
I have since tried the above which still does not work.
How do I test the stop button actually works and is not a faulty remote?
My system is lubuntu-22.04.4(LXQt) with Kodi v21
Thanks
Did you copy and paste the contents from [this post] to a file located at /etc/udev/hwdb.d/osmcrf.hwdb
and then reboot afterwards? I ask because udev is very particular about how that file is formed, and the one I just pointed to is the only one I updated to cover the model remote you purchased. Can you also check the permissions on the file and make sure it is set as 644. If memory serves it doesnāt work if an execution permission is set.
If everything looks correct with that file I would install and run evtest in the terminal to check the buttons. The remote will show up in two different entries and some buttons register with one and the rest with the other. If you could let me know how the stop button is showing up that would be helpful.
I donāt think your looking at an issue with the remote being faulty. For some reason the multimedia stop key the remote is programmed to send isnāt working in some Linux GUIās. The why is elusive to me but the above file should remap the stop key to send āxā instead which Kodi will treat the same as āstopā
Thanks for posting here, much easier than eBay which filters links and makes it hard to troubleshoot.
Please try @darwindesignās steps first
It all looks good with the hwdb file but still the same.
Output from evtest:
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Power Button
/dev/input/event2: Video Bus
/dev/input/event3: OSMC Remote Controller OSMC Remote Controller
/dev/input/event4: OSMC Remote Controller OSMC Remote Controller Mouse
/dev/input/event5: OSMC Remote Controller OSMC Remote Controller System Control
/dev/input/event6: OSMC Remote Controller OSMC Remote Controller Consumer Control
/dev/input/event7: PixArt Dell MS116 USB Optical Mouse
/dev/input/event8: Apple, Inc Apple Keyboard
/dev/input/event9: Apple, Inc Apple Keyboard
/dev/input/event10: HDA Intel HDMI HDMI/DP,pcm=3
/dev/input/event11: HDA Intel HDMI HDMI/DP,pcm=7
/dev/input/event12: HDA Intel HDMI HDMI/DP,pcm=8
/dev/input/event13: HDA Intel PCH Mic
/dev/input/event14: HDA Intel PCH Headphone
Select the device event number [0-14]: 6
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x2017 product 0x1690 version 0x110
Input device name: āOSMC Remote Controller OSMC Remote Controller Consumer Controlā
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 28 (KEY_ENTER)
Event code 74 (KEY_KPMINUS)
Event code 78 (KEY_KPPLUS)
Event code 103 (KEY_UP)
Event code 105 (KEY_LEFT)
Event code 106 (KEY_RIGHT)
Event code 108 (KEY_DOWN)
Event code 110 (KEY_INSERT)
Event code 111 (KEY_DELETE)
Event code 113 (KEY_MUTE)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 116 (KEY_POWER)
Event code 119 (KEY_PAUSE)
Event code 128 (KEY_STOP)
Event code 130 (KEY_PROPS)
Event code 131 (KEY_UNDO)
Event code 133 (KEY_COPY)
Event code 134 (KEY_OPEN)
Event code 135 (KEY_PASTE)
Event code 136 (KEY_FIND)
Event code 137 (KEY_CUT)
Event code 138 (KEY_HELP)
Event code 139 (KEY_MENU)
Event code 140 (KEY_CALC)
Event code 142 (KEY_SLEEP)
Event code 144 (KEY_FILE)
Event code 150 (KEY_WWW)
Event code 152 (KEY_SCREENLOCK)
Event code 155 (KEY_MAIL)
Event code 156 (KEY_BOOKMARKS)
Event code 158 (KEY_BACK)
Event code 159 (KEY_FORWARD)
Event code 161 (KEY_EJECTCD)
Event code 163 (KEY_NEXTSONG)
Event code 164 (KEY_PLAYPAUSE)
Event code 165 (KEY_PREVIOUSSONG)
Event code 166 (KEY_STOPCD)
Event code 167 (KEY_RECORD)
Event code 168 (KEY_REWIND)
Event code 169 (KEY_PHONE)
Event code 171 (KEY_CONFIG)
Event code 172 (KEY_HOMEPAGE)
Event code 173 (KEY_REFRESH)
Event code 174 (KEY_EXIT)
Event code 176 (KEY_EDIT)
Event code 177 (KEY_SCROLLUP)
Event code 178 (KEY_SCROLLDOWN)
Event code 181 (KEY_NEW)
Event code 182 (KEY_REDO)
Event code 206 (KEY_CLOSE)
Event code 207 (KEY_PLAY)
Event code 208 (KEY_FASTFORWARD)
Event code 209 (KEY_BASSBOOST)
Event code 210 (KEY_PRINT)
Event code 212 (KEY_CAMERA)
Event code 216 (KEY_CHAT)
Event code 217 (KEY_SEARCH)
Event code 219 (KEY_FINANCE)
Event code 223 (KEY_CANCEL)
Event code 224 (KEY_BRIGHTNESSDOWN)
Event code 225 (KEY_BRIGHTNESSUP)
Event code 228 (KEY_KBDILLUMTOGGLE)
Event code 229 (KEY_KBDILLUMDOWN)
Event code 230 (KEY_KBDILLUMUP)
Event code 231 (KEY_SEND)
Event code 232 (KEY_REPLY)
Event code 233 (KEY_FORWARDMAIL)
Event code 234 (KEY_SAVE)
Event code 235 (KEY_DOCUMENTS)
Event code 240 (KEY_UNKNOWN)
Event code 241 (KEY_VIDEO_NEXT)
Event code 244 (KEY_BRIGHTNESS_ZERO)
Event code 256 (BTN_0)
Event code 353 (KEY_SELECT)
Event code 354 (KEY_GOTO)
Event code 358 (KEY_INFO)
Event code 362 (KEY_PROGRAM)
Event code 366 (KEY_PVR)
Event code 370 (KEY_SUBTITLE)
Event code 372 (KEY_ZOOM)
Event code 374 (KEY_KEYBOARD)
Event code 375 (KEY_SCREEN)
Event code 376 (KEY_PC)
Event code 377 (KEY_TV)
Event code 378 (KEY_TV2)
Event code 379 (KEY_VCR)
Event code 380 (KEY_VCR2)
Event code 381 (KEY_SAT)
Event code 383 (KEY_CD)
Event code 384 (KEY_TAPE)
Event code 386 (KEY_TUNER)
Event code 387 (KEY_PLAYER)
Event code 389 (KEY_DVD)
Event code 392 (KEY_AUDIO)
Event code 393 (KEY_VIDEO)
Event code 396 (KEY_MEMO)
Event code 397 (KEY_CALENDAR)
Event code 398 (KEY_RED)
Event code 399 (KEY_GREEN)
Event code 400 (KEY_YELLOW)
Event code 401 (KEY_BLUE)
Event code 402 (KEY_CHANNELUP)
Event code 403 (KEY_CHANNELDOWN)
Event code 405 (KEY_LAST)
Event code 407 (KEY_NEXT)
Event code 408 (KEY_RESTART)
Event code 409 (KEY_SLOW)
Event code 410 (KEY_SHUFFLE)
Event code 412 (KEY_PREVIOUS)
Event code 416 (KEY_VIDEOPHONE)
Event code 417 (KEY_GAMES)
Event code 418 (KEY_ZOOMIN)
Event code 419 (KEY_ZOOMOUT)
Event code 420 (KEY_ZOOMRESET)
Event code 421 (KEY_WORDPROCESSOR)
Event code 422 (KEY_EDITOR)
Event code 423 (KEY_SPREADSHEET)
Event code 424 (KEY_GRAPHICSEDITOR)
Event code 425 (KEY_PRESENTATION)
Event code 426 (KEY_DATABASE)
Event code 427 (KEY_NEWS)
Event code 428 (KEY_VOICEMAIL)
Event code 429 (KEY_ADDRESSBOOK)
Event code 430 (KEY_MESSENGER)
Event code 431 (KEY_DISPLAYTOGGLE)
Event code 432 (KEY_SPELLCHECK)
Event code 433 (KEY_LOGOFF)
Event code 439 (KEY_MEDIA_REPEAT)
Event code 442 (KEY_IMAGES)
Event code 576 (KEY_BUTTONCONFIG)
Event code 577 (KEY_TASKMANAGER)
Event code 578 (KEY_JOURNAL)
Event code 579 (KEY_CONTROLPANEL)
Event code 580 (KEY_APPSELECT)
Event code 581 (KEY_SCREENSAVER)
Event code 582 (KEY_VOICECOMMAND)
Event code 583 (KEY_ASSISTANT)
Event code 585 (?)
Event code 586 (?)
Event code 587 (?)
Event code 588 (?)
Event code 589 (?)
Event code 592 (KEY_BRIGHTNESS_MIN)
Event code 593 (KEY_BRIGHTNESS_MAX)
Event type 2 (EV_REL)
Event code 6 (REL_HWHEEL)
Event code 12 (REL_HWHEEL_HI_RES)
Event type 3 (EV_ABS)
Event code 32 (ABS_VOLUME)
Value 0
Min 0
Max 668
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ā¦ (interrupt to exit)
Event: time 1714663532.241462, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0226
Event: time 1714663532.241462, type 1 (EV_KEY), code 128 (KEY_STOP), value 1
Event: time 1714663532.241462, -------------- SYN_REPORT ------------
Event: time 1714663532.345468, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0226
Event: time 1714663532.345468, type 1 (EV_KEY), code 128 (KEY_STOP), value 0
Event: time 1714663532.345468, -------------- SYN_REPORT ------------
That is just pressing the button once.
Thanks for that. That is the issue previously identified but I donāt know off hand why the remapping isnāt working on that OS the same as it does with Mint and OSMC where previous testing had been done. Iāll spin up a VM of lubuntu and take a look of what may be going on and report back.
I figured it out and if you run the following at the terminal it should start working as intendedā¦
sudo systemd-hwdb update && sudo udevadm trigger
Iāve updated the solution post with updated instructions as well. Please do let us know if this sorts things out for you.
Indeed, thatās in our packages postinst rules.
We could build a small Debian package for users that installs the needed files as there are no binaries and it would make it easy to install / remove
That has got it. Works fine now. Thanks for your help.
Would be great if you could have a script we could run or something like Sam has suggested.
I chose this remote as I thought everything worked out of the box.
1 Like
Great to hear, thanks for checking back. Your very welcome.
The remote works out of the box fully with OSMC and LibreELEC. With other Debian based distros it should work fully with that udev remap. You should find that Kodi identifies this remote specifically and loads a custom keymap that refines it out of box well beyond any other Kodi remote.
Hi,
I have made a script available now which will handle the installation and removal of the remote keymap for Debian and Ubuntu based distributions.
See: GitHub - osmc/remote-linux: Script to enable OSMC RF remote functionality under Linux
Thanks to @darwindesign for testing it and making suggestions
1 Like