Trying to wake machine with code

Hello,

We are using Ignition as an HMI solution on a number of Linux machines. There is logic across all clients for popping up a window specific to that client when something bad happens. Problem we are currently facing is if that machine has gone to sleep then nobody sees the window. So I’ve been looking for code to send a keystroke or mouse movement on the internalFrameActivated event of the window and coming up with nothing so far. Am I missing something obvious?

Thanks,
Steve

If the machine is asleep, you won’t be able to wake it from within client code – you’d need to do some form of wake-on-lan from the gateway. If just the screen is asleep, you can probably write a little external helper that’ll fake the press and release of a control key. See the uinput module docs.

Sigh. Try this instead.

3 Likes

Exactly what I was looking for. Thank you!

Interesting, maybe we don’t need operators after all.

1 Like