Continuation of the discussion of Enable screensaver/blank screen for RPi touchscreen:
Is there a solution to prevent the “wake-touch” after xset dpms 10 10 10
or xset s 10
to get recognized as click input?
Continuation of the discussion of Enable screensaver/blank screen for RPi touchscreen:
Is there a solution to prevent the “wake-touch” after xset dpms 10 10 10
or xset s 10
to get recognized as click input?
Ok, I managed it like described here: xorg - Ignoring first click event on dpms or screen wakeup - Unix & Linux Stack Exchange
After git clone
ing
GitHub - zpfvo/xssstart: xssstart — run a command when X screen saver activates and
GitHub - zpfvo/clicklock: lockscreen for touch kiosk devices,
in order to install both after clicklock
’s readme, I had to
apt install libxss-dev dh-autoreconf
before. Then I made a unit file /etc/systemd/system/clicklock.service
:
[Unit]
Description=clicklock
PartOf=graphical.target
[Service]
Environment=DISPLAY=:0
ExecStart=xssstart clicklock
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=default.target
Of course, systemctl enable clicklock && systemctl start clicklock
. Works like a charm.