Restart service (pipewire) on resume from suspend

Running Qtile, what is the best way to restart the pipewire service on resume from suspend?

Will have to check if this also affects plasma tonight :smiley: (rarely have the sound on, so never notice!).

Not sure if it is the best way but a restart service might work. Something like:

pipewire_restart.service

[Unit]
Description=Restart Pipewire after resume
After=suspend.target

[Service]
Type=simple
ExecStart=/usr/bin/systemctl --user restart pipewire.service

[Install]
WantedBy=suspend.target

in /etc/systemd/system

1 Like

Will give it a go when I get home.

1 Like

Out of curiosity, did you find at last a solution to this issue?

You can also just kill pipewire as user. It will restart automatically.

1 Like

Haven’t had chance, a lot going on at the minute :frowning: