1

KDE Plasma 5.27.11 on Debian 12 amd64

I need to send some very short signals over USB on workstation's power management sleep and wake up events(not login and log out, they work fine). I have prepared separate bash scripts for those, only had no luck with finding how to bind them. I have root access to the machine so config solutions would work for me. How it can be done?

Amazon Dies In Darkness
10.2k39 gold badges101 silver badges161 bronze badges
asked Nov 1, 2024 at 2:33

1 Answer 1

0

i created script in

/lib/systemd/system-sleep

and gave it executable flag

#!/bin/sh
case "1ドル" in
pre)
 /home/zzz/util/relay_off.sh
 ;;
esac
case "1ドル" in
post)
 /home/zzz/util/relay_on.sh
 ;;
esac

and it is working

answered Nov 2, 2024 at 10:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.