[App] libSoftPowerOff K

Here are software that related with Samsung K series TVs.
Please don't create any new topic here unless you have software to post/release.

zoelechat
Official SamyGO Developer
Posts: 8315
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

[App] libSoftPowerOff K

Post by zoelechat » Sat Feb 10, 2018 11:43 am

Prevents TV to enter deep standby mode on power off. Keeps root and remote access to TV. Basically shutdowns panel and audio only.

Usage:
  • Extract attached archive
  • Copy 80_SoftPowerOff.init to SYSROOT/etc/init.d
  • Copy libSoftPowerOff.so to SYSROOT/usr/so
  • Reboot TV or start script manually:

    Code: Select all

    $SYSROOT/etc/init.d/80_SoftPowerOff.init start
Notes:

Script injects several PIDs depending on soft-off scenario, here's current brief summary:
  • org.volt.lwframework: RC power off button case
  • services-fw: sleep-timer off
  • tvtimer-manager: on/off-timer
  • tvs-daemon: forcibly cuts spdif audio output on HDMI sources in all above cases
Note that there are some scenarios I didn't test such as "soft-off at the end of scheduled pvr". Please report if you find/need any where TV doesn't go soft-off as expected, and I'll look for additional PID(s) to inject.

Reminder: Watchdog must be disabled in service menu for lib to work (has been added as prerequisite in root thread).


Logfile is written to /tmp/SoftPowerOff.log
ChangelogShow

Code: Select all

10/2/2018
v0.1.5 - First release
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.

asiersan
SamyGO Project Donor
Posts: 137
Joined: Fri May 09, 2014 1:30 am

Re: [App] libSoftPowerOff K

Post by asiersan » Sun Feb 11, 2018 8:08 pm

Thanks!!!!
Samsung 55HU7500L
Samsung 40F6500
Samsung 32K5570SU

User avatar
juusso
SamyGO Moderator
Posts: 10034
Joined: Sun Mar 07, 2010 6:20 pm

Re: [App] libSoftPowerOff K

Post by juusso » Sun Feb 11, 2018 8:36 pm

Superb :)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

zoelechat
Official SamyGO Developer
Posts: 8315
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff K

Post by zoelechat » Sun Feb 11, 2018 8:44 pm

Well, it was ready for only one and a half year :lol:
I do NOT receive any PM. Please use forum.

jaroprofe
SamyGO Project Donor
Posts: 29
Joined: Mon May 15, 2017 10:59 am

Re: [App] libSoftPowerOff K

Post by jaroprofe » Tue Feb 20, 2018 4:41 pm

I test this option but when I switch off the tv, I can't conect by telnet or ftp

zoelechat
Official SamyGO Developer
Posts: 8315
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff K

Post by zoelechat » Tue Feb 20, 2018 5:16 pm

Did you disable "instant ON" stuff in service menu? (mandatory)
No access means NOT in soft-off state (even less if you need to start root widget over on next power on)
Which firmware/number?
Also log helps.
I do NOT receive any PM. Please use forum.

pantz
SamyGO Project Donor
Posts: 2
Joined: Mon May 05, 2014 11:27 pm

Re: [App] libSoftPowerOff K

Post by pantz » Sun Feb 25, 2018 4:28 pm

It doesn't work for me either. "Instant On" and "Always Instant On Support" has been disabled.
log:

Code: Select all

