PDA

View Full Version : universal remote default actions


swer
2009-05-28, 20:55
Hello I have a problem mapping my PS3 remote in XBMC
I'm using bdremote to connect my PS3 remote, This is working well with Mplayer Xine VDR MMS adnd irexec.

First I mapped all my Lirc keys using this Lircmap.xml

<lircmap>
<remote device="SonyBDRemote">
<obc1>1</obc1>
<obc2>2</obc2>
<obc3>3</obc3>
<obc4>4</obc4>
<obc5>5</obc5>
<obc6>6</obc6>
<obc7>7</obc7>
<obc8>8</obc8>
<obc9>9</obc9>
<obc10>0</obc10>
<obc11>enter</obc11>
<obc12>up</obc12>
<obc13>right</obc13>
<obc14>down</obc14>
<obc15>left</obc15>
<obc16>circle</obc16>
<obc17>stop</obc17>
<obc18>pause</obc18>
<obc19>ps</obc19>
<obc20>prev</obc20>
<obc21>next</obc21>
<obc22>play</obc22>
<obc23>scanrev</obc23>
<obc24>scanfwd</obc24>
<obc25>cross</obc25>
<obc26>eject</obc26>
<obc27>select</obc27>
<obc28>l3</obc28>
<obc29>r3</obc29>
<obc30>start</obc30>
<obc31>l2</obc31>
<obc32>r2</obc32>
<obc33>l1</obc33>
<obc34>r1</obc34>
<obc35>triangle</obc35>
<obc36>topmenu</obc36>
<obc37>time</obc37>
<obc38>square</obc38>
<obc39>return</obc39>
<obc40>clear</obc40>
<obc41>popup</obc41>
<obc42>steprev</obc42>
<obc43>stepfwd</obc43>
<obc44>subtitle</obc44>
<obc45>audio</obc45>
<obc46>angle</obc46>
<obc47>display</obc47>
<obc48>blue</obc48>
<obc49>red</obc49>
<obc50>green</obc50>
<obc51>yellow</obc51>
</remote>
</lircmap>


Then I crated a basic Keymap.xml with only a few Keys int the global section. But some Keys worked in XBMC even they wasn't in the Keymap.xml.

Some examples are:
yellow obc51 did vol down.
display obc47 did vol down
scanrev obc23 brings a Configure Screenshots menu
subtitle obc44 did pagedown

So is there some build in defaults for obc codes. How can I Over write them.

I tried obc47></obc47 and mapped obc51 to ToggleWatched but it didn't helped.

This is my Keymap.xml for the moment.
<keymap>

<global>
<universalremote>
<obc1>Number1</obc1>
<obc2>Number2</obc2>
<obc3>Number3</obc3>
<obc4>Number4</obc4>
<obc5>Number5</obc5>
<obc6>Number6</obc6>
<obc7>Number7</obc7>
<obc8>Number8</obc8>
<obc9>Number9</obc9>
<obc10>Number0</obc10>
<obc11>Select</obc11>
<obc12>Up</obc12>
<obc13>Right</obc13>
<obc14>Down</obc14>
<obc15>Left</obc15>
<obc16>PreviousMenu</obc16>
<obc17>Stop</obc17>
<obc18>Pause</obc18>
<obc19>XBMC.ActivateWindow(ShutDownMenu)</obc19>
<obc20>SkipPrevious</obc20>
<obc21>SkipNext</obc21>
<obc22>Play</obc22>
<obc23>Rewind</obc23>
<obc24>FastForward</obc24>
<obc25>Info</obc25>
<obc26>XBMC.EjectTray()</obc26>
<obc27>Select</obc27>
<obc28>ShowSubtitles</obc28>
<obc29>NextSubtitle</obc29>
<obc30>Play</obc30>
<obc31>ZoomOut</obc31>
<obc32>ZoomIn</obc32>
<obc33>PageUp</obc33>
<obc34>PageDown</obc34>
<obc35>ContextMenu</obc35>
<obc36>ShowVideoMenu</obc36>
<obc37>ShowTime</obc37>
<obc38>AspectRatio</obc38>
<obc39>ParentDir</obc39>
<obc40>BackSpace</obc40>
<obc41>ContextMenu</obc41>
<obc42>StepBack</obc42>
<obc43>StepForward</obc43>
<obc44>ShowSubtitles</obc44>
<obc45></obc45>
<obc46></obc46>
<obc47>CodecInfo</obc47>
<obc48>ToggleWatched</obc48>
<obc49>ToggleWatched</obc49>
<obc50>ToggleWatched</obc50>
<obc51>ToggleWatched</obc51>
</universalremote>
</global>

