Kodi Community Forum

Full Version: xbox remote wrong keymapping after update SVN 23164
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
tume2 Wrote:I just edited Lircmat.xml and copied it to ~/.xbmc/userdata/

But isnt that files just the file that translate lirc to xbmc? Its in remote.xml I say what function the key shall have?

/Söder
The "userdata" it refers to is a link which explains where that is on your machine. As I say, please let us know if there's something we can do to make it clearer. It's very important to us to make sure the manual is as comprehendible as possible.

Cheers,
Jonathan
jmarshall Wrote:The "userdata" it refers to is a link which explains where that is on your machine. As I say, please let us know if there's something we can do to make it clearer. It's very important to us to make sure the manual is as comprehendible as possible.

Cheers,
Jonathan

=) Ok, well, it's a little bit confused for me, when there is the ~/.xbmc with some files (I guess mostly userdata), and also /usr/share/xbmc

and there is a folder /userdata in both. And I find the default remote.xml at /usr/share/xbmc but I shall put it in ~/.xbmc

=)

That can maybe be explained better.

But thanks for a great wiki and a great forum.

/Söder
So if we just rename the "userdata" folder that XBMC comes with that'll solve it?

I really want to remove this confusion completely.
Quote:So if we just rename the "userdata" folder that XBMC comes with that'll solve it?

Just mention both paths in the doc and explain that the system wide/default files are stored in one place but they can be overridden by uder specific files.
If I understand it correcly this is how Linux normally works? It is not that hard to understand.
to add more confusion to this.... Smile

If i edit remote.xml in \xbmc\system\keymaps
nothing changes, same happens if i put the remote.xml in \xbmc\userdata

The only thing that worked for me is to put the remote.xml in
\.xbmc\userdata\keymaps\
But the keymaps subfolder didnt even exist so i had to create it. that however
could have been some bad config in my system.
The-Boxhead Wrote:to add more confusion to this.... Smile

If i edit remote.xml in \xbmc\system\keymaps
nothing changes, same happens if i put the remote.xml in \xbmc\userdata

The only thing that worked for me is to put the remote.xml in
\.xbmc\userdata\keymaps\
But the keymaps subfolder didnt even exist so i had to create it. that however
could have been some bad config in my system.

I copied /usr/share/xbmc/system/keymaps/remote.xml to ~/.xbmc/userdata/keymaps/remote.xml, and then edited the new.

That worked for me, and I guess thats how it should be.


/Söder
Am I correct if I say that these buttons on my remote are not used by my MCE Remote, since they are not in my Lircmap.xml?

htpc@htpc-desktop:~$ irw
000000037ff07bf5 00 Clear mceusb
000000037ff07bf4 00 Enter mceusb
000000037ff07be2 00 Star mceusb
000000037ff07be3 00 Hash mceusb

Code:
<lircmap>
        <remote device="mceusb">
                <pause>Pause</pause>
                <stop>Stop</stop>
                <forward>Forward</forward>
                <reverse>Rewind</reverse>
                <left>Left</left>
                <right>Right</right>
                <up>Up</up>
                <down>Down</down>
                <select>OK</select>
                <pageplus>ChanUp</pageplus>
                <pageminus>ChanDown</pageminus>
                <back>Back</back>
                <menu>PreviousMenu</menu>
                <title>Play</title>
                <info>More</info>
                <skipplus>Skip</skipplus>
                <skipminus>Replay</skipminus>
                <display>Teletext</display>
                <start>Home</start>
                <record>Record</record>
                <volumeplus>VolUp</volumeplus>
                <volumeminus>VolDown</volumeminus>
                <mute>Mute</mute>
                <power>Power</power>
                <myvideo>Videos</myvideo>
                <mymusic>Music</mymusic>
                <mypictures>Pictures</mypictures>
                <mytv>TV</mytv>
                <one>One</one>
                <two>Two</two>
                <three>Three</three>
                <four>Four</four>
                <five>Five</five>
                <six>Six</six>
                <seven>Seven</seven>
                <eight>Eight</eight>
                <nine>Nine</nine>
                <zero>Zero</zero>
                <red>Red</red>
                <green>Green</green>
                <yellow>Yellow</yellow>
                <blue>Blue</blue>
        </remote>

