HotKey map to Exit/Cancel function

Antworten
Nachricht
Autor
beka2
Beginners
Beginners
Beiträge: 11
Registriert: 09 Apr 2018 17:53
Hat gedankt: 1 Mal

HotKey map to Exit/Cancel function

#1

Beitrag von beka2 »

Hello,

I'd like to map config.misc.ButtonSetup.previous to function with Exit/Cancel.
I am not sure what value to set in /etc/enigma2/settings for that to work.
Could anyone help with that?

Regards.
Benutzeravatar
Papi2000
Super Moderator
Super Moderator
Beiträge: 25937
Registriert: 20 Apr 2013 20:09
Receiver 1: Viele GigaBlues
Receiver 2: DM und ZGemma
Receiver 3: bissl VU
Hat gedankt: 4497 Mal
Hat Dank erhalten: 8315 Mal

#2

Beitrag von Papi2000 »

There already where severall discussions. The button EXIT cannot be remapped in oATV. And will never be remapped.
Grüßle
Ralf
--------------------------------------------
---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Bild
beka2
Beginners
Beginners
Beiträge: 11
Registriert: 09 Apr 2018 17:53
Hat gedankt: 1 Mal

#3

Beitrag von beka2 »

Alright..

Is there any other way I can remap the "Previous" key to cancel or exit function?
Even if it is just on my box?

I ask this because I am using the LG AN-MR19BA Remote to control everything (TV, AV Receiver and Box). And it just has one key to go back, cancel or exit menus.
This button is, wrongly or not, mapped to "Previous" in VU+ receivers. In oATV it opens "History Zap.."
If I was able to remap this, even it if is hardcoded, I could use it as a control-everything solution.

Any tips?
mrvica
Member
Member
Beiträge: 711
Registriert: 31 Jan 2017 15:27
Hat gedankt: 26 Mal
Hat Dank erhalten: 278 Mal

#4

Beitrag von mrvica »

there is an example in /usr/share/enigma2/keymap.xml

Code: Alles auswählen

<translate>
   <device name="gigablue remote control">
      <key from="KEY_OPTION" to="KEY_HELP" />
      <key from="KEY_F2" to="KEY_SCREEN" />
   </device>
</translate>
beka2
Beginners
Beginners
Beiträge: 11
Registriert: 09 Apr 2018 17:53
Hat gedankt: 1 Mal

#5

Beitrag von beka2 »

I found that under keytranslation.xml, guess it's the same.

That means it is possible to match the LG remote and map special keys to it ?
How do I identify the remote and then set it under that file?
mrvica
Member
Member
Beiträge: 711
Registriert: 31 Jan 2017 15:27
Hat gedankt: 26 Mal
Hat Dank erhalten: 278 Mal

#6

Beitrag von mrvica »

with evtest, you have to stop enigma2 before, init 4 then test with evtest and start enigma2 again with init 3
https://www.opena.tv/viewtopic.php?t=16313
beka2
Beginners
Beginners
Beiträge: 11
Registriert: 09 Apr 2018 17:53
Hat gedankt: 1 Mal

#7

Beitrag von beka2 »

Thanks for that and the quick reply!

I will try to use evtest and identify the remote and key presses.
I'll report back as soon as I can after testing that solution.
beka2
Beginners
Beginners
Beiträge: 11
Registriert: 09 Apr 2018 17:53
Hat gedankt: 1 Mal

#8

Beitrag von beka2 »

Just for someone who comes later looking for this...

I ended up not needing to install evtest.
I watched enigma2 log, and captures both LG and VU+ rcu keystrokes which showed me what I should use: KEY_PREVIOUS and KEY_EXIT.
It was as easy as adding a line to "/usr/share/enigma2/keytranslation.xml"

Code: Alles auswählen

<device name="dreambox advanced remote control (native)">
    <key from="KEY_PREVIOUS" to="KEY_EXIT"/> <!-- LG AN-MR19BA RCU Return Key Fix - will break Vu+ RCU Left Arrow though -->
</device>


Found this thread which helped: https://www.opena.tv/viewtopic.php?t=35734

Thanks all.
Darozdzichy
Beginners
Beginners
Beiträge: 2
Registriert: 27 Apr 2024 22:18

#9

Beitrag von Darozdzichy »

Now it doesn't work. Keytranslation was removed with OpenATV 7.3.

https://www.opena.tv/viewtopic.php?p=553150#p553150
[keytranslation.xml] . openatv/enigma2@85955f5 . GitHub

Do you have other solution how to replace keys?
I've got LG OLED C3 and want to use HDMI-CEC, but instead KEY_EXIT my TV sends KEY_PREVIOUS.
Benutzeravatar
s3n0
Senior member
Senior member
Beiträge: 1583
Registriert: 02 Jan 2017 14:38
Receiver 1: Vu+ Zero 4K
Receiver 2: Vu+ Solo SE V2
Hat gedankt: 108 Mal
Hat Dank erhalten: 417 Mal
Kontaktdaten:

#10

Beitrag von s3n0 »

I don't know exactly what it is... but it is also possible to change the function of the RCU buttons directly in the OpenATV code. This can be done in the corresponding XML file. But I don't know exactly in which file. I don't want to look for it... sorry.

Of course, you have to keep the edited file on your PC for safety or make a backup copy somewhere on the set-top box disk. And you should also watch out for Enigma2 updates, because some updates might change/update that particular XML file again, and you then have to manually patch the file again.

Have you also tried the standard button mapping in OpenATV - via the GUI MENU ? There is also the possibility to map some RCU keys to functions other than those for which they are intended. This could also work great in many cases.

------------------------

So far I have only found this information. It says that even though "keytranslation.xml" has been removed, it should work directly through rcinput:
[keytranslation] by jbleyel . Pull Request #3203 . openatv/enigma2 . GitHub
But I don't know how exactly. Try to research further yourself or wait for a response from the developers of OpenATV.
Darozdzichy
Beginners
Beginners
Beiträge: 2
Registriert: 27 Apr 2024 22:18

#11

Beitrag von Darozdzichy »

Problem solved with commit 0f4cbf5
[ActionMap] . openatv/enigma2@0f4cbf5 . GitHub

And now instead file "/usr/share/enigma2/keytranslation.xml" you have to use "/usr/share/enigma2/keymap_usermod.xml" (with the same content). Example:

Code: Alles auswählen

<keymap>
    <translate>
        <device name="dreambox advanced remote control (native)">
            <!--  LG WebOS Magic Remote to VU+  -->
            <key from="KEY_PREVIOUS" to="KEY_EXIT"/>
        </device>
    </translate>
</keymap>
Benutzeravatar
Papi2000
Super Moderator
Super Moderator
Beiträge: 25937
Registriert: 20 Apr 2013 20:09
Receiver 1: Viele GigaBlues
Receiver 2: DM und ZGemma
Receiver 3: bissl VU
Hat gedankt: 4497 Mal
Hat Dank erhalten: 8315 Mal

#12

Beitrag von Papi2000 »

THe problem was, that an older functional solution was removed without sense.
That is another case of the code war, that takes place in lighten the image and removing things, that are not understood.
Now with that commit a new solution was implemented, to get that feature back again.
Thanks for testing.
Grüßle
Ralf
--------------------------------------------
---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Bild
Antworten

Zurück zu „English Section“