PS5 HDMI libcec commands This article provides a guide on using a Raspberry Pi 4 to send HDMI-CEC commands to a PlayStation 5 via the `/dev/cec1` interface. The commands allow users to turn the PS5 on and off, check its power status, and simulate controller inputs like D-pad navigation and button presses. The functionality of certain commands, such as powering on from rest mode, depends on specific PS5 HDMI settings like "Power off Link." PS5 CEC example.sh This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters Note I am using Raspberry pi 4 to send CEC commands /dev/cec1 is pi's second HDMI port '4' is PS5 address that TV assigned, change if you need Turn on PS5 You need to enable "Power off Link" at PS5 HDMI settings to turn on from rest mode cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=power-on-function Turn on PS5 from rest mode When you didn't enable "Power off Link" at PS5 HDMI settings cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=power-toggle-function Put in rest mode You need to enable "Power off Link" at PS5 HDMI settings cec-ctl -d /dev/cec1 --to 4 --standby Query PS5 power status cec-ctl -d /dev/cec1 --to 4 --give-device-power-status Returns: on 0x00 or standby 0x01 X button confirm/select cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=select O button back/cancel cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=back D-Pad Navigation cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=up cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=down cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=left cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=right PS button cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=device-root-menu