Cannot wake up from suspend

Moderators: Oren.R, Eran.M

PeterSteinberg
Posts: 16
Joined: Fri Aug 26, 2016 10:20 pm
Location: Madison, WI USA

Cannot wake up from suspend

Postby PeterSteinberg » Mon Jun 12, 2017 9:58 pm

Android M_601_210

After the display timeout period, if daydream mode is disable, our device goes into some type of suspend mode.

I get this output on the console:
Freezing of tasks aborted after 0.009 seconds
Restarting tasks ... done.
PM: suspend exit 1970-01-01 00:13:37.430885430 UTC
PM: suspend entry 1970-01-01 00:13:37.535701097 UTC
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.001 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Suspending console(s) (use no_console_suspend to debug)


The console then no longer responds to any input and the device does not wake up if I tap the screen.

If I use "svc power stayon true" then the device never turns off the screen.

Is there a way to restore the "tap to wakeup" functionality or equivalent?

Thanks,
Peter

varigigi
Posts: 52
Joined: Tue Nov 01, 2016 10:25 am

Re: Cannot wake up from suspend

Postby varigigi » Wed Jun 21, 2017 9:42 am

Hi Peter,
when the SOM fall in sleep mode, the 3V3 voltage shutdown to reduce all peripheral power consumption.
This means that the touch is no longer pwered and cannot wakeup the system.
You can either use a different 3V3 voltage source for the touch or use any GPIO pin marked as wakeup button in the gpio description of the dts.

BR
Pier

PeterSteinberg
Posts: 16
Joined: Fri Aug 26, 2016 10:20 pm
Location: Madison, WI USA

Re: Cannot wake up from suspend

Postby PeterSteinberg » Wed Jun 21, 2017 7:01 pm

We're using our own 3V3 supply to power the touch panel.

The only connection to the SOM are the I2C lines, the PCAP interrupt line, and the PCAP reset line.

varigigi
Posts: 52
Joined: Tue Nov 01, 2016 10:25 am

Re: Cannot wake up from suspend

Postby varigigi » Wed Jun 21, 2017 7:18 pm

Hi Peter,
which driver is currently managing your touchscreen?

BR
Pier

PeterSteinberg
Posts: 16
Joined: Fri Aug 26, 2016 10:20 pm
Location: Madison, WI USA

Re: Cannot wake up from suspend

Postby PeterSteinberg » Fri Jun 23, 2017 10:29 pm

It's the Goodix driver.

I found two issues from the previous engineer.
    The Goodix driver was re-written to operate in polling mode instead of interrupt mode, so the interrupts were never generated.

    The "wakeup-source;" line was not included in the device tree section.

Now it looks like the system isn't going into suspend mode, but when the screen gets turned off it still doesn't recover from a tap or double tap.

varigigi
Posts: 52
Joined: Tue Nov 01, 2016 10:25 am

Re: Cannot wake up from suspend

Postby varigigi » Sat Jun 24, 2017 6:58 am

Hi Peter,
our kernel uses official kernl 4.1 goodix driver, but If you want latest driver version, you can backport it from kernel 4.5, after that no changes have been applied by kernel developers.
Please note that the driver does not support wakeup, not even in latest version.
You can implement it referring other touch drivers, e.g. ads7846.

To let the system go in suspend mode, please check 2 conditions:
1) remove "svc power stayon true" from init.freescale.rc
2) uncheck "stay awake" from developer options

BR
Pier

PeterSteinberg
Posts: 16
Joined: Fri Aug 26, 2016 10:20 pm
Location: Madison, WI USA

Re: Cannot wake up from suspend

Postby PeterSteinberg » Mon Jun 26, 2017 1:04 pm

Thanks.

I've already back-ported the newer Goodix driver to fix the polling mode issue.

I'll work through the ads7846 driver for info on getting wake-up working.

Peter


Return to “Android”

Who is online

Users browsing this forum: No registered users and 3 guests

cron