How To Set Android 6.0 Sleep On Power Button - Nougat Wont Sleep With Touch Connected

264 views
Skip to first unread message

Phil Buck

unread,
Aug 22, 2017, 3:36:33 PM8/22/17
to Android-x86
Hi, I Managed To Set The Power Button To Send The System To Sleep In Nougat, But Nougat Causes An Issue Where The System Can Not Sleep When The Touch Screen Is Connected
(See Video https://www.youtube.com/watch?v=FgC2W2Z4OD0). I Have Tested 6.0 And When I Send The System Sleep Time Out To A Quicker Time 30Secs It Sleeps Fine

But How Do I Set The Power Button To Sleep On A Single Press Of The Power Button & Wake On Another ?

Poweroff.doubleclick=1 (Works On Nougat But Not 6)
Sleep.earlysuspend=2 (Works On Nougat But Not 6) 

Thanks In Advance

Ps, A Guy From XDA Forums Found Why Nougat "Stays Awake When The Touch Screen Is Connected & Found The Following Details.

What The File Log Showed - [ 415.373832] PM: Preparing system for sleep (freeze) [ 415.374392] Freezing user space processes ... [ 435.378400] Freezing of tasks failed after 20.003 seconds (1 tasks refusing to freeze, wq_busy=0)
(Im Not Alone As You Can See In The Youtube Video)

youling 257

unread,
Aug 22, 2017, 10:02:17 PM8/22/17
to Android-x86
your USB touchscreen is

[ 3.512785] input: HID 1391:2112 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:1391:2112.0001/input/input8
[ 3.513001] hid-multitouch 0003:1391:2112.0001: input,hiddev0,hidraw2: USB HID v1.11 Device [HID 1391:2112] on usb-0000:00:14.0-1/input0

youling 257

unread,
Aug 22, 2017, 10:23:59 PM8/22/17
to Android-x86
[ 11.171339] input: 04F30732:00 04F3:0411 as /devices/platform/80860F41:03/i2c-3/i2c-04F30732:00/0018:04F3:0411.0002/input/input3
[ 11.171845] hid-multitouch 0018:04F3:0411.0002: input,hidraw1: I2C HID v1.00 Device [04F30732:00 04F3:0411] on i2c-04F30732:00

hid-multitouch on i2c,suspend no problem.

youling 257

unread,
Aug 22, 2017, 10:25:43 PM8/22/17
to Android-x86
we need before suspend rmmod touchscreen,resume later modprobe touchscreen
Reply all
Reply to author
Forward
0 new messages