KeepAwake

A PS5 and PS4 payload that stops the console from going into rest mode while it runs.

Every 10 seconds it calls sceSystemServicePowerTick(), which resets the idle timer for auto rest mode.

Usage

Download the payloads from the Releases page.

Console File Send to
PS5 keepawake_ps5_v<version>.elf ELF loader, port 9021
PS4 keepawake_ps4_v<version>.bin GoldHEN BinLoader, port 9090
  • Start: send the payload. The toast shows the control page address, for example "Keep Awake v enabled / Control it at http://192.168.1.50:9031".
  • Turn off and on: use the control page. Turning it off lets the console go into rest mode, but the payload keeps running, so you can turn it back on from the page without sending the payload again.
  • Close: use "Close Keep Awake" on the page (tap twice to confirm), or send the payload again. This ends the payload, so it needs sending again to start.

Only one copy runs at a time. It uses TCP port 9031 to know whether it's already running.

Control page

While it's running, open http://<console-ip>:9031 in a browser. The page shows:

  • whether Keep Awake is on or off, and for how long,
  • which console it's on,
  • a button to turn it on or off, and a link to close it,
  • a QR code for the page. Open the page on a computer (or the console's browser) and scan the code with your phone's camera to control Keep Awake from your phone.

The page also has a small HTTP API:

Request Does
GET /status Returns JSON: version, console, active, uptime and since (seconds since start and since it was last turned on or off), interval, ip, port
POST /on Turns Keep Awake on, and returns the status
POST /off Turns Keep Awake off without closing it, and returns the status
POST /quit Closes the payload

For example: curl -X POST http://<console-ip>:9031/off, or make quit-ps5 PS5_HOST=<ps5-ip>.

Building

The Makefile expects the SDKs next to this folder (../ps5-payload-sdk and ../ps4-payload-sdk). Set PS5_PAYLOAD_SDK or PS4SDK to use them from somewhere else.

make                              # build both
make ps5                          # or just one
make ps4
make test-ps5 PS5_HOST=<ps5-ip>   # build and send
make test-ps4 PS4_HOST=<ps4-ip>

Both builds need LLVM (clang, ld.lld, llvm-objcopy). The Makefile uses Homebrew's LLVM automatically when it's installed. Otherwise, set LLVM_CONFIG to your llvm-config.

The version is set by VERSION in the Makefile. It goes into the filenames, where Payload Manager reads it, the toasts, and the control page.

Working on the control page

The page is src/index.html. The build embeds it into both payloads with xxd. To try it without a console, run the PS5 code on your computer with the console calls stubbed out:

make host && ./build/keepawake_host

Then open http://localhost:9031.

Releasing

GitHub Actions builds both payloads on every push to main. To publish a release:

  1. Bump VERSION in the Makefile and commit it to main.
  2. Tag the commit and push the tag: git tag v1.1.1 && git push origin v1.1.1.

The workflow builds the payloads and creates the GitHub Release with them attached. It fails if the tag doesn't match VERSION.

Source

v1.5.0
Latest
2026-10-10 00:00:37 +02:00
Languages
C 48.5%
HTML 47.6%
Makefile 3.9%