Just a few questions please @ricklar before I proceed mate.
I suspect I must make sure that this full folder has the correct read and write permission properties adjusted ? So should I check on my system of the properties of my folder and adjust your folder to suite?
Upon opening and looking through the init.d folder I can see a list ,
position 6 03amlogic_tune
I open this file with notepad++ and a text list shows pasted below .
I have placed the text ( echo nosleep > /sys/power/wake_lock) at the bottom of the list is this correct ? or should it be place at a certain position or numbered line ?
Thank you for your time and help,
PS: Forgot to ask....or should I just totally replace my init.d folder with yours and make sure I have added the text line (echo nosleep > /sys/power/wake_lock) into the 03amlogic_tune script .? and set folder permissions to what my folder permission are.
Best Regards,
#!/system/bin/sh
# Settings correspond to init.amlogic.rc
echo 1 > /sys/module/amvdec_h264/parameters/dec_control
echo 1 > /sys/module/amvdec_mpeg12/parameters/dec_control
echo 1 > /sys/module/di/parameters/bypass_hd
echo 1 > /sys/module/di/parameters/bypass_all
echo 1 > /sys/module/amvideo/parameters/smooth_sync_enable
echo 1 > /sys/module/amvdec_h264/parameters/error_recovery_mode
echo 1 > /sys/module/amvdec_h264_4k2k/parameters/error_recovery_mode
echo 1 > /sys/module/amvdec_h265/parameters/double_write_mode
echo 1 > /sys/module/deinterlace/parameters/deinterlace_mode
echo 0 > /sys/module/di/parameters/nr2_en
echo 0 > /sys/class/tv/policy_fr_auto
echo 1 > /sys/module/di/parameters/nr10bit_support
echo 4 > /sys/class/mpgpu/scale_mode
echo 650 > /sys/class/mali_freq/max
echo nosleep > /sys/power/wake_lock
Edit Update: unfortunately it did not work for me .. I replaced the full init.d folder with yours and the edited in
echo nosleep > /sys/power/wake_lock in the amlogic_tune
Rebooted the system and tested...But my RC still does not wake the box once it`s put to sleep...Won`t even power on the box after you power it off.
I am now at a loss as what to do next.
Edit Update:
Just for complete verification and to set my mind at ease , as I was wondering if an hardware issue had occurred...... I did I full factory firmware restore and checked all the functions out on the RC....All functioned OK
So I now know for sure it`s not hardware relate.
Edit Update:
So I have been f@@king around with this for hours now and finally...after a factory firmware install and then a fresh H2 image install ..I tested the RC which would power down the box ...and then when you press the RC power button ..it would ignite the box back to life from sleep ..But then no directional or movement could be done with the original RC remote.
I then proceeded to delete the RC Config file and replace with the stock... Still The same scenario... I then decided to delete the init.d folder and replace it with your folder (
Edited with: echo nosleep > /sys/power/wake_lock ) which I had previously used without success.
I rebooted the box and again tested the RC............ tapped the red button powering off (sleep mode) ..then waited a few seconds and tapping the button and powering back on... tried the directional buttons praying this time for movement.
Finally it worked.....But now I have to go about and start installing all the tweaks and stuff again, The box keeps f@@king me up the Arse ....it`s beyond a Joke.....I thought I had this sorted yesterday until I realize that there was this huge problem with the stock RC power button sleep function and wake up problems .
Hopefully nothing major else occurs and I get to finally finish this Box and get everything backed up in correct working order .
I will now make a TWRP backup as this is my starting point .....and now proceed to install the tweaks and then test as I go along....Hopefully everything go`s well.... But considering.......I suspect something else will pop up and f@@k me .
I hope not. lol