Android uses wakelocks to control screen animation . So you might also want to take a look at /sys/power/wake_lock .. You may need root permission to change the values in this interface ...
On Dec 1, 2016 8:56 AM, "ranchu" <ransha...@gmail.com> wrote: > Hello, > > I'm struglling for some days now to turn off screen. > I can do that with "input keyevent 26", but I rather do it directly to > kernel. > If I had known which sysfs maybe is called on doing " input keyevent 26" > it could have helped me a lot. > Is it with ftrace ? ftrace not enabled in my manufacture's kernel. > > I made *many* trials in sort of "echo 0 > brightness", but I get only > darker screen, but not a screen turned off. > > Trying to understand why "input keyevent 26" works, while others trials > fails... > I appreciate any feedback on this. > I'm using android 5.1.1 with kernel 3.4.0-perf > > Regards, > Ranchu > > -- > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel > --- > You received this message because you are subscribed to the Google Groups > "Android Linux Kernel Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-kernel+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel --- You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-kernel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.