how to edit keymap.xml

taree

Vu+ Newbie
as there is no mqb or hotkey botton in latest blackhole to assign remote buttons
then how can i edit my keymap.xml.
or anybody can edit it for me as i need only one change.
KEY_CHANNELUP" mapto="openServiceList"
="KEY_CHANNELDOWN" mapto="openServiceList
i want these 2 buttons to use zap up and zap down.
 

Attachments

  • keymap.rar
    3 KB · Views: 247

AlexWilMac

Moderator
I'm not sure I understood what you want, but if what you'd like to have is P+/P- k_e_ys for zapping instead that for bouquets and channel lists, this is the keymap you need (after unzipping, rename the file as keymap.xml) and put it in
/usr/share/enigma2

Before that, I suggest to keep a copy of the original as, for instance, keymap.xml.orig
or something like that.
Remember you have to put again your file after major updates, because it will be rewritten.
After having transferred this modified keymap, remember to restart the GUI.
 

Attachments

  • keymap-P+P-BH.xml.zip
    3.5 KB · Views: 354

satmaniac

Vu+ Newbie
Hi! I would like to select next / previous favorites with one button. Now I have to press the program+, blue, up or down, ok button.
I changed
<map context="InfobarChannelSelection">
<key id="KEY_UP" mapto="switchChannelUp" flags="mr" />
<key id="KEY_DOWN" mapto="switchChannelDown" flags="mr" />
to
<key id="KEY_UP" mapto="nextBouquet" flags="mr" />
<key id="KEY_DOWN" mapto="prevBouquet" flags="mr" />
But not working, indicates that it is an invalid button.
 

AlexWilMac

Moderator
I'm not expert of keymap.xml or XML in general but I can't believe you can just change bouquet without specifying also what channel you'd like to zap to. Where should it go after changing the bouquet? I don't think it'll automatically go to the first channel in the bouquet (unless you find an appropriate command to perform this action).
I mean: when you do it the traditional way, first you choose the bouquet and then you have to choose the channel anyway.
But I might be wrong about this idea.
 

satmaniac

Vu+ Newbie
I have Ariva 200. The remote control has a double up and down arrow button to jump to your favorite last viewed channel. It's very fast and comfortable.
 

AlexWilMac

Moderator
Last viewed channel is different from jumping to a bouquet. Also the original VU+ remotes have got a key to do that. It's < (and > to go ahead). But my doubt is that you want to perform two actions in one: changing a bouquet and, also (not after, as we do normally), choose a channel.
 

satmaniac

Vu+ Newbie
The "It's < (and > to go ahead)" Not exactly what I want, because it only works on the channels I've been looking at before. I would like to watch some channels of bouquet Movies, then some channels from the bouquet Music, and so on.
 

AlexWilMac

Moderator
Yes, I understood this. But here is the problem, in my opinion there is no way to jump to a bouquet because you should specify to go to a specific channel in it. Unless there is also a XML command to get to, for instance, the first channel within a bouquet or to perform two actions with only one pressing.
 

Matrix10

Administrator
If I understand well you want to have a favorites list
Instead of the channel list on the UP and Down buttons.

But this is not possible without changing image coding.
Change in keymap.xml is not possible (not enough) without support/change in image coding.

However, it is questionable whether this way of using the buttons is really good.
Most users use the favorite channel list rather than list of favorites .

This is the reverse way you like to have.
Which means you have to first select favorites / bouquet and then channel,
for most users impractical.
 
Last edited:

AlexWilMac

Moderator
If I understand well you want to have a favorites list
...
Which means you have to first select favorites / bouquet and then channel,
for most users impractical.

So, if I understand well you, Matrix, it's like I said: it's not possible to "jump" to a different bouquet also (I mean, at the same time) zapping to one of its channels, not even the first one, right?
 

Matrix10

Administrator
So, if I understand well you, Matrix, it's like I said: it's not possible to "jump" to a different bouquet also (I mean, at the same time) zapping to one of its channels, not even the first one, right?

Not possible because InfobarChannelSelection(keymap.xml) and supported coding in InfoBarGenerics.py (/usr/lib/enigma2/python/Screens/)
Is active when you call a list and use this buttons with some of these buttons and commands
from the initial situation.(TV picture)
<map context="InfobarChannelSelection">
<key id="KEY_LEFT" mapto="zapUp" flags="mr" />
<key id="KEY_RIGHT" mapto="zapDown" flags="mr" />
<key id="KEY_UP" mapto="switchChannelUp" flags="mr" />
<key id="KEY_DOWN" mapto="switchChannelDown" flags="mr" />
<key id="KEY_PREVIOUS" mapto="historyBack" flags="mr" />
<key id="KEY_NEXT" mapto="historyNext" flags="mr" />
<key id="KEY_BACK" mapto="historyBack" flags="mr" />
<key id="KEY_FORWARD" mapto="historyNext" flags="mr" />
<key id="KEY_CHANNELUP" mapto="openServiceList" flags="m" />
<key id="KEY_CHANNELDOWN" mapto="openServiceList" flags="m" />
<key id="BTN_0" mapto="zapUp" flags="mr" />
<key id="BTN_1" mapto="zapDown" flags="mr" />
</map>


