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

Here are software that related with Samsung F series TVs.

sgi
SamyGO Project Donor
Posts: 39
Joined: Mon Feb 02, 2015 5:09 pm

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

Post by sgi » Tue Oct 27, 2015 8:22 pm

zoelechat wrote:
sgi wrote:If I just load this version, ALL keys of BOTH RCs will be ignored completely. That is,
the feedback LED of the TV (UE32H6270, pimped to H6470, T-MST14DEUC_2120.0)
will still be flickering but the commands get ignored (TV is still alive, though).
?? Funny indeed, can you reproduce? Log? (NEED log anyway).
100% reproducable: First let's try the lib which came with the
latest samyext4 image (as of 2015/06/21):

Code: Select all

/mnt/opt/privateer/usr/libso # samyGOso -d -T -B -r -l /mnt/opt/privateer/usr/libso/libRCremap.so
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libRCremap.so' resident: '1'
mprotect: 0x4227c020
dlopen: 0x424a0d80
dlclose: 0x424a0e14
dlsymaddr: 0x424a0e78
pc=42324eec lr=42324ed0 sp=bde7dde0 fp=3774510
r0=3774514 r1=80
r2=1 r3=0
stack: 0xbde5e000-0xbde7e000 length = 131072
executing injection code at 0xbde7dca0
library injection completed!
Succeeded.
 
/dtv # cat RCremap.log
[RCremap] SamyGO RCremap v0.2.2 - (c) bugficks 2013
[RCremap] mapping key: 'KEY_CHDOWN' to 'KEY_VOLDOWN'
[RCremap] mapping key: 'KEY_CHUP' to 'KEY_VOLUP'
[RCremap] mapping key: 'KEY_HDMI1' to 'KEY_MENU'
[RCremap] init done...
Both RCs work and on the big (non-soap) one the keys get properly
remapped....

Now we'll try the version from the first page of this thread:

Code: Select all

/mnt/opt/privateer/usr/libso # samyGOso -d -T -B -r -l /mnt/opt/privateer/usr/libso/libRCremap.so
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libRCremap.so' resident: '1'
mprotect: 0x4227c020
dlopen: 0x424a0d80
dlclose: 0x424a0e14
dlsymaddr: 0x424a0e78
pc=42324eec lr=42324ed0 sp=bdca3de0 fp=386d770
r0=386d774 r1=80
r2=1 r3=0
stack: 0xbdc84000-0xbdca4000 length = 131072
executing injection code at 0xbdca3ca0
library injection completed!
Succeeded.
 
