Hi Ralphy,

ralphy wrote: 
> 'This post'
> (https://forums.slimdevices.com/showthread.php?103330-Jivelite-for-piCorePlayer&p=938026&viewfull=1#post938026)
> documents how to find the keycode generated for the keys you want to
> change ...
With the help of your instructions and the evtest program I found the
keycodes of all buttons that are located at the front of the T3 RF
remote control. The picture below shows the keycode for each button, as
well as the input / event (event0, event1, event2) on which the keycode
is received.

31226 

ralphy wrote: 
>  ... and 'this one'
> (https://forums.slimdevices.com/showthread.php?105117-lirc-rpi-gpio-IR-support-for-picoreplayer&p=883651&viewfull=1#post883651)
> outlines how to modify the jivelite key mapping in picoreplayer.
I am struggling with this step. After extracting the default
InputToActionMap.lua file from /tce/optional/pcp-jivelite.tcz, I
modified the content of this file. My plan was to change c.q. create
following key mappings (keycode => wanted action):

Code:
--------------------
    [KEY_PLAYPAUSE] = "pause",
  [KEY_F3] = "go_search",
  [KEY_F4] = "disabled",
  [KEY_F5] = "disabled",
  [KEY_F6] = "disabled",
  [KEY_F7] = "disabled",
  
--------------------

As it happens to be, none of these 6 keycodes exist in the default
InputToActionMap.lua file, even if jivelite does respond on pressing the
F3 to F7 function keys by playing presets 3 to 7. It seems that (for
example) key code [KEY_F3] is mapped on action "play_preset_3", even if
code [KEY_F3] is not defined in InputToActionMap.lua. Since the 6
keycodes did not exist I added the code shown above to the end of
section "keyActionMappings.press", and copied the modified
InputToActionMap.lua to
/home/tc/.jivelite/userpath/jive/InputToActionMap.lua, as instructed in
the linked post (btw I first created folder jive since this folder did
not exist under /home/tc/.jivelite/userpath) :

ralphy wrote: 
> Just copy the modified InputToActionMap.lua to
> /home/tc/.jivelite/userpath/jive/InputToActionMap.lua and "quit
> jivelite". When it automatically restarts jivelite will use your version
> instead of the one in the tcz package.
=> Can you )Ralphy' or anybody elsre tell me how to "quit jivelite"?
Since I did not know how to do this, I rebooted pCP expecting that
jivelite would pick up the modified InputToActionMap.lua. But the
respons of jivelite on the 6 added keycodes had not changed, and when I
used winscp to check the contents of folder /home/tc/.jivelite/userpath
it appeared that folder jive with the modified InputToActionMap.lua file
had dissapeared. It seems like folder /home/tc/.jivelite is recreated
after reboot? In a second attempt, I again copied the modified
InputToActionMap.lua to folder /home/tc/.jivelite/userpath/jive, but
before rebooting pCP I stored settings to SD card via the Jivelite GUI.
In this case after rebooting pCP, at the end of the boot process the
jivelite GUI did not appear on the screen. Maybe this is because
jivelite does not recognize the 6 added keycodes?

I noticed that in this case file
/home/tc/.jivelite/userpath/jive/InputToActionMap.lua was there. After
deleting folder /home/tc/.jivelite/userpath/jive the jivelite GUI did
appear on the screen.

Can anybody tell me what I should do to create the 6 custom keymappings
mentioned above?


+-------------------------------------------------------------------+
|Filename: T3_RF_RC_keycodes_front_buttons.png                      |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31226|
+-------------------------------------------------------------------+


| 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