For people that use a simular RF/USB remote control to control
piCorePlayer via Jivelite I have attached a zip file with following
content:
    
- Original InputToActionMap.lua file that comes with Jivelite
- Modified InputToActionMap.lua that changes the function of a few
  buttons on the Remote Control, as discussed in my previous post
- Excel sheet that shows the keycodes that are generated by the model
  T3 remote control
- README.txt file that explains how to install the modified
  InputToActionMap.lua in piCorePlayer. This text file also contains
  some extra information about how to use evtest for detection of
  keycodes that are generated by a RF/USB remote control.
  
Attachment => 31253


HOW TO INSTALL A CUSTOM INPUTTOACTIONMAP.LUA FILE FOR JIVELITE IN
PICOREPLAYER
Instructions below make use of Win32DiskImager, Putty and WinSCP on a
Windows PC. Also it is assumed that Jivelite is installed in
piCorePlayer, and that the Joggler skin is used.
Lines that start with $ are commands that are entered on the Putty
commandline.

1) First make a backup image of the piCorePlayer SD card using
Win32DiskImager. To minimize the file size of the image select "Read
Only Allocated Partitions" in Win32DiskImager.

2) Boot piCorePlayer and SSH into piCorePlayer using Putty:
login as: tc
password: piCore

3) Create folder temp in /home/tc
$ mkdir temp

4) Create folder jive in /home/tc/.jivelite/userpath
$ cd /home/tc/.jivelite/userpath
$ sudo mkdir jive

5) Copy customized InputToActionMap.lua from Windows PC to piCoreplayer
using WinSCP. Copy InputToActionMap.lua to folder /home/tc/temp that was
created in step 3.

6) Copy InputToActionMap.lua from folder temp to folder
/home/tc/.jivelite/userpath/jive
$ cd /home/tc/temp
$ sudo cp InputToActionMap.lua ../.jivelite/userpath/jive

7) Quit Jivelite, by pressing key o at the back side of the T3 Remote
Control.
Jivelite should restart automatically and pick up the custom
InputToActionMap.lua file

8) Check that the modified remote control keys work as expected.
If the Jivelite GUI does not start, SSH into pCP and delete the custom
InputToActionMap.lua from folder /home/tc/.jivelite/userpath/jive as
follows
$ sudo rm /home/tc/.jivelite/userpath/jive/InputToActionMap.lua

9) This is an optional step to reduce data that is saved to SD card in
the next step.
If the modified keys work as expected, SSH into piCorePlayer again and
remove InputToActionMap.lua from folder temp:
$ cd temp
$ rm InputToActionMap.lua

10) Save the customized key map
/home/tc/.jivelite/userpath/jive/InputToActionMap.lua to SD card using
your Remote Control: 
Jivelite HOME => Settings => piCorePlayer => Save Settings to SD Card
This saves piCorePlayer settings to SD card, including all files under
/home/tc. These settings are restored when booting PiCorePlayer

11) Reboot piCorePlayer by selecting  "Reboot piCorePlayer" in the same
piCorePlayer menu

12) Double check that the modified keys work as expected.

Regards,
CJS


+-------------------------------------------------------------------+
|Filename: T3_Jive_keymap.zip                                       |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31253|
+-------------------------------------------------------------------+


| LMS 7.9.3 | Squeezebox Boom | RPi0W + pCP 6.1.0 + HiFiBerry DAC |
------------------------------------------------------------------------
CJS's Profile: http://forums.slimdevices.com/member.php?userid=68700
View this thread: http://forums.slimdevices.com/showthread.php?t=112709

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to