/mnt # cat /dtv/RCremap.log
[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014

None of the RCs work. LED on TV is flickering but nothing gets through.
Also note that there are no "remapping" lines and no "init done...". It
seems to grab the keystrokes but doesn't pass them on.
Are you sure other version wasn't already injected?
Yep, they are not enabled through etc/init.d and TV was rebooted in-between...
sgi wrote:If I load libLogRCkey.so before loading libRCremap.so it works. However, no keys
of the "soap" RC are being logged (in libRCremap.so) and therefore also not
mapped...
Honestly I don't see any relationship between both libs that could lead to such behaviour...
Btw, which key/numbers logRCkey reports on other keys of soap (not only football), are they accurate ones or sth fancy like 270?
They are fine. Same numbers, same names. Even the emulated stuff.
For example, "EXIT" of the standard RC gets emulated on the soap
by pressing "RETURN" for a few seconds. And both appear as

Code: Select all

[LogRCkey] 88   KEY_RETURN
in the log...
Other question: is that smart remote IR stuff? bluetooth? wifi? I have absolutely no idea, except it's anything but "smart" :)
The power button is IR based. The rest is bluetooth. I really like it since
that laserpointer emulation feature eases the handling very much.

zoelechat
SamyGO Moderator
Posts: 7604
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Tue Oct 27, 2015 9:48 pm

Ah you mean 1st post version behaves the same as latest posted? Well, I have no clue about that, but I'd prefer feedback/log from version(s) I post. :)
I do NOT reply to any question by PM. Please use forum.

sgi
SamyGO Project Donor
Posts: 39
Joined: Mon Feb 02, 2015 5:09 pm

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

Post by sgi » Wed Oct 28, 2015 6:48 am

zoelechat wrote:Ah you mean 1st post version behaves the same as latest posted? Well, I have no clue about that, but I'd prefer feedback/log from version(s) I post. :)
1st post version behaves the same as latest posted == no keysttrokes get through
Version that came with SamyGO == keysttrokes get through and are being remapped (for the big RC).

Logfile above was created from 1st post version -- will repeat with yours in a few hours (hopefully).

zoelechat
SamyGO Moderator
Posts: 7604
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Wed Oct 28, 2015 10:48 am

Ok, there's obviously a bug in sectroyer's lib...
Apart from that, you said:
If I load libLogRCkey.so before loading libRCremap.so it works. However, no keys
of the "soap" RC are being logged (in libRCremap.so) and therefore also not
mapped...
From there I'd like to see some (=full) log of (latest posted!!) RCremap after pressing keys of both remotes, I'm not interested if log is "only lib title" (except if it's definitely the only log you get) :)
I do NOT reply to any question by PM. Please use forum.

sgi
SamyGO Project Donor
Posts: 39
Joined: Mon Feb 02, 2015 5:09 pm

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

Post by sgi » Wed Oct 28, 2015 6:13 pm

zoelechat wrote:Ok, there's obviously a bug in sectroyer's lib...
Apart from that, you said:
If I load libLogRCkey.so before loading libRCremap.so it works. However, no keys
of the "soap" RC are being logged (in libRCremap.so) and therefore also not
mapped...
From there I'd like to see some (=full) log of (latest posted!!)
Hmm, now latest posted works -- key strokes of BOTH RCs get through,
only standard RC gets remapped. Now idea why it is working now.
Could it be that I injected it too early after TV reboot? Anyway, here
are the logs:

Code: Select all

/mnt/opt/privateer/usr/libso # samyGOso -d -T -B -r -l /mnt/opt/privateer/usr/libso/libRCremap.so
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libRCremap.so' resident: '1'
mprotect: 0x4227c020
dlopen: 0x424a0d80
dlclose: 0x424a0e14
dlsymaddr: 0x424a0e78
pc=42324eec lr=42324ed0 sp=be19cde0 fp=4750128
r0=475012c r1=80
r2=1 r3=0
stack: 0xbe17d000-0xbe19d000 length = 131072
executing injection code at 0xbe19cca0
library injection completed!
Succeeded.

/dtv # cat RCremap.log 
[RCremap] SamyGO RCremap v0.3.5c log - (c) bugficks 2013, small fixes by sectroyer 2014, smaller fixes by zoelechat 2015
[RCremap] mapping key: 'KEY_CHDOWN' to 'KEY_VOLDOWN'
[RCremap] mapping key: 'KEY_CHUP' to 'KEY_VOLUP'
[RCremap] mapping key: 'KEY_HDMI1' to 'KEY_MENU'
[RCremap] 1 _ZN12KeyInputBase17t_ProcessKeyValueEPh [0x9f5e78].
[RCremap] init done...
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHDOWN=16] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLDOWN=11]
[RCremap] ProcessKeyValue [KEY_CHDOWN=16] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLDOWN=11]
[RCremap] ProcessKeyValue [KEY_CHDOWN=16] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLDOWN=11]
[RCremap] ProcessKeyValue [KEY_CHDOWN=16] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLDOWN=11]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHDOWN=16] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLDOWN=11]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHUP=18] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLUP=7]
[RCremap] ProcessKeyValue [KEY_CHDOWN=16] [remote: 0]
[RCremap] -> Remapped to [KEY_VOLDOWN=11]
RCremap after pressing keys of both remotes,
We see only keys from the standard RC, soap doesn't leave any trails
in logs...
I'm not interested if log is "only lib title" (except if it's definitely the only log you get) :)
Of course I post full logs and do not strip things ;-)

sgi
SamyGO Project Donor
Posts: 39
Joined: Mon Feb 02, 2015 5:09 pm

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

Post by sgi » Wed Oct 28, 2015 6:19 pm

Just retried, now keystrokes are blocked again. Only difference:
I have put libRCremap.so (same version as above) into /tmp
and injected it from there:

Code: Select all

/tmp # samyGOso -d -T -B -r -l  /tmp/libRCremap.so 
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/tmp/libRCremap.so' resident: '1'
mprotect: 0x4227c020
dlopen: 0x424a0d80
dlclose: 0x424a0e14
dlsymaddr: 0x424a0e78
pc=42324eec lr=42324ed0 sp=be0e5de0 fp=491c598
r0=491c59c r1=80
r2=1 r3=0
stack: 0xbe0c6000-0xbe0e6000 length = 131072
executing injection code at 0xbe0e5cb8
library injection completed!
Succeeded.

/tmp # cat /dtv/RCremap.log 
[RCremap] SamyGO RCremap v0.3.5c log - (c) bugficks 2013, small fixes by sectroyer 2014, smaller fixes by zoelechat 2015
Maybe injecting from /tmp does not work (of course, libRCremap.config
was available there as well)...

