just wondering if anyone was making a suspend/hibernate function for the rapi? that way if it was running on batteries, there would be a way to extend the life of the batteries.
would this be a big deal to do?
- RaspberryPie
- Posts: 20
- Joined: Thu Apr 26, 2012 3:49 pm
- Location: florida
anyone working on a suspend/hibernate driver
A Raspberry a Day
Keep the Student at Play
So Get Your Slice of Pi
Let your programming Fly
Keep the Student at Play
So Get Your Slice of Pi
Let your programming Fly
Re: anyone working on a suspend/hibernate driver
I'm no expert on this, but is it not already part of standard Linux?
You don't need to worry about the GPU as that will autopower down when not being used. It's the Arm side that needs to be covered by Linux.
You don't need to worry about the GPU as that will autopower down when not being used. It's the Arm side that needs to be covered by Linux.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.
Working in the Applications Team.
- RaspberryPie
- Posts: 20
- Joined: Thu Apr 26, 2012 3:49 pm
- Location: florida
Re: anyone working on a suspend/hibernate driver
thanks jamesh, you are correct, appreciate pointing that out.
found this [color=#8080BF]http://www.cyberciti.biz ... t/[/color](text posted below):
found this [color=#8080BF]http://www.cyberciti.biz ... t/[/color](text posted below):
Can someone who has a pi (please) try this function to see if it works (and how long to cycle between states)?Q. Does any Linux distribution support suspend or hibernate functionality?
A. Yes, almost all modern Linux distribution supports suspend or hibernate functionality. In the Linux kernel, Hibernate or suspend-to-disk, suspend-to-ram, suspend-to-file is implemented by swsusp which is built into the 2.6 series.
Hibernate is a feature where the contents of RAM is written to the hard disk (as either a file or on a separate partition) before powering off the system. Later the system can be restored to the state it was in when hibernation was invoked, so that programs can continue executing as if nothing happened. Hibernating and restoring from hibernate is also generally faster than a hard reboot and, if necessary, can be done without user interaction.
I've personally tested following distributions:
+ Red Hat Enterprise Linux 5 ( desktop edition )
+ Debian Linux
+ Fedora Linux
+ Ubuntu Linux
How to suspend and hibernate a laptop under Linux
=> Click on Shutdown > Select Suspend or Hibernate as per requirement.
A Raspberry a Day
Keep the Student at Play
So Get Your Slice of Pi
Let your programming Fly
Keep the Student at Play
So Get Your Slice of Pi
Let your programming Fly
-
- Posts: 4277
- Joined: Sun Jan 15, 2012 1:11 pm
Re: anyone working on a suspend/hibernate driver
Funnily enough, I always assumed that hibernate/suspend would work out of the box on the Pi, but there was a post recently (I think in one of the "battery" threads) that seemed to indicate otherwise. So, that's why there was doubt.
And some folks need to stop being fanboys and see the forest behind the trees.
(One of the best lines I've seen on this board lately)
(One of the best lines I've seen on this board lately)
Re: anyone working on a suspend/hibernate driver
Ok, you have suspended your Raspberry Pi. Which button do you press to turn it on again?
- RaspberryPie
- Posts: 20
- Joined: Thu Apr 26, 2012 3:49 pm
- Location: florida
Re: anyone working on a suspend/hibernate driver
its always the little things, lol 
now where is that "any" key??

now where is that "any" key??
A Raspberry a Day
Keep the Student at Play
So Get Your Slice of Pi
Let your programming Fly
Keep the Student at Play
So Get Your Slice of Pi
Let your programming Fly
Re: anyone working on a suspend/hibernate driver
In that case, could you explain this? http://www.raspberrypi.org/phpBB3/viewt ... 188#p81188jamesh wrote:You don't need to worry about the GPU as that will autopower down when not being used. It's the Arm side that needs to be covered by Linux.

Re: anyone working on a suspend/hibernate driver
Not fully, but it's quite possible that GPU power management is turned off (it's very controllable). Not usually needed on a permanently connected device.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.
Working in the Applications Team.
Re: anyone working on a suspend/hibernate driver
On "which button do you press?":
If you're "suspended" (aka sleep, aka suspend-to-RAM, aka low power on state), you're...well, you're in trouble unless you had a USB keyboard connected and USB is still awake.
BUT!
If you're "hibernated" (aka suspend-to-disk, aka power off state), all you have to do is interrupt power to the Pi briefly to wake it back up (just as if you had shut it down with "shutdown -h now"])
If you're "suspended" (aka sleep, aka suspend-to-RAM, aka low power on state), you're...well, you're in trouble unless you had a USB keyboard connected and USB is still awake.
BUT!
If you're "hibernated" (aka suspend-to-disk, aka power off state), all you have to do is interrupt power to the Pi briefly to wake it back up (just as if you had shut it down with "shutdown -h now"])