我们调试的Amlogic T962E-7.1平台的的触摸屏产品
powerManager.goToSleep()后,系统会进入浅休眠,此时屏幕是熄屏的。网络是关闭的。通过串口打印可以看见,后台Service里的子线程还是一直在运行的。
此时按遥控的电源键和返回键是可以唤醒的,用户希望通过按触摸屏来唤醒。这个应该怎么做呢?
我看了网上的回答是修改:framework/native/service/inpuflinger/InputReader.cpp
里面
// Initial downs on external touch devices should wake the device.
// Normally we don't do this for internal touch screens to prevent them from waking
// up in your pocket but you can enable it using the input device configuration.
- mParameters.wake = getDevice()->isExternal();
+ mParameters.wake = true;
看注释的意思应该就是通过触摸唤醒屏幕的。RK3288-7.1修改这里后是可以触摸唤醒的,
但是Amlogic T962E 和 S912试过了,修改这个地方都不行。不知道是在哪里还做了处理
有知道怎么修改的大佬吗??