Wake up screensaver by running a command on a kiosk mode system?

I’m running Chromium in “kiosk mode” on a Pi3B with touchscreen display. It displays an image of the “last alert” from my security camera system. I have the screensaver activated to blank the screen since there are very few alerts and the display is too bright to be considered a “night light” if on 24/7.

Is there a command to “wake up” the screen saver when a new alert comes in?

Alerts come in via MQTT message containing the image, and is processed and displayed using node-red. Node-red would simply launch a terminal to run the command to wake up the display before showing the new image in the kiosk mode webpage.

When a new alert comes in, simulate mouse move one pixel and screensaver is gone.

xdotool mousemove relative 1 1 && xdotool mousemove relative -- -1 -1

3 Likes

Thanks, but It doesn’t seem to wor. The, command runs and I get no error messages but the screen doesn’t wake up. Does the touch screen use the mouse driver? There is no mouse just the touchscreen LCD and touchscreen. lsmod doesn’t show usbhid which I assume is the mouse driver. I assume raspberrypi_ts is the driver for the touch screen.

The screen wakes up when I do touch it.

I don't have your setup to test, I just gave you an idea.

1 Like

Try this (assuming you are running mate-screensaver):

mate-screensaver-command --deactivate

The man page for mate-screensaver-command describes this option as: "If the screensaver is active then deactivate it (un-blank the screen)."

4 Likes