<fullscreenvideo>
<universalremote>
<obc11>OSD</obc11>
<obc16>FullScreen</obc16>
<obc39>FullScreen</obc39>
<obc45>XBMC.ActivateWindow(124)</obc45>
<obc46>XBMC.ActivateWindow(123)</obc46>
</universalremote>
</fullscreenvideo>

<visualisation>
<universalremote>
<obc11>OSD</obc11>
<obc39>FullScreen</obc39>
<obc16>FullScreen</obc16>
</universalremote>
</visualisation>

<shutdownmenu>
<universalremote>
<obc19>PreviousMenu</obc19>
</universalremote>
</shutdownmenu>

<home>
<universalremote>
<obc16>FullScreen</obc16>
<obc39>FullScreen</obc39>
</universalremote>
</home>

</keymap>



I'm on gentoo using the svn version of xbmc (pre-9.20 r20643)
Compiled with ebuilt from portage.
Arch is x86_64.

Im not sure if this problem apply only for Linux or if its a general Problem.

swer
2009-06-03, 19:48
Found out that obc# is not only for universal remote.
So i moved my keys to other obc#.
Hire my new Lircmap.xml und Keymap.xml

<lircmap>
<remote device="SonyBDRemote">
<obc101>1</obc101>
<obc102>2</obc102>
<obc103>3</obc103>
<obc104>4</obc104>
<obc105>5</obc105>
<obc106>6</obc106>
<obc107>7</obc107>
<obc108>8</obc108>
<obc109>9</obc109>
<obc110>0</obc110>
<obc111>enter</obc111>
<obc112>up</obc112>
<obc113>right</obc113>
<obc114>down</obc114>
<obc115>left</obc115>
<obc116>circle</obc116>
<obc117>stop</obc117>
<obc118>pause</obc118>
<obc119>ps</obc119>
<obc120>prev</obc120>
<obc121>next</obc121>
<obc122>play</obc122>
<obc123>scanrev</obc123>
<obc124>scanfwd</obc124>
<obc125>cross</obc125>
<obc126>eject</obc126>
<obc127>select</obc127>
<obc128>l3</obc128>
<obc129>r3</obc129>
<obc130>start</obc130>
<obc131>l2</obc131>
<obc132>r2</obc132>
<obc133>l1</obc133>
<obc134>r1</obc134>
<obc135>triangle</obc135>
<obc136>topmenu</obc136>
<obc137>time</obc137>
<obc138>square</obc138>
<obc139>return</obc139>
<obc140>clear</obc140>
<obc141>popup</obc141>
<obc142>steprev</obc142>
<obc143>stepfwd</obc143>
<obc144>subtitle</obc144>
<obc145>audio</obc145>
<obc146>angle</obc146>
<obc147>display</obc147>
<obc148>blue</obc148>
<obc149>red</obc149>
<obc150>green</obc150>
<obc151>yellow</obc151>
</remote>
</lircmap>
<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>
<obc125>Info</obc125>
<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>
<obc135>ContextMenu</obc135>
<obc136>ShowVideoMenu</obc136>
<obc137>XBMC.ActivateWindow(settings)</obc137>
<obc139>PreviousMenu</obc139>
<obc140>BackSpace</obc140>
<obc141>ContextMenu</obc141>
<obc142>StepBack</obc142>
<obc143>StepForward</obc143>
<obc144>xbmc.activatewindow(pictures)</obc144>
<obc145>xbmc.activatewindow(music)</obc145>
<obc146>xbmc.activatewindow(video)</obc146>
<obc147>FullScreen</obc147>
<obc148>XBMC.ActivateWindow(favourites)</obc148>
<obc149>ToggleWatched</obc149>
<obc150>DecreaseRating</obc150>
<obc151>IncreaseRating</obc151>
</universalremote>
</global>

<fullscreenvideo>
<universalremote>
<obc135>XBMC.ActivateWindow(videoosd)</obc135>
<obc138>CodecInfo</obc138>
<obc111>AspectRatio</obc111>
<obc116>FullScreen</obc116>
<obc139>FullScreen</obc139>
<obc144>ShowSubtitles</obc144>
<obc137>ShowTime</obc137>
<obc145>XBMC.ActivateWindow(OSDAudioSettings)</obc145>
<obc146>XBMC.ActivateWindow(OSDVideoSettings)</obc146>
<obc151>XBMC.ActivateWindow(VideoBookmarks)</obc151>
</universalremote>
</fullscreenvideo>

<visualisation>
<universalremote>
<obc135>XBMC.ActivateWindow(musicosd)</obc135>
<obc138>CodecInfo</obc138>
<obc139>FullScreen</obc139>
<obc116>FullScreen</obc116>
<obc137>Info</obc137>
<obc145>XBMC.ActivateWindow(OSDAudioSettings)</obc145>
<obc146>XBMC.ActivateWindow(visualisationsettings)</obc146>
<obc144>XBMC.ActivateWindow(visualisationpresetlist)</obc144>
</universalremote>
</visualisation>

