2012-02-05, 02:29
I followed everything from this post and irw sees input fine, but XBMC doesn't do anything when I press a key. Using same hardware and same configs that were posted with Eden Beta 2 on Ubuntu 10.04.
dnixx Wrote:Are you sure that you have specified the correct device in Lircmap.xml? (<remote device="<device>")
<device> should be the same string that shows up when running irw:
# irw
00000000000ecfd3 00 KEY_PLAY <device>
00000000000ecfd3 01 KEY_PLAY <device>
Also, check what happens in the xbmc log when pressing the buttons on your remote: tail -f ~/.xbmc/temp/xbmc.log
xOrphenochx Wrote:Well I got nearly everything configured the way I want, but for some reason pressing some types of buttons don't go back after a second press, IE pressing the key for OSD brings it up and pressing it once more doesn't do anything, same goes for Info, which brings it up again upon a second press.
<FullscreenInfo>
<remote>
<title>CodecInfo</title>
[b]<info>Back</info>[/b]
<menu>OSD</menu>
</remote>
</FullscreenInfo>
dnixx Wrote:That's because the Info key should be mapped to "Back" when the info screen is displayed. If you look at the default remote.xml (/usr/local/share/xbmc/system/keymaps/remote.xml) you'll see:
Code:<FullscreenInfo>
<remote>
<title>CodecInfo</title>
[b]<info>Back</info>[/b]
<menu>OSD</menu>
</remote>
</FullscreenInfo>
This is true for several screens and dialogues.
I only map the keys in the <global> section of my remote.xml (~/.xbmc/userdata/keymaps/remote.xml), plus a couple of other sections I want/need to change. That way most of the default keys are intact. For example, the Info key is mapped to the "Back" action when viewing the Info dialogue, because this is how it is defined in the the default remote.xml (XBMC reads this one and the user-defined one).
<keymap>
<global>
<universalremote>
<obc101>Number1</obc101>
<obc102>Number2</obc102>
<obc103>Number3</obc103>
<obc104>Number4</obc104>
<obc105>Number5</obc105>
<obc106>Number6</obc106>
<obc107>Number7</obc107>
<obc108>Number8</obc108>
<obc109>Number9</obc109>
<obc110>Number0</obc110>
<obc111>Select</obc111>
<obc112>up</obc112>
<obc113>right</obc113>
<obc114>down</obc114>
<obc115>left</obc115>
<obc116>PreviousMenu</obc116>
<obc117>Stop</obc117>
<obc118>Pause</obc118>
<obc119>XBMC.ActivateWindow(ShutDownMenu)</obc119>
<obc120>SkipPrevious</obc120>
<obc121>SkipNext</obc121>
<obc122>Play</obc122>
<obc123>Rewind</obc123>
<obc124>FastForward</obc124>
<obc147>Info</obc147>
<obc126>XBMC.EjectTray()</obc126>
<obc127>Playlist</obc127>
<obc128>XBMC.updatelibrary(video)</obc128>
<obc129>XBMC.updatelibrary(music)</obc129>
<obc130>Queue</obc130>
<obc131>VolumeDown</obc131>
<obc132>VolumeUp</obc132>
<obc133>PageUp</obc133>
<obc134>PageDown</obc134>
<obc136>ShowVideoMenu</obc136>
<obc137>XBMC.ActivateWindow(settings)</obc137>
<obc139>PreviousMenu</obc139>
<obc140>BackSpace</obc140>
<obc142>StepBack</obc142>
<obc143>StepForward</obc143>
<obc144>xbmc.activatewindow(pictures)</obc144>
<obc145>xbmc.activatewindow(music)</obc145>
<obc146>xbmc.activatewindow(video)</obc146>
<obc148>XBMC.ActivateWindow(favourites)</obc148>
<obc149>ToggleWatched</obc149>
<obc150>DecreaseRating</obc150>
<obc151>IncreaseRating</obc151>
<obc135>ContextMenu</obc135>
</universalremote>
</global>
<fullscreenvideo>
<universalremote>
<obc111>Select</obc111>
<obc147>Info</obc147>
<obc135>OSD</obc135>
<obc139>PreviousMenu</obc139>
<obc145>XBMC.ActivateWindow(OSDAudioSettings)</obc145>
<obc146>XBMC.ActivateWindow(OSDVideoSettings)</obc146>
<obc151>XBMC.ActivateWindow(VideoBookmarks)</obc151>
</universalremote>
</fullscreenvideo>
<keymap>
<global>
<universalremote>
<!-- Global buttons -->
...
[b]<obc147>Info</obc147>[/b] <!-- default action for button obc147 -->
...
</universalremote>
</global>
<MusicInformation>
<!-- Info screen (i.e. music information) -->
<universalremote>
[b]<obc147>Back</obc147>[/b]<!-- obc147 is now mapped to the "Back" action when viewing music information -->
</universalremote>
</MusicInformation>
<MovieInformation>
<!-- Info screen (i.e. movie information) -->
<universalremote>
[b]<obc147>Back</obc147>[/b]<!-- obc147 is now mapped to the "Back" action when viewing movie information -->
<universalremote>
</MovieInformation>
</keymap>
<keymap>
<section1> (change this)
<universalremote>
... keymaps are placed here ...
</universalremote>
</section1> (change this)
<section2> (change this)
<universalremote>
... keymaps are placed here ...
</universalremote>
</section2> (change this)
</keymap>
dnixx Wrote:Here's your remote.xml with two examples added:
Code:<keymap>
<global>
<universalremote>
<!-- Global buttons -->
...
[b]<obc147>Info</obc147>[/b] <!-- default action for button obc147 -->
...
</universalremote>
</global>
<MusicInformation>
<!-- Info screen (i.e. music information) -->
<universalremote>
[b]<obc147>Back</obc147>[/b]<!-- obc147 is now mapped to the "Back" action when viewing music information -->
</universalremote>
</MusicInformation>
<MovieInformation>
<!-- Info screen (i.e. movie information) -->
<universalremote>
[b]<obc147>Back</obc147>[/b]<!-- obc147 is now mapped to the "Back" action when viewing movie information -->
<universalremote>
</MovieInformation>
</keymap>
In this example there are three "sections": global (which you already have), MusicInformation and MovieInformation.
Go through the default remote.xml which is located at /usr/local/share/xbmc/system/keymaps/remote.xml. Look for sections you may want to override and add these to your user-specific remote.xml (~/.xbmc/userdata/keymaps/remote.xml).
Remember to use the correct keynames; where the default remote.xml says "<one>Number1</one>", yours should say "<obc101>Number1</obc101>" (the keynames are found in the remote.xml you pasted in your last post).
Notice that everything is encapsulated in <keymap> and </keymap> -- don't put anything outside those. And remember <universalremote></universalremote>:
Code:<keymap>
<section1> (change this)
<universalremote>
... keymaps are placed here ...
</universalremote>
</section1> (change this)
<section2> (change this)
<universalremote>
... keymaps are placed here ...
</universalremote>
</section2> (change this)
</keymap>
Did I make any sense?