Title: Sleep not work [Print This Page] Author: santiagax99 Time: 6/6/2019 03:53 Title: Sleep not work Trying to send android to sleep via 'echo mem > /sys/power/state' but after few seconds system become available again
# echo mem > /sys/power/state
[ 2680.730028] PM: suspend entry 2019-06-05 19:52:06.877892777 UTC
[ 2680.730070] PM: Syncing filesystemdone.
[ 2680.733973] Freezing user spa(elapsed 0.003 seconds) done.
[ 2680.741349] Suspending consoleno_console_suspend to debug)
INFO: sleep mode config[0xde]:
INFO: AP_PWROFF
INFO: SLP_ARMPD
INFO: SLP_PLLPD
INFO: DDR_RET
INFO: Scan wakeup system
INFO: PWMINFO: RK3399 the wake up information:
INFO: wake up status: 0x4
INFO: GPIO interrupt wakeup
INFO: GPIO0: 0x8
Copy the code
Is is possible to disable this GPIO0: 0x8 iterrupt wake up ?Author: santiagax99 Time: 6/9/2019 03:24
echo freeze > /sys/power/state also not working as i expect Author: santiagax99 Time: 6/9/2019 12:35
Okay, i've managed to disable GPIO_WAKE_UP via changing rockchip_suspend in dts:
Now i have new issue - can't wake up the board even with power button press Author: penguin Time: 6/18/2019 11:37 Last edited by penguin In 6/18/2019 12:01 Editor
According to your suspend log, the wake up source is the GPIO.
0x8 is the value of GPIO_INT_STATUS of GPIO0 which indicates that the GPIO0_B1 is the wake up source.
Check the schematic to see how it is connected.
Power button is a GPIO key, which will not wake up the system after disabling GPIO as wake up source.Author: santiagax99 Time: 7/18/2019 03:37
I'm try to achieve next behaviour on power button press:
- board is going in "low power mode" (disabling any kind of wireless devices (WiFi, BT, WWAN, GPS), usb ports, fan)
- wakelocks are disabled at all
- wake-up available only by power button press again.
But i don't know if it possible
would be happy for any help or advice Author: penguin Time: 7/25/2019 09:08
Bypassing all wakelocks is not a good idea.
Why would you want to do that? What's your purpose?Author: santiagax99 Time: 7/25/2019 22:28
Use board as CarPC
here is simple diagram https://docs.google.com/drawings ... DgrHePg3e9EEo0/edit
Some logic info:
AIO connected via ITPS (Intelligence PowerSuply),
when car is in OFF state, nothing is powered ON
when car Ignition is ON, ITPS opens 5V channel to AIO and powers it up.
after if Ignition become OFF then ITPS send to sleep AIO (via "pressing" power button) and checks that AIO is asleep (via LED pin)
after configured timeout (say 20min) if car still in OFF state, ITPS try to power off AIO (long press power button) and finally powers down itself
if IGNITION is ON before timeout, ITPS waking up AIO (by press power button) and check that AIO is awake (via LED pin)
So i want to minimize current on AIO by disabling any wireless and be sure that AIO will not wake up by itself.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)