I have connected a USB serial device (example Arduino) to Rpi and I am able to read incoming data. I am using node-red for this. I would like to use USB serial device activity to wake up my desktop from sleep.
For example We can wake up the desktop from sleep using mouse movements and clicks. I want to do something similar with USB serial device (example Arduino) activity.
How can I do this via a shell script running in the background?