• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Merit] wake screen with volume keys?

just got the merit a couple weeks ago and am loving it so far.. the only thing I've noticed is that only the power button will wake the screen. is it possible to somehow enable the volume rocker to also wake the screen, or failing that, any button? i'd like to find a way to relieve some of the usage of my power button.. I'm rooted and running stock for the most part. not new to Android and i have tried some suggestions I've found online but have had no luck so far. any help or suggestions would be much appreciated. let me know if you need any more info from me, and thanks in advance!
 
one thing i neglected to mention in my previous post is that when the phone is plugged in charging, any button will wake it, but not while running on battery power.
 
yes, you can wake the phone with any key you want and doesn't require any android policy modding as suggested. it's written into the init.rc of the boot.img to make it available.

just add

persist.sys.wakeup.key=H [H is the home key btw, you can add the others one by one and see which one is the one you want to use; they will not sleep the screen but will wake it]

to /system/build.prop

# ZTE_PM_LIANGHOUXING_001: enable APP key to wakeup
on property:persist.sys.wakeup.key=A
write /proc/gpiowake A
on property:persist.sys.wakeup.key=B
write /proc/gpiowake B
on property:persist.sys.wakeup.key=H
write /proc/gpiowake H
on property:persist.sys.wakeup.key=M
write /proc/gpiowake M
on property:persist.sys.wakeup.key=D
write /proc/gpiowake D
# ZTE_PM_LIANGHOUXING_001:end
 
Back
Top Bottom