Krypton style IR remote configuration is back!

#44

@CGarces No need to reapply the update, just delete the file or rename and reboot.

@anthonws you clearly have a remote.conf file in /flash, follow the instructions above

1 Like
#45

Hi @adamg
Was working only after reapply the update.

1 Like
#46

Hi, CoreELEC team. I’ve been using kszaq’s LibreELEC 8.2.2.3 community build for the Amlogic S912 on my Beelink GT1 Ultimate for quite some time. I recently formatted my memory card to do a clean install of CoreELEC 8.99.2. The remote.conf support appears to be somewhat problematic, however, because the file that I’ve copied-and-pasted below does not fully work in CoreELEC despite working fine in LibreELEC. To be more specific, multiple keys such as those associated with TAB, HOME and MENU do not respond when pressed. Can you please investigate this issue?

#amlogic NEC remote

factory_code	= 0x7f800001

work_mode  	= 0

repeat_enable 	= 1

repeat_delay    = 130
repeat_peroid   = 120
release_delay   = 20
debug_enable 	= 1

key_begin

0x51 31 = S

0x4d 113 = MUTE

0x40 15 = TAB

0x53 102 = HOME

0xbc 23 = I

0x26 103 = UP
	
0x28 108 = DOWN
	
0x25 105 = LEFT
	
0x27 106 = RIGHT
	
0x0d 28	= OK

0x1b 1 = ESC
	
0x49 139 = MENU

0x4e 115 = VOL+	

0x56 114 = VOL-

0x54 38 = L
				
0x52 164 = PAUSEPLAY

0x41 104 = PAGEUP

0x42 109 = PAGEDOWN

0x31 2 = 1

0x32 3 = 2

0x33 4 = 3

0x34 5 = 4

0x35 6 = 5

0x36 7 = 6

0x37 8 = 7

0x38 9 = 8

0x39 10 = 9

0x30 11 = 0

0x44 14 = BACKSPACE

0x58 24 = O

key_end
#47

You could check here kodi shortcuts
https://kodi.wiki/view/Keyboard_controls
For Home use KEY_HOMEPAGE code
For MENU KEY_C code (or KEY_M, check hotkeys)
For TAB I don’t know action what you need, Fullscreen is not used. (check hotkeys)
Key codes are here:

1 Like
#48

Thanks, boot2k3. I’ll try out your suggestions. The TAB (full screen) key is useful for an add-on such as USTVNow Guide which has a picture-in-picture mode so that a user can access the program guide and watch the current channel simultaneously.

#49

Actually, with meson-ir you are not limited to any protocol (lirc should know all major ones). I am using existing home remotes (VHS, DVD players, etc.) whole time since first use OpenELEC.

I have zero experience with amremote (I skipped Kodi 17 as it wasnt mature enough), but I am using lircd for years, and - at least with Odroid C2 - meson-ir implementation is in quite good shape, it works without hickup the same way as with lirc-rpi overlay @Rpi. So I am glad its default method.

But I really glad CE devs does good work to implement another IR option and most importantly allows users to set which they prefers :slight_smile:

#50

@XRNote5 where are you saving your remote.conf?

Can you paste the output of /tmp/remote.conf, thanks.

#51

Sorted! Thank you all for the support!

1 Like
#52

@adamg I copied my remote.conf file to the “Configfiles” folder through the CoreELEC Samba share and then restarted CoreELEC for the changes to take effect. Is the file at the location that you’re asking about accessible through Samba as well?

UPDATE: I formatted my memory card again tonight and did another clean install of CoreELEC 8.99.2 followed by some further testing with my original remote.conf file as provided above. It appears that the MENU key is the only one that’s actually unresponsive. The HOME key appears to function but TAB results in something that is not the full screen function but possibly ESC or BACKSPACE instead. I found this post at the LibreELEC forum which describes the TAB key issue in more detail.

#53

Yes, however I can not help you further without the information I asked for previously.

The key codes have changed in Leia as opposed to Krypton as @boot2k3 explained in his post above, it is relatively easy to correct your remote config.

ie, change 0x53 102 = HOME for 0x53 172 = HOMEPAGE

