9

My application only uses Pi very occassionally and only a few seconds each time. It would be ideal if Pi supports suspend to RAM feature to save maximum energy. (I am thinking of the next step of powering Pi with batterries only.)

My question is:

  1. Does Pi support this feature? From what I've researched so far. It doesn't seem so.
  2. If not, is it possible to modify the hardware/kernel a little bit to make suspend to RAM work?

(Edit: The only hardware peripheral my application is using on the Pi is a USB-WiFi adapter.)

2
  • Isn't suspend to ram simply sleeping? Do you mean suspend to SD card?
    – MikeKulls
    Aug 17 '21 at 4:40
  • Yes. It's like sleeping. Note this question was asked 8 years ago when there's no sleep features in Pi then. Maybe it has it now? Aug 25 '21 at 18:14
6

No and No.
The Pi has no way of waking itself up apart from a hardware reset button, which can wake the Pi up from a halt state, i.e. it will reboot the Pi.

You can modify the hardware and use switching regulators rather than the linear regulators that the Pi uses out of the factory for some more energy saving.

Apart from that though, you won't get much more power saving unless you don't use the built in USB hub ( assuming you're using a Model B ), which means no Ethernet and no USB ports...which sort of defeats the purpose of the Pi.

4
  • Thanks for the comment. I need to use USB WiFi for my application. Can you provide your source of Model B Pi's USB hub cannot be suspended? What if I use Model A? Aug 27 '13 at 17:00
  • Will the Pi need to receive data on the USB WiFi adapter to wake up ? Or is this a timer thing ? Model A would save power in this case if all you need is the USB WiFi adapter plugged in.
    – Lawrence
    Aug 28 '13 at 3:13
  • I am considering to wake up Pi using GPIO. Aug 28 '13 at 3:20
  • raspberrypi.org/phpBB3/… <--- here's one of the threads I could find about powering down the USB/Ethernet chip. According to that if you power down the USB hub, you can't power it back up again.
    – Lawrence
    Aug 28 '13 at 3:38
2

Both RasPi and USB-WiFi consume quite a lot of power, so unless you're going to power them from car battery or something of similar size, you may forget about running them on batteries.

An usual pack of AA batteries will give you about 1 hour of run time, with very unstable performance after the batteries are half-depleted.

1
  • 2
    I was able to run a Pi (256K original B) all day (over 8 hours) on a 6000 mAh battery pack. I didn't do an exhaustive test but it was used lightly throughout that time and the WiFi ran the full time. Aug 28 '13 at 15:22
1

Have you considered the PI Zero? I run them from 12V batteries no issue. They use about 1Ah per day, so a 5Ah battery with a small solar panel would have tons of overhead. As for suspend to RAM, do you mean suspend to SD card? I think that sleeps of 100ms would be a better option.

The other thing you could consider is the Arduino solutions like Wemos. These use even less power and have good sleep functionality. If you sleep for 250ms it will be asleep 90% or more of the time and use may 0.1Ah per day

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.