Jump to content


Photo

Change mapping to remote control


  • Please log in to reply
14 replies to this topic

#1 LukeSky

  • Senior Member
  • 28 posts

0
Neutral

Posted 16 October 2021 - 21:01

Hey, a few days I changed my F3 for one Ustym 4K S2. I have noticed that the recall button has no function assigned and changed with the Exit button. I have tried to modify the behavior in (menu - setup - system - expert settingss - hotkey) but to no avail.

 
I have read that there is a map.xml file but I am not sure I know what I am manipulating. Can someone tell me how to exchange the actions assigned to Exit and Recall, and give Exit the action to exit?
 
Thanks in advance.
 


Re: Change mapping to remote control #2 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 16 October 2021 - 21:13

You can try create there in /usr/share/enigma2 file keytranslation.xml with content

<keymap>
	<translate>
		<device name="dreambox advanced remote control (native)">
			<key from="KEY_BACK" to="KEY_EXIT"/>
		</device>
	</translate>
</keymap>

and change parts from and to how you need, you can add more lines.

You must to know, what KEY_code is under "recall" button.


Kdo nic nedělá, nic nezkazí!

Re: Change mapping to remote control #3 LukeSky

  • Senior Member
  • 28 posts

0
Neutral

Posted 17 October 2021 - 08:32



You can try create there in /usr/share/enigma2 file keytranslation.xml with content

<keymap>
	<translate>
		<device name="dreambox advanced remote control (native)">
			<key from="KEY_BACK" to="KEY_EXIT"/>
		</device>
	</translate>
</keymap>

 

Ok, I gonna to try it.

 

 

and change parts from and to how you need, you can add more lines.

You must to know, what KEY_code is under "recall" button.

 

It is perhaps the most difficult task. 

 

Thanks.



Re: Change mapping to remote control #4 LukeSky

  • Senior Member
  • 28 posts

0
Neutral

Posted 17 October 2021 - 09:11

Maybe would be useful for developers, the image for uclan in /usr/share/enigma2/rc_models has swapped buttons.

 

uclan.png

 

Physical remote control:

 

mine.jpg
 
 


Re: Change mapping to remote control #5 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 17 October 2021 - 16:09

Interesting, I have the top one.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Change mapping to remote control #6 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 17 October 2021 - 21:13

I have the bottom one... but I have not problem with it...


Kdo nic nedělá, nic nezkazí!

Re: Change mapping to remote control #7 LukeSky

  • Senior Member
  • 28 posts

0
Neutral

Posted 18 October 2021 - 17:51

I have tried using the keytranslation.xml file, then restart enigma and sbt, and no result was produced.

 

1634575624833.jpg

Sin-t-tulo.png



Re: Change mapping to remote control #8 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 18 October 2021 - 18:27

My fault ... change line with remote type to:

<device name="dreambox advanced remote control">

 = without  (native)
 


Kdo nic nedělá, nic nezkazí!

Re: Change mapping to remote control #9 LukeSky

  • Senior Member
  • 28 posts

0
Neutral

Posted 18 October 2021 - 19:25

My fault ... change line with remote type to:

<device name="dreambox advanced remote control">

 = without  (native)
 

 

Great, I just need to correctly assign the exit action to the exit button.
 
Now my question is: Every time I install a new version will I have to manually change this file or is it saved in the backup and restored automatically?
 
Thank'u so much.


Re: Change mapping to remote control #10 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 18 October 2021 - 19:30

It should be in /etc/enigma2, and then yes, it will be in the autobackup. /usr/share is a system directory, nothing should be installed there by the end user.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Change mapping to remote control #11 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 18 October 2021 - 19:48

@WanWizard - this file is placed in /usr/share/enigma2/keytranslation.xml   (it is set in code here and change path due backward compatibility will not be ok)

 

@LukeSky - There in AutoBackup plugin you can select this file for backup/restore.


Edited by ims, 18 October 2021 - 19:52.

Kdo nic nedělá, nic nezkazí!

Re: Change mapping to remote control #12 LukeSky

  • Senior Member
  • 28 posts

0
Neutral

Posted 18 October 2021 - 21:24

@WanWizard - this file is placed in /usr/share/enigma2/keytranslation.xml   (it is set in code here and change path due backward compatibility will not be ok)

 

@LukeSky - There in AutoBackup plugin you can select this file for backup/restore.

 

I see that there are solutions for everything but the configuration is complicated. It would be great if you could choose two configurations for the controls from the OpenPli image, for end users perhaps this type of situation becomes somewhat complicated.



Re: Change mapping to remote control #13 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 18 October 2021 - 22:02

@WanWizard - this file is placed in /usr/share/enigma2/keytranslation.xml   (it is set in code here and change path due backward compatibility will not be ok)

 

Then that code needs changing. Users should not have to place files in /usr. it is a system directory.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Change mapping to remote control #14 ims

  • PLi® Core member
  • 13,624 posts

+212
Excellent

Posted 19 October 2021 - 05:59

 

@WanWizard - this file is placed in /usr/share/enigma2/keytranslation.xml   (it is set in code here and change path due backward compatibility will not be ok)

 

Then that code needs changing. Users should not have to place files in /usr. it is a system directory.

 

@Wanwizard - It is not standard config file ( btw - file does not exist standardly ) and then manual adding to Autobackup is ok for me... but it could be done as

	keytranslation = eEnv.resolve("${sysconfdir}/enigma2/keytranslation.xml")
	if not os.path.exists(keytranslation):
		keytranslation = eEnv.resolve("${datadir}/enigma2/keytranslation.xml")
	config.usage.keytrans = ConfigText(default=keytranslation)

for backward compatibility .... PR exists yet
 


Edited by ims, 19 October 2021 - 06:12.

Kdo nic nedělá, nic nezkazí!

Re: Change mapping to remote control #15 WanWizard

  • PLi® Core member
  • 68,598 posts

+1,739
Excellent

Posted 19 October 2021 - 11:49

Perfect, thanks. PR merged.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users