Remote Control Issues after sleep mode - WORKAROUND!

Post your great articles here :)
Post Reply
bumerc
Administrator & Developer
Posts: 774
Joined: Tue Oct 02, 2018 6:19 pm
Has thanked: 89 times
Been thanked: 189 times

Remote Control Issues after sleep mode - WORKAROUND!

#1

Post by bumerc » 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

This topic has 13 replies

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply