I am using raspberry pi 5. In which my service is running and it is doing some task for sometime.After completion of task i want raspberry pi to go in sleep mode and consume low power.Can i do it with programmatically or any other way is there?

  • 1
    The Pi does not have a sleep mode.
    – Milliways
    Mar 18 at 7:01

1 Answer 1


There is no sleep mode available on the RPi5 (or any other RPi) as there is no hardware to support it.

The best you can do with the RPi5 is to press the "soft power" button. This will execute a safe shutdown, and put the RPi5 into a lower (not zero!) power consumption state. Another press will bring the RPi5 back to "life".

There are also some EEPROM settings you can make that will reduce the RPi5 power consumption to near zero - but only when it is in the shutdown mode.

There are methods by which you can programmatically control the RPi5 to turn it ON or OFF, but these require additional hardware (ex 1; ex 2). If you're interested in something like that, I'd suggest you post another question as this one isn't specific enough to warrant expending any time on it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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