localhost~ # cat /tmp/SoftPowerOff.log 
[SoftPowerOff] SamyGO K libSoftPowerOff v0.1.5 - (c) zoelechat 2018
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] sound_manager_set_device_mute [0x454da571].
[SoftPowerOff] sound_manager_get_device_mute [0x454da671].
[SoftPowerOff] sound_manager_set_master_mute [0x454d9e59].
[SoftPowerOff] sound_manager_get_master_mute [0x454d9f21].
[SoftPowerOff] lib_init, >>> services-fw
[SoftPowerOff] device_power_request_poweroff [0x4471135c].
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] dlsym 'sound_manager_set_device_mute' failed.
[SoftPowerOff] setting hook 0 0xb2fec2ec 0x4471135c 0xb2fdb06d device_power_request_poweroff
[SoftPowerOff] setting hook 1 0xb2fec2b0 0x44714684 0xb2fdb1cd device_power_set_state
[SoftPowerOff] setting hook 2 0xb2fec278 0x447147e4 0xb2fdb139 device_power_get_state
[SoftPowerOff] init done...
[SoftPowerOff] SamyGO K libSoftPowerOff v0.1.5 - (c) zoelechat 2018
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] sound_manager_set_device_mute [0x454da571].
[SoftPowerOff] sound_manager_get_device_mute [0x454da671].
[SoftPowerOff] sound_manager_set_master_mute [0x454d9e59].
[SoftPowerOff] sound_manager_get_master_mute [0x454d9f21].
[SoftPowerOff] lib_init, >>> tvtimer-manager
[SoftPowerOff] device_power_request_poweroff [0x4471135c].
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] dlsym 'sound_manager_set_device_mute' failed.
[SoftPowerOff] setting hook 0 0xb62cf2ec 0x4471135c 0xb62be06d device_power_request_poweroff
[SoftPowerOff] setting hook 1 0xb62cf2b0 0x44714684 0xb62be1cd device_power_set_state
[SoftPowerOff] setting hook 2 0xb62cf278 0x447147e4 0xb62be139 device_power_get_state
[SoftPowerOff] init done...
[SoftPowerOff] SamyGO K libSoftPowerOff v0.1.5 - (c) zoelechat 2018
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] sound_manager_set_device_mute [0x454da571].
[SoftPowerOff] sound_manager_get_device_mute [0x454da671].
[SoftPowerOff] sound_manager_set_master_mute [0x454d9e59].
[SoftPowerOff] sound_manager_get_master_mute [0x454d9f21].
[SoftPowerOff] lib_init, >>> tvs-daemon
[SoftPowerOff] device_power_request_poweroff [0x4471135c].
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] sound_manager_set_device_mute [0x454da571].
[SoftPowerOff] setting hook 0 0xb5a392ec 0x4471135c 0xb5a2806d device_power_request_poweroff
[SoftPowerOff] setting hook 1 0xb5a392b0 0x44714684 0xb5a281cd device_power_set_state
[SoftPowerOff] setting hook 2 0xb5a39278 0x447147e4 0xb5a28139 device_power_get_state
[SoftPowerOff] setting hook 3 0xb5a39240 0x454da571 0xb5a280dd sound_manager_set_device_mute
[SoftPowerOff] init done...
[SoftPowerOff] SamyGO K libSoftPowerOff v0.1.5 - (c) zoelechat 2018
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] sound_manager_set_device_mute [0x454da571].
[SoftPowerOff] sound_manager_get_device_mute [0x454da671].
[SoftPowerOff] sound_manager_set_master_mute [0x454d9e59].
[SoftPowerOff] sound_manager_get_master_mute [0x454d9f21].
[SoftPowerOff] lib_init, >>> org.volt.lwframework
[SoftPowerOff] device_power_request_poweroff [0x4471135c].
[SoftPowerOff] device_power_set_state [0x44714684].
[SoftPowerOff] device_power_get_state [0x447147e4].
[SoftPowerOff] dlsym 'sound_manager_set_device_mute' failed.
[SoftPowerOff] setting hook 0 0xb45822ec 0x4471135c 0xb457106d device_power_request_poweroff
[SoftPowerOff] setting hook 1 0xb45822b0 0x44714684 0xb45711cd device_power_set_state
[SoftPowerOff] setting hook 2 0xb4582278 0x447147e4 0xb4571139 device_power_get_state
[SoftPowerOff] init done...
I've got KU6400,

Code: Select all

localhost~ # cat /etc/info.ini 
[Version]
Model=T-JZMDEUC;
Version=T-JZMDEUC-1162.2;
Build=rel-tztv-2.4-trunk2016-jazz-m_20170105.1;
Operator=;
[Build]
Date=2017-01-05;
Time=12:14:36;

zoelechat
Official SamyGO Developer
Posts: 8315
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff K

Post by zoelechat » Sun Feb 25, 2018 5:25 pm

Mmmh strange, log is exactly what's expected and I've tested lib without any problem on T-JZMDEUC 1111, 1142, 1165 and 1169. I'd be surprised if 1162 has anything special :)
Could any of you check Exlink log, and paste here output from power button pressed to power off? (or even better: from root widget launch, then attach somewhere) not sure KU6400 has Exlink though
Also could you report if it's working in "special" cases: SleepTimer and Off-Timer?
And try to disable watchdog from service menu, if not already done.
I do NOT receive any PM. Please use forum.

pantz
SamyGO Project Donor
Posts: 2
Joined: Mon May 05, 2014 11:27 pm

Re: [App] libSoftPowerOff K

Post by pantz » Sun Feb 25, 2018 6:11 pm

Disabling watchdog did the trick, now it works like a charm :) thanks

zoelechat
Official SamyGO Developer
Posts: 8315
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff K

Post by zoelechat » Sun Feb 25, 2018 6:32 pm

Thanks for reporting, one injected process was probably killed by watchdog, therefore restarted unpatched.
Urgent to tell to disable it ahead of root thread :)
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[K] Software”