Page 13 of 14

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Wed Jul 13, 2016 8:25 pm
by edytibi
Thank you for this app.It saved my remote control from going to trash, I lost the right arrow key and navigation was a pain.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Mon Sep 05, 2016 6:58 pm
by exe32
Ability to work with a touch(Bluetooth) remote controller?

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Mon Sep 05, 2016 7:28 pm
by sectroyer
exe32 wrote:Ability to work with a touch(Bluetooth) remote controller?
Why ? :)

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Mon Sep 05, 2016 8:15 pm
by exe32
To be able to install the script on the button (to select a menu item). In this remote
http://m.protoria.ua/res/img/pic/IMG_6152.jpg

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Thu Oct 06, 2016 3:55 pm
by robert90
For me, the lib is currently functioning not correctly.
I sometimes have problems that the TV does not proceed correctly.
That's why I created the following:

libRCremap.config:

Code: Select all

[
	{
        "KEY_VOLUP": "KEY_VOLUP"
    },
    {
        "KEY_POWEROFF": "CMD:/mnt/opt/privateer/usr/bin/_shutdown.sh"
    },
	{
        "KEY_VOLDOWN": "KEY_VOLDOWN"
    }
]
_shutdown.sh

Code: Select all

#!/bin/sh
[ $(pidof ${0##*/}) ] 2>/dev/null || exit 0
rm /mnt/opt/privateer/usr/bin/_shutdown.log;
touch /mnt/opt/privateer/usr/bin/_shutdown.log;
/mnt/etc/init.d/07_11_ntpclient.init.dis start;
/sbin/micom shutdown | date >> /mnt/opt/privateer/usr/bin/_shutdown.log
As I can now understand the notes _shutdown.log, the script when switching off is not called. Manual can I start the script.

According RCRemap.log but everything should be fine.
RCRemap.log

Code: Select all

[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: 'KEY_VOLUP' to 'KEY_VOLUP'
[RCremap] mapping key: 'KEY_POWEROFF' to command: '/mnt/opt/privateer/usr/bin/_shutdown.sh'
[RCremap] mapping key: 'KEY_VOLDOWN' to 'KEY_VOLDOWN'
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x962620].
[RCremap] init done...
Any Idea why the lib not working? I test the same RCRemap.config with change VOLUP and VOLDOWN, it works. Only the CMD not work.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Aug 20, 2017 2:19 pm
by beatfreak
tested and working without problems on T-VALDEUC 3011 (UE40C6500)

Code: Select all

# cat /mtd_rwcommon/SamyGO/opt/privateer/usr/libso/libRCremap.config
[
    {
        "KEY_RED": "KEY_RED"
    },
    {
        "KEY_YELLOW": "CMD:/mtd_rwcommon/SamyGO/etc/init.d/02_10_wakelan.init.dis start"
    }
]
#
RCremap.log:
SpoilerShow

Code: Select all

# cat /dtv/RCremap.log
[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: 'KEY_RED' to 'KEY_RED'
[RCremap] mapping key: 'KEY_YELLOW' to command: '/mtd_rwcommon/SamyGO/etc/init.d/02_10_wakelan.init.dis start'
[RCremap] Trying to get _ZN9KeyCommon17SendKeyPressInputEiis on C.
[RCremap] Found _ZN9TDBuilder8GetTDiCPE16TDSourceObject_k location at: 0x002dd460
[RCremap] Found _fini location at: 0x01aacb24
[RCremap] text range: @0x0025d460 -> @0x0020d460
[RCremap] rodata range: @0x01aacb24 -> @0x0a2acb24
[RCremap] Found SendKeyPressInput at @0x0024546c
[RCremap] SendKeyPressInput address: 0x0024546c
[RCremap] _ZN9KeyCommon17SendKeyPressInputEiis address: 0x00245330
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x245330].
[RCremap] init done...
#
if LibLOGrcKey could be ported to C-Series too i'd like to throw all 255 possible IR-signals to my TV (using LIRC) , this should give the complete IRtoKey mapping

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Sun Aug 20, 2017 5:24 pm
by zoelechat
Well, makes sense C lib works on C whereas not-C doesn't :)

Not random that I didn't port LogRCkey to C (as well as most libs I did), just that "finding symbols" is pain in the ass boring stuff, not reliable moreover (sectroyer inside :P )

Suggested:
-Use firmware 0000 where all symbols are there, LogRCkey will work in state, out of the box.
or
-RCremap logs (mapped) keypresses IIRC, you still can remap all keys to theirselves (at least the ones you really need), then you get expected log :ugeek:

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Mon Aug 21, 2017 4:26 pm
by beatfreak
zoelechat wrote:
Sun Aug 20, 2017 5:24 pm
-RCremap logs (mapped) keypresses IIRC, you still can remap all keys to theirselves
Well as my plan is to test all the keys it will be a quite big config, and i assume i'll have to call RCremap with -d parameter for debug mode

EDIT: samyGOso ist set to inject RCremap with -d parameter (added at the end), but i dont see any additional logfile, RCremap.log was present before to but it doesnt contain additional info on pressed buttons

P.S. has anyone tried to launch the injection earlier in the boot process?

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Mon Aug 21, 2017 8:54 pm
by zoelechat
"big config" can be quickly done by smart parsing keylist, the question is more if a big enough "array" is intended in sourcecode :D
Only time for you to realize not even a third of keycodes are really in use anyway :)

I don't think -d will help, it never helped nobody because nobody knows what it tells :p

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Tue Aug 22, 2017 2:12 pm
by beatfreak
zoelechat wrote:
Mon Aug 21, 2017 8:54 pm
Only time for you to realize not even a third of keycodes are really in use anyway :)
Thats what i am curious about, atm i have 73 IR codes and their respective button captions but no accurate mapping to keycodes

oh, and a big thank you for this patch and especially for "surprise", now i never need to get up from the couch again XD