Skip to content

Instantly share code, notes, and snippets.

@mustafaturan
Last active July 12, 2023 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafaturan/5f14539f4e80899b8458e928248436a8 to your computer and use it in GitHub Desktop.
Save mustafaturan/5f14539f4e80899b8458e928248436a8 to your computer and use it in GitHub Desktop.
Prevent raspberry pi 4b to sleep
  1. Set screen blanking: sudo raspi-config nonint do_blanking 0
  2. Set lingering: sudo loginctl enable-linger $(whoami)
  3. If above two does not work sudo setterm -powerdown 0 and sudo setterm -powersave off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment