Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 3087|Reply: 1

Sleep modes in Orange Pi zero

[Copy link]

1

Threads

1

Posts

19

Credits

Novice

Rank: 1

Credits
19
Post time 2018-3-6 12:51:44 | Show all posts |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
Post time 2020-9-2 18:01:07 | Show all posts
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 the Code

It should contain
  1. freeze mem disk
Copy the 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 the Code
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2021-3-9 15:59 GMT+8 , Processed in 0.027001 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list