Archive:Sapphire Remote: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Nickr
No edit summary
>Nickr
No edit summary
Line 156: Line 156:
</source>
</source>
Copy and paste my keymap from above and then exit nano.  
Copy and paste my keymap from above and then exit nano.  
==== Option 1: Load keymap on boot ====
Now if all you are doing is runnning XBMC you can install this keymap on boot and it can stay there. So load the keymap on boot via /etc/rc.local as we did to load the driver above. Again using nano edit the /etc/rc.local file and add this line AFTER the line we added earlier.
<source lang="bash">
/usr/local/bin/sapphire_keymap.sh /etc/sapphire/keymap.xbmc
</source>
==== Option 2: Load keymap when starting XBMC ====
Personally I run mythbuntu and my machine boots to mythfrontend, and I start XBMC when I want it from a muythtv menu item. Therefore I leave the default keymap as it works for mythtv. A script starts XBMC after loading keymap.xbmc, and on exit from XBMC it restores keymap.default. This is the script:


Now if all you are doing is runnning XBMC you can install this keymap on boot and it can stay there. So load the keymap on boot via /etc/rc.local as we did to load the driver above. Again using nano edit the /etc/rc.local file and add this line AFTER the line we added earlier.
<source lang="bash">
nick@lounge:~$ cat /usr/local/bin/startxbmc
#!/bin/sh
/usr/local/bin/sapphire_keymap.sh /etc/sapphire/keymap.xbmc
/usr/bin/xbmc
/usr/local/bin/sapphire_keymap.sh /etc/sapphire/keymap.default
</source>
 
For this to work you need to change permissions on /proc/sapphire, which I do via a simple line in /etc/rc.local:
<source lang="bash">
/bin/chmod 666 /proc/sapphire
</source>
Obviously this line must come after the one that loads the sapphire module.  
}}This page is currently a work in progress. You can see some other info here http://forum.xbmc.org/showthread.php?tid=159433&pid=1368998#pid1368998 and I'll try and create some generic info for the wiki.--[[User:Nickr|Nickr]] 03:03, 25 March 2013 (EDT)
}}This page is currently a work in progress. You can see some other info here http://forum.xbmc.org/showthread.php?tid=159433&pid=1368998#pid1368998 and I'll try and create some generic info for the wiki.--[[User:Nickr|Nickr]] 03:03, 25 March 2013 (EDT)

Revision as of 03:18, 7 April 2013

This page is currently a work in progress. You can see some other info here http://forum.xbmc.org/showthread.php?tid=159433&pid=1368998#pid1368998 and I'll try and create some generic info for the wiki.--Nickr 03:03, 25 March 2013 (EDT)