View: 8102|Reply: 3

Sleep modes in Orange Pi zero

[Copy link]

1

threads

1

posts

19

credits

Novice

Rank: 1

credits
19
Published in 2018-3-6 12:51:44 | Show all floors |Read mode
Is there any sleep modes in Orange Pi Zero?
I Searched alot for this but could not found any good information regarding sleep mode.
Actually I have to schedule task. So, Pi Zero should soft wake up from sleep mode do its task and then again go to sleep.

3

threads

10

posts

37

credits

Novice

Rank: 1

credits
37
Published in 2020-9-2 18:01:07 | Show all floors
Even though this is a rather old post, I'll provide an answer in case others see this too.
Yes, there are sleep modes. Check the file
  1. /sys/power/state
Copy code

It should contain
  1. freeze mem disk
Copy code

indicating, that power management is working. If you want to suspend your system to RAM you can do so by writing mem to that file:
  1. ed@257EE39E:~$ echo mem | sudo tee /sys/power/state
  2. Password:
  3. mem
  4. [  426.206631] PM: suspend entry (s2idle)
  5. [  426.401365] Filesystems sync: 0.190 seconds
  6. [  426.413647] Freezing user space processes ... (elapsed 0.001 seconds) done.
  7. [  426.421930] OOM killer disabled.
  8. [  426.425158] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
  9. [  426.433743] printk: Suspending console(s) (use no_console_suspend to debug)
Copy code

0

threads

29

posts

120

credits

Registered member

Rank: 2

credits
120
Published in 2022-2-7 16:51:16 | Show all floors
The article posted is very informative and helpful. You and everyone else are doing a great job. Go on.
among us

0

threads

1

posts

18

credits

Novice

Rank: 1

credits
18
Published in 2022-7-7 10:56:05 | Show all floors
Even though this post is somewhat old, I'll still answer in case someone else comes across it. flagle
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list