Externally Visible Sleep Indicator

On Fedora 39 a simple script can indicate with one of the side leds that the the FW 13 intel has been suspended to RAM.

Install fw-ectool first

For instructions see:
https://copr.fedorainfracloud.org/coprs/bsvh/fw-ectool/

Then, add a simple systemd script in :
usr/lib/systemd/system-sleep/
And name it e.g. leds. Make the script executable.

#!/bin/sh
## location : /usr/lib/systemd/system-sleep/leds
if [ "${1}" == "pre" ]; then
  ectool led right blue

elif [ "${1}" == "post" ]; then
  ectool led right auto
fi

As a result, when the laptop is in a suspended state, the right side led will show blue.

As simple as that!

Kind regards,

Otto

8 Likes