Firefly Open Source Community

   Login   |   Register   |

Sleep not work

37

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
37
Posted at 6/6/2019 03:53:51     
Trying to send android to sleep via 'echo mem > /sys/power/state' but after few seconds system become available again

  1. # echo mem > /sys/power/state
  2. [ 2680.730028] PM: suspend entry 2019-06-05 19:52:06.877892777 UTC
  3. [ 2680.730070] PM: Syncing filesystemdone.
  4. [ 2680.733973] Freezing user spa(elapsed 0.003 seconds) done.
  5. [ 2680.738087] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
  6. [ 2680.741349] Suspending consoleno_console_suspend to debug)
  7. INFO:    sleep mode config[0xde]:
  8. INFO:           AP_PWROFF
  9. INFO:           SLP_ARMPD
  10. INFO:           SLP_PLLPD
  11. INFO:           DDR_RET
  12. INFO:           Scan wakeup system
  13. INFO:           PWMINFO:    RK3399 the wake up information:
  14. INFO:    wake up status: 0x4
  15. INFO:           GPIO interrupt wakeup
  16. INFO:           GPIO0: 0x8
Copy the code


Is is possible to disable this GPIO0: 0x8 iterrupt wake up ?
Reply

Use props Report

37

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
37
Posted at 6/9/2019 03:24:18     
echo freeze > /sys/power/state also not working as i expect
Reply

Use props Report

37

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
37
Posted at 6/9/2019 12:35:04     
Okay, i've managed to disable GPIO_WAKE_UP via changing rockchip_suspend in dts:
  1. diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-port.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-port.dtsi
  2. index d657082..ac10872 100644
  3. --- a/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-port.dtsi
  4. +++ b/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-port.dtsi
  5. @@ -238,7 +238,7 @@
  6.                 >;
  7.         rockchip,wakeup-config = <
  8.                 (0
  9. -               | RKPM_GPIO_WKUP_EN
  10. +/*             | RKPM_GPIO_WKUP_EN */
  11.                 | RKPM_PWM_WKUP_EN
  12.                 )
  13.                 >;
Copy the code


Now i have new issue - can't wake up the board even with power button press
Reply

Use props Report

752

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
752
Posted at 7 day before     
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.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list