Remote Control Issues after sleep mode - WORKAROUND!

Post your great articles here :)
Jagdeepmarahar
Posts: 8
Joined: Sat Jun 08, 2019 2:12 pm
Answers: 0
Has thanked: 3 times

#11

Hi Nayam, I've successful in executing the commands. I had to insert following command to start the terminal in root system
/system/bin/su -
Then I just copy pasted the commands and it worked fine and the device rebooted. So far remote is working even after putting the box to sleep.
dankell
Verified Member
Posts: 33
Joined: Sat Aug 24, 2019 12:13 am
Answers: 0
Has thanked: 28 times
Been thanked: 2 times

#12

ricklar wrote: Sun May 19, 2019 2:08 pm Or you can use the EsNoteEditor in EsFile Explore with Root access On, and add the nosleep line to an existing script. I believe there is a script called 'AmlogicTune' in init.d that has same command line formating, then every boot the command will be enabled, so just insert this:

Code: Select all

echo nosleep > /sys/power/wake_lock
Hi Mate! after all my Problems ..I thought I was out of the woods .....So after sorting out the PSU problem ...I am no facing the problem with the remote control.
I had never experienced this previously ..so somehow it`s reared it`s ugly head in my direction. :-.
No the remote control works fine...and I can put the box to sleep...But are unable to power the box backup....
I have searched through the forums.... So I changed the remote.config with the stock making sure permission where correct and still no go.
I noticed your post mentioning ( 'AmlogicTune' in init.d ) and can not find this script file anywhere on the root of the device... I have looked in etc directory in init.d folder and nothing there even remotely resembles that file name. I cannot find this file AmlogicTune anywhere ..I looked everywhere I can think ,I have es-file explorer set to Root and show all system and hidden folders and files.
I really need your help again Mate! .....Sorry to be a Burden. But your fix seems the most logical to me considering it`s a permanent fix unlike the other makeshift fix`s which need re-applying if the box is restarted....Something I really do not want as this will be my daughters box.... So this needs to be perfect. with a trouble free remote.

Thank you for any help or advice you can offer.

Best Regards,
Nayam
Administrator & Developer
Posts: 1263
Joined: Mon Jun 11, 2018 11:58 pm
Answers: 0
Has thanked: 192 times
Been thanked: 434 times
Contact:

#13

dankell wrote: Tue Sep 03, 2019 3:01 am
ricklar wrote: Sun May 19, 2019 2:08 pm Or you can use the EsNoteEditor in EsFile Explore with Root access On, and add the nosleep line to an existing script. I believe there is a script called 'AmlogicTune' in init.d that has same command line formating, then every boot the command will be enabled, so just insert this:

Code: Select all

echo nosleep > /sys/power/wake_lock
Hi Mate! after all my Problems ..I thought I was out of the woods .....So after sorting out the PSU problem ...I am no facing the problem with the remote control.
I had never experienced this previously ..so somehow it`s reared it`s ugly head in my direction. :-.
No the remote control works fine...and I can put the box to sleep...But are unable to power the box backup....
I have searched through the forums.... So I changed the remote.config with the stock making sure permission where correct and still no go.
I noticed your post mentioning ( 'AmlogicTune' in init.d ) and can not find this script file anywhere on the root of the device... I have looked in etc directory in init.d folder and nothing there even remotely resembles that file name. I cannot find this file AmlogicTune anywhere ..I looked everywhere I can think ,I have es-file explorer set to Root and show all system and hidden folders and files.
I really need your help again Mate! .....Sorry to be a Burden. But your fix seems the most logical to me considering it`s a permanent fix unlike the other makeshift fix`s which need re-applying if the box is restarted....Something I really do not want as this will be my daughters box.... So this needs to be perfect. with a trouble free remote.

Thank you for any help or advice you can offer.