#54

I’ll need some time to figure out how to access the remote.conf file in the /tmp folder because doing so seems to require a more technical method such as SSH which I’m not very familiar with. If you can post some specific instructions here for me to try with PuTTY, that would definitely help me out.

@adamg I figured it out. Here are the contents of the file that you asked for.

CoreELEC:/tmp # cat remote.conf

#amlogic NEC remote

factory_code    = 0x7f800001

work_mode       = 0

repeat_enable   = 1

repeat_delay    = 130
repeat_peroid   = 120
release_delay   = 20
debug_enable    = 1

key_begin

0x51 31 = S

0x4d 113 = MUTE

0x40 1

0x53 172

0xbc 23 = I

0x26 103 = UP

0x28 108 = DOWN

0x25 105 = LEFT

0x27 106 = RIGHT

0x0d 28 = OK

0x1b 1 = ESC

0x49 139 = MENU

0x4e 115 = VOL+

0x56 114 = VOL-

0x54 38 = L

0x52 164 = PAUSEPLAY

0x41 104 = PAGEUP

0x42 109 = PAGEDOWN

0x31 2 = 1

0x32 3 = 2

0x33 4 = 3

0x34 5 = 4

0x35 6 = 5

0x36 7 = 6

0x37 8 = 7

0x38 9 = 8

0x39 10 = 9

0x30 11 = 0

0x44 14 = BACKSPACE

0x58 24 = O

key_end

The two changes which you’ll notice are the automatic substitution of the HOME key with HOMEPAGE and the TAB key with ESC (the second of which is the bug that the user on the LibreELEC forum mentioned in the link I provided).

#55

That’s not a bug, it’s done by design, upon booting non-working keycodes are rewritten, as you have discovered it has been that way for a long time.

Please do not say something works in LE and then not in CE when that is clearly not the case as demonstrated in the link you pasted.

#56

I sincerely apologize for the confusion in that regard. I should have mentioned in my original post that I was able to get the TAB key to work properly in LibreELEC only after using an autostart.sh file that contains the following code:

#!/bin/bash
(/usr/bin/remotecfg /storage/.config/remote.conf)&
exit

When I use the same autostart.sh file in CoreELEC, I’m noticing that the TAB key no longer functions as ESC. I’m going to make the simple remote.conf changes that you and boot2k3 suggested and put this to rest.

#57

That would make sense as you are then configuring your remote with the original remote configuration file that has not been remapped by our scripts.

1 Like
#58

Yes, exactly. Thank you for your quick responses and clarification. It’s been a learning experience for me.

#59

So today i had time to check why my remote again did not work and discovered this thread.

I am glad that amremote works again because there you can use two remote controls (means the original remote control and a better one with more buttons) at the same time and with meson not.

Unfortunately i still had a remote.conf in my config but with different settings (for the previous configuration of my harmony remote control) and it was used suddenly again it seems.
So i have to reprogram my remote control again to be able to use all keys and poweron/poweroff because the poweron/poweroff ir signal is hardcoded to the original remote control in the bootloader but if you want to use another remote control it has another ir code for poweron/poweroff.

I hope this will not be changed in the next update again.

Thanks for the ongoing support of amlogic s9* based tv boxes !

#60

How so? You can use include statement within lircd.conf, and include more remotes by clean and nice way :slight_smile:

#61

Search for remotesecond.conf…There are instructions how to do it.

#62

Hi

I have been experiencing a minor issue with double remote presses since migrating over to CE.

If press the remote keys too quickly I will get a double press, not too bad in lists but when you are selecting options it can be a bit of a pain…

Google tells me to disable lirc however I can’t find that option in CE, the posts referring to it were quite old as well,any other ideas on what I could look at?

I’m using a Harmony remote, with the same remote.conf that I was using in LE, I didn’t see the issue there.

Thanks in advance,

#63

I also had a problem with the TAB key mapping. Simply use hex code for the TAB key.
0x10 114 #KEY_VOLUMEDOWN
0x43 0x0f #KEY_TAB
0x00 59 #KEY_F1

1 Like