Systemd hooks for Atomic spins?

I am trying to set up a systemd “hook” (not sure if this is the right terminology) to workaround an issue with the 6.11 and my setup. Basically Bluetooth being enabled breaks suspend.

So on OpenSUSE I wrote a script to disable Bluetooth before suspend and put it under /usr/lib/systemd/system-sleep/bluetooth-toggle.sh and it worked well.

I’ve tried to setup something similar on Silverblue (Bazzite technically) using /etc/systemd/system-sleep/bluetooth-toogle.sh, but it isn’t executing.

Is it possible to setup a simple hook like this in an atomic desktop or do I need another method?

1 Like

Interesting. Do you know that this is standars behavior? /system-sleeplooks like a custom directory

From systemd-sleep(8) — Arch manual pages, it looks like systemd will not look into the /etc folder here. You can create a small RPM package with fpm with your script in it and layer it.