and ChannelSelectBaseActions(keymap.xml) and supported coding in ChannelSelection.py (/usr/lib/enigma2/python/Screens/)
Is active when you are in the list and use this buttons
You can not use commands and buttons linked to this commands from one to another with existing coding.

<map context="ChannelSelectBaseActions">
<key id="KEY_RED" mapto="showAllServices" flags="m" />
<key id="KEY_GREEN" mapto="showSatellites" flags="m" />
<key id="KEY_YELLOW" mapto="showProviders" flags="m" />
<key id="KEY_BLUE" mapto="showFavourites" flags="m" />
<key id="KEY_CHANNELUP" mapto="nextBouquet" flags="m" />
<key id="KEY_CHANNELDOWN" mapto="prevBouquet" flags="m" />
<key id="KEY_PREVIOUS" mapto="prevMarker" flags="m" />
<key id="KEY_NEXT" mapto="nextMarker" flags="m" />
<key id="KEY_BACK" mapto="prevMarker" flags="m" />
<key id="KEY_FORWARD" mapto="nextMarker" flags="m" />
</map>
 

satmaniac

Vu+ Newbie
I'm sad for that. For Ferguson Ariva 2xx, favorites and satellites are treated in the same way. It's easy to switch between them with the double arrow button on the RCU 650 remote control. Moving between hundreds of channels at Vu + Box is very lengthy, and channel numbering does not even begin with 1 in the favorites.
 

AlexWilMac

Moderator
I think you haven't got the principle with whom bouquets and channels work. First of all, if for "favourites" you mean the bouquet with this name, if it doesn't start from 1 it means it's not the first in the list. If you want its channels to be numbered from 1, you have to move it at the top, as the first bouquet in the list.
Secondly, Favourites it's not compulsory. For instance, I don't use it as the main one. In my VU+ it is a very secondary bouquet and I created a bouquet meant for the indispensable channels and I put it at the top. So it goes from 1 to about 120.
The other bouquets are just for other purposes, like grouping all channels of a kind I want. But I don't put EVERY channels within one of the bouquets. In all they contain about 300 channels and the second bouquet in the list assign the following numbers to its channels. So, if the first end with 120, the second starts from 121.
This also means that if you remember the first number (even approximately) you can jump to this bouquet directly selecting a number corresponding to a channel in it.
And there is also an option (that I don't use, for instance) that allows you to zap to the next bouquet when you reach the end of one. In the above example, you'd go from 120 in the 1st bouquet to 121 in the 2nd. In my case, I don't want this behaviour and it starts from 1 when it reaches the end.

This is not a Humax or similar STBs where you have all channels together from 1 to 5000. The channels not used are always accessible by, UP and and Green (or RED) button and they are already grouped by satellite/service by the system.
 

satmaniac

Vu+ Newbie
Thanks for the detailed answer. I hope I understand the essence of your writing, but if I remember the number of channels I would not have to make them favorites.
 

AlexWilMac

Moderator
Thanks for the detailed answer. I hope I understand the essence of your writing, but if I remember the number of channels I would not have to make them favorites.
I know, but it's not needed to be precise. And, also, if its so important for you to jump directly to a different bouquet, you could arrange every bouquet with a fixed number of channels (adding some channels randomly at the bottom), so that you'll know the starting numbers.
 

satmaniac

Vu+ Newbie
My list is similar. Unfortunately, too many push buttons can be switched between Germany HD and Austria HD channels.
I do not see the broadcast in the background, but there is a small window over the content on the right side.
- How could mine be like this picture?
- How can I switch between views in the second and third pictures?
 

Matrix10

Administrator
My list is similar. Unfortunately, too many push buttons can be switched between Germany HD and Austria HD channels.
I do not see the broadcast in the background, but there is a small window over the content on the right side.
- How could mine be like this picture?
- How can I switch between views in the second and third pictures?

Then you have to find another skin that suits you ,without a small TV window.
We have plenty of skins for download (green>>yellow>>addons download manager>>Black Hole image skins)
The skin on my pictures has not been published yet
you be able to use it , when released.

Bouquets can also be called/changed with channel plus and channel minus buttons,But without the list of all bouquets.
Unfortunately this remote does not have double buttons for UP and Down.
And then it is not possible to have double control of channels and bouquets,at the same time.

Views in the second and third pictures.
You can configure in System Menu>>Customise>>Show picons in channel list.

The requirement is that you installed Picons.
You can find also on our image server or on the forum.
 
Top