Best Regards,
Just put that line somewhere in between the preinstall script or any script in /etc/init.d
BE NICE, BE RESPECTFUL
RESPECT THE MODERATORS
PM ONLY WHEN IMPORTANT
ENJOY!
My Devices:
X96 Mini, A95X Pro, H96 Pro Stick, A95X Max
User avatar
ricklar
Moderator
Posts: 889
Joined: Fri Nov 30, 2018 10:30 pm
Answers: 0
Has thanked: 139 times
Been thanked: 249 times

#14

dankell wrote: Tue Sep 03, 2019 3:01 am
ricklar wrote: Sun May 19, 2019 2:08 pm so just insert this:

Code: Select all

echo nosleep > /sys/power/wake_lock
I noticed your post mentioning ( 'AmlogicTune' in init.d ) and can not find this script file anywhere on the root of the device... I have looked in etc directory in init.d folder and nothing there even remotely resembles that file name. I cannot find this file AmlogicTune anywhere ..I looked everywhere I can think ,I have es-file explorer set to Root and show all system and hidden folders and files.
I really need your help again Mate! .....Sorry to be a Burden.
Since I don't run the standard scripts in either v2FF or v2H, I will upload my init.d folder in a zip file and you can use the whole folder, you will still have to add that line for the Sleep issue but at least I have the 'AmlogicTune' for you to add it in. Check the S912 forum will post new topic there....
BE KIND, BE NICE, BE RESPECTFUL TO OTHERS, RESPECT THE MODERATORS,
*IMPORTANT NOTE* ONLY PM MODERATORS OR DEVELOPERS AS A LAST RESORT!!!

☢️ My test device: H96 Pro+ 3gb/32gb DDR4 ☢️ Plus own Tanix, Beelink, Alfawise, X96S, Odroid-N2, Khadas VIM3L, X3, ADT-3, X96-Air
GEARBEST.com
PLEASE ENJOY ATVX!
KGWAY
Posts: 1
Joined: Wed Nov 02, 2022 3:59 am
Answers: 0
Has thanked: 1 time

#15

bumerc wrote: Wed Feb 20, 2019 1:00 pm Problem
1. The supplied box remote control does not work after waking up from "sleep mode".
2. I have an Air Mouse, but waking the box from sleep mode does not work.

Workaround
We add the "nosleep" to Wakelocks.
Open the Android terminal and execute the following command:

Code: Select all

echo nosleep > /sys/power/wake_lock
or via the ADB-Shell session:

Code: Select all

adb connect <box_ip_addr>:5555
adb shell
echo nosleep > /sys/power/wake_lock
Enjoy!

- Use the arrow keys "Up and Down" to wake up from the Air Mouse.

Note - After a system restart, the Nosleep command must be entered repeatedly.

-----------------------------------------------------------------------------------------------------------------------------------

EDIT

If you want to enable the noosleep automatically, follow these steps (only for V2H):
1.

Code: Select all

adb shell
2. #Please copy this text completely and paste it in the terminal

Code: Select all

cat > /system/etc/init.d/template << EOF
#!/system/bin/sh

# activate nosleep
echo nosleep > /sys/power/wake_lock && echo "nosleep is activated"
EOF
3.

Code: Select all

cd /system/etc/init.d && cp -a 01Preinstall 17resume_remote
4.

Code: Select all

cp template 17resume_remote && sleep 1 && rm template
5.

Code: Select all

reboot
Good day Team!
I have the same issue on Mecool KM6 Deluxe: remote control does not work after waking up from "deep sleep" - box is not waking up and not responding to remote control. Only power adapter unplug/plug-in helps to start box working.
Really, I do not have experience how to use the commands in the terminal. Can I reproduce it using PC?
Thanks for your help and support.
User avatar
em3ka
Moderator
Posts: 1835
Joined: Sun Jul 15, 2018 11:43 am
Answers: 0
Has thanked: 108 times
Been thanked: 370 times

#16

KGWAY wrote: Wed Nov 02, 2022 4:34 am ...I do not have experience how to use the commands in the terminal...
Install/run Terminal Emulator app, and execute above command from command line...
Post Reply