<videoosd>
<universalremote>
<obc135>PreviousMenu</obc135>
<obc137>ShowTime</obc137>
<obc144>ShowSubtitles</obc144>
<obc145>XBMC.ActivateWindow(OSDAudioSettings)</obc145>
<obc146>XBMC.ActivateWindow(OSDVideoSettings)</obc146>
<obc151>XBMC.ActivateWindow(VideoBookmarks)</obc151>
</universalremote>
</videoosd>

<musicosd>
<universalremote>
<obc135>PreviousMenu</obc135>
<obc137>Info</obc137>
<obc145>XBMC.ActivateWindow(OSDAudioSettings)</obc145>
<obc146>XBMC.ActivateWindow(visualisationsettings)</obc146>
<obc144>XBMC.ActivateWindow(visualisationpresetlist)</obc144>
</universalremote>
</musicosd>

<OSDVideoSettings>
<universalremote>
<obc137>PreviousMenu</obc137>
<obc144>PreviousMenu</obc144>
<obc145>PreviousMenu</obc145>
<obc146>PreviousMenu</obc146>
</universalremote>
</OSDVideoSettings>

<VideoBookmarks>
<universalremote>
<obc137>PreviousMenu</obc137>
<obc144>PreviousMenu</obc144>
<obc145>PreviousMenu</obc145>
<obc146>PreviousMenu</obc146>
<obc151>PreviousMenu</obc151>
</universalremote>
</VideoBookmarks>

<OSDAudioSettings>
<universalremote>
<obc137>PreviousMenu</obc137>
<obc144>PreviousMenu</obc144>
<obc145>PreviousMenu</obc145>
<obc146>PreviousMenu</obc146>
</universalremote>
</OSDAudioSettings>

<visualisationsettings>
<universalremote>
<obc137>PreviousMenu</obc137>
<obc144>PreviousMenu</obc144>
<obc145>PreviousMenu</obc145>
<obc146>PreviousMenu</obc146>
</universalremote>
</visualisationsettings>

<visualisationpresetlist>
<universalremote>
<obc137>PreviousMenu</obc137>
<obc144>PreviousMenu</obc144>
<obc145>PreviousMenu</obc145>
<obc146>PreviousMenu</obc146>
</universalremote>
</visualisationpresetlist>

<favourites>
<universalremote>
<obc137>PreviousMenu</obc137>
<obc144>PreviousMenu</obc144>
<obc145>PreviousMenu</obc145>
<obc146>PreviousMenu</obc146>
<obc148>PreviousMenu</obc148>
</universalremote>
</favourites>

<videolibrary>
<universalremote>
<obc139>ParentDir</obc139>
<obc138>ReplaceWindow(videofiles)</obc138>
</universalremote>
</videolibrary>

<videofiles>
<universalremote>
<obc139>ParentDir</obc139>
<obc138>ReplaceWindow(videolibrary)</obc138>
</universalremote>
</videofiles>

<musiclibrary>
<universalremote>
<obc139>ParentDir</obc139>
<obc138>ReplaceWindow(musicfiles)</obc138>
</universalremote>
</musiclibrary>

<musicfiles>
<universalremote>
<obc139>ParentDir</obc139>
<obc138>ReplaceWindow(musiclibrary)</obc138>
</universalremote>
</musicfiles>

<fullscreeninfo>
<universalremote>
<obc125>PreviousMenu</obc125>
<obc137>PreviousMenu</obc137>
</universalremote>
</fullscreeninfo>

<filemanager>
<universalremote>
<obc139>ParentDir</obc139>
</universalremote>
</filemanager>

<shutdownmenu>
<universalremote>
<obc119>PreviousMenu</obc119>
</universalremote>
</shutdownmenu>

<home>
<universalremote>
<obc116>FullScreen</obc116>
<obc139>FullScreen</obc139>
</universalremote>
</home>

</keymap>

wild_oscar
2009-11-04, 15:58
Hi!
Where did you put the Lircmap and Keymap files? I copied them to ~/.xbmc/userdata and ~/.xbmc/userdata/keymaps respectively but I can't seem to use the remote (even though irw works)

Nick8888
2009-11-09, 12:56
need more info than that oscar.. can u provide the Lircmap.xml and remote.xml? and xbmc version.

xbmcnewbie
2009-11-11, 22:27
The same goes for me. I am using the excact same Lircmap.xml and remote.xml with my sony bd remote. XBMC is svn head and BD remote driver is bd remote ng 0.5 rc1.

irw receives correctly.

xbmcnewbie
2009-11-11, 23:14
Update: It now finally works. The issue was that xbmc was trying to access /dev/lirc instead of my /var/run/lirc/lircd

specify with
xbmc -l /var/run/lirc/lircd