No – I don’t think it will ever come to eventlircd.
Working on something slightly different
Sam
No – I don’t think it will ever come to eventlircd.
Working on something slightly different
Sam
Sam, what’s the status of this? Is there a way to map a long press of the Vero remote?
It’s still a work in progress.
Hey @sam_nazarko, I wonder If you could help. I’ve implemented a custom keymap based on this thread to get longpress working before the latest March update.
I’m now trying to unwind my customisations.
I disabled eventlircd
using systemctl mask eventlircd
so it’s not running anymore. Do I need to restart it?
I’ve got a custom keymap at ~/.kodi/userdata/keymaps/osmc-remote.xml
, but after the March update there’s nothing else in that folder. I understand as per this guide there should be a file called gen.xml
which includes the new config. How do I get that file?
Also the key ids I’ve used are different to what’s mentioned in the guide. My remote seems to be playing up now. Should I be using the ids from the guide?
Thanks
The new remote keymap does not utilise eventlircd at all, so there’s no need to disable it.
The osmc-remote.xml will be installed under system keymaps and not the local userdata directory.
The OSMC remotes no longer use eventlircd so it doesn’t really matter what is going on with that. That keymap file you have will load from that location and there is no issue with that. The gen.xml file is what keymap editor makes. If you never installed and opened that add-on then you will not have that file. I just referenced it in my guide to keep things simple. As for the Key id’s you will need to change them if you want to keep using your custom keymap. To work around some language issues and provide uniformity we have changed some of the layout at the system level. If you look at the last section of that guide in “technical” the first section lists the names or id’s that you would need to use.
Also note that this new keymap is quite a bit more complex than what you normally see (over 500 lines) so you might find that disabling the new custom keymap may be favorable if you are happy with the one you made (otherwise they load on top of each other). Otherwise if you want help integrating the two you could post what your using and let me take a look and I may be able to help.
OK that explains everything. Thanks so much!
Can i confirm the system keymap that’s being used is now at /usr/share/kodi/system/keymaps/osmc/osmc_remote.xml
?
When the custom keymap is enabled that is indeed the extra keymap that is loading to provide the new mappings. When the custom keymap is disabled we are fixing the mapping and (mostly) simulating the old behavior with the osmc_classic.xml file you will find one folder down from there.
I am a bit curious what you came up with if you wouldn’t mind posting your keymap.
That’s great thanks.
I’m still tweaking this keymap override with the latest update, so I’ll post it when I’ve got something a bit better. Main thing for me is getting the home button launching the shut down menu from anywhere with a long press so it’s easy to sleep the Vero and turn off the tv via CEC.
The idea behind how I set it up is that the home button from most places will go to the home screen with one or two button presses. So normally unless you are playing a video you press the home button once or twice and that takes you to the home screen and then you hold it down for half a second and it shuts everything down.
FYI The mapping for the home key I had to rework to get around an issue it caused with the Plex add-on. the changes for that key were actually quite extensive. I updated it but I don’t know if the updated map has made it out of staging yet. If the osmc_remote.xml on your system shows something earlier than…
<!-- Keymap created by DarwinDesign version 20-04-01 -->
you might want to hold off making too many changes just yet.