zoelechat
SamyGO Moderator
Posts: 7604
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Wed Oct 28, 2015 6:21 pm

Ok, please try new version of LogRCkey from first post and tell if soap keys are logged.
I do NOT reply to any question by PM. Please use forum.

sgi
SamyGO Project Donor
Posts: 39
Joined: Mon Feb 02, 2015 5:09 pm

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

Post by sgi » Wed Oct 28, 2015 6:34 pm

zoelechat wrote:Ok, please try new version of LogRCkey from first post and tell if soap keys are logged.
No keystrokes are logged with this version (0.0.5) no matter
which RC is used:

Code: Select all

[LogRCkey] SamyGO D/E/F/H libLogRCkey v0.0.5 - (c) zoelechat 2015
[LogRCkey] dlsym '_ZN12KeyInputBase17t_ProcessKeyValueEPh' failed.
[LogRCkey] Init done, now monitoring RC keypress...
BTW, retried injecting libRCremap.so when it resides in /mnt (instead of
/tmp), this doesn't work either. Seems that (at least) libRCremap.so definitely
wants to sit in /mnt/opt/privateer/usr/libso/...

zoelechat
SamyGO Moderator
Posts: 7604
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat » Wed Oct 28, 2015 6:39 pm

Latest LogRCkey you have to inject -T, not -A :)

Code: Select all

[LogRCkey] dlsym '_ZN12KeyInputBase17t_ProcessKeyValueEPh' failed.
I do NOT reply to any question by PM. Please use forum.

sgi
SamyGO Project Donor
Posts: 39
Joined: Mon Feb 02, 2015 5:09 pm

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

Post by sgi » Wed Oct 28, 2015 6:55 pm

zoelechat wrote:Latest LogRCkey you have to inject -T, not -A :)

Code: Select all

[LogRCkey] dlsym '_ZN12KeyInputBase17t_ProcessKeyValueEPh' failed.
Ha, that's funky: I use a script named "keylog":

Code: Select all

#!/bin/sh
samyGOso -d -A -B -r -l /mnt/opt/privateer/usr/libso/libLogRCkey.so
exec tail -F /dtv/LogRCkey.log
which I never touched for days. So I always used -A instead of -T and
apparently this never was a problem until now ;-)

Anyway, I changed the script:

Code: Select all

/mnt # cat /mnt/opt/privateer/bin/keylog
#!/bin/sh
samyGOso -d -T -B -r -l /mnt/opt/privateer/usr/libso/libLogRCkey.so
exec tail -F /dtv/LogRCkey.log
and now keys of the standard RC are being logged again (but no keys
of the soap and the dynamic linker error remains):

Code: Select all

/mnt/opt/privateer/usr/libso # keylog 
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libLogRCkey.so' resident: '1'
mprotect: 0x4227c020
dlopen: 0x424a0d80
dlclose: 0x424a0e14
dlsymaddr: 0x424a0e78
pc=42324eec lr=42324ed0 sp=bde9ede0 fp=32dcf30
r0=32dcf34 r1=80
r2=1 r3=0
stack: 0xbde7f000-0xbde9f000 length = 131072
executing injection code at 0xbde9eca0
library injection completed!
Succeeded.
tail: can't open '/dtv/LogRCkey.log': No such file or directory
tail: /dtv/LogRCkey.log has appeared; following end of new file
[LogRCkey] SamyGO D/E/F/H libLogRCkey v0.0.5 - (c) zoelechat 2015
[LogRCkey] _ZN12KeyInputBase17t_ProcessKeyValueEPh [0x9f5e78].
[LogRCkey] Init done, now monitoring RC keypress...
[LogRCkey] Input: 0     Key: 7 KEY_VOLUP
[LogRCkey] Input: 0     Key: 7 KEY_VOLUP
[LogRCkey] Input: 0     Key: 7 KEY_VOLUP
[LogRCkey] Input: 0     Key: 7 KEY_VOLUP
[LogRCkey] Input: 0     Key: 11 KEY_VOLDOWN
[LogRCkey] Input: 0     Key: 11 KEY_VOLDOWN
[LogRCkey] Input: 0     Key: 11 KEY_VOLDOWN
[LogRCkey] Input: 0     Key: 7 KEY_VOLUP
[LogRCkey] Input: 0     Key: 11 KEY_VOLDOWN
BTW, is there any doc about the samyGOso args?

Post Reply

Return to “[F] Software”

Who is online

Users browsing this forum: No registered users and 2 guests