Can I just add them there, giving them a xbmc name and then give that button a global function in my remote.xml?

/Söder
soder Wrote:Am I correct if I say that these buttons on my remote are not used by my MCE Remote, since they are not in my Lircmap.xml?

htpc@htpc-desktop:~$ irw
000000037ff07bf5 00 Clear mceusb
000000037ff07bf4 00 Enter mceusb
000000037ff07be2 00 Star mceusb
000000037ff07be3 00 Hash mceusb

Code:
<lircmap>
        <remote device="mceusb">
                <pause>Pause</pause>
                <stop>Stop</stop>
                <forward>Forward</forward>
                <reverse>Rewind</reverse>
                <left>Left</left>
                <right>Right</right>
                <up>Up</up>
                <down>Down</down>
                <select>OK</select>
                <pageplus>ChanUp</pageplus>
                <pageminus>ChanDown</pageminus>
                <back>Back</back>
                <menu>PreviousMenu</menu>
                <title>Play</title>
                <info>More</info>
                <skipplus>Skip</skipplus>
                <skipminus>Replay</skipminus>
                <display>Teletext</display>
                <start>Home</start>
                <record>Record</record>
                <volumeplus>VolUp</volumeplus>
                <volumeminus>VolDown</volumeminus>
                <mute>Mute</mute>
                <power>Power</power>
                <myvideo>Videos</myvideo>
                <mymusic>Music</mymusic>
                <mypictures>Pictures</mypictures>
                <mytv>TV</mytv>
                <one>One</one>
                <two>Two</two>
                <three>Three</three>
                <four>Four</four>
                <five>Five</five>
                <six>Six</six>
                <seven>Seven</seven>
                <eight>Eight</eight>
                <nine>Nine</nine>
                <zero>Zero</zero>
                <red>Red</red>
                <green>Green</green>
                <yellow>Yellow</yellow>
                <blue>Blue</blue>
        </remote>

Can I just add them there, giving them a xbmc name and then give that button a global function in my remote.xml?

/Söder

I tried that, and that worked. Now I understand that XBMC already hade some functions for the keys Clear, Enter, Star and Hash.

What I've been missing is the funcion ActivateWindow(shutdownmenu) (S on a keyboard)

My big PLAY button is called <title> and brings up the ContextMenu when in menues, and brings up the codec info when in fullscreen.

But there is no ContextMenu when Im in main menu, and I would like to use that button for the ActivateWindow(shutdownmenu).

Is this the right way then? Will that override the global function?

Code:
<Home>
    <remote>
      <menu>XBMC.Skin.ToggleSetting(HomeViewToggle)</menu>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
      <title>ActivateWindow(shutdownmenu)</title>
    </remote>
  </Home>

Thanks!

/Söder
soder Wrote:I copied /usr/share/xbmc/system/keymaps/remote.xml to ~/.xbmc/userdata/keymaps/remote.xml, and then edited the new.

That worked for me, and I guess thats how it should be.


/Söder

I was wrong. It first worked, and now it doesnt. Only the default is working. =( What is wrong?

EDIT: I used the wrong way to disable functions. <!button> worked.
/Söder
Can someone please upload the old remote.xml so that we don't have to manuall mess with this!
Since we are talking about keymaps changing, is it normal that evertime I update XBMC that my keymap file seems to go to default? I now just copy and paste my good file back, but am I correct in saying that the old file gets overwritten on an update?
Quote:Since we are talking about keymaps changing, is it normal that evertime I update XBMC that my keymap file seems to go to default
Did you update the file in userdata or the system wide file? I am guessing that the system wide file will be updated.
Pages: 1 2