Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Screensaver to prevent unwanted input
#4
It sounds like you haven't actually test this to confirm that the first touch after a screen blank is ignored.

In any case below is the code that sets up and launches Local Display. Maybe there is some sort of X command or option to "ignore first touch/click after screen blank". If not then there is prolly no way to do it.

Code:
#!/bin/bash
#
# moOde audio player (C) 2014 Tim Curtis
# http://moodeaudio.org
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

# Turn off display power management
xset -dpms

# Screensaver timeout in secs or 'off' for no timeout
xset s 600

# Capture screen size
SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $2","$3 }')"

# Clear browser cache
$(/var/www/util/sysutil.sh clearbrcache)

# Launch chromium browser
chromium-browser --app="http://localhost/" \
--window-size="$SCREENSIZE" \
--window-position="0,0" \
--enable-features="OverlayScrollbar" \
--no-first-run \
--disable-infobars \
--disable-session-crashed-bubble \
--kiosk
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Screensaver to prevent unwanted input - by Ale2.0 - 03-07-2024, 04:32 PM
RE: Screensaver to prevent unwanted input - by Tim Curtis - 03-07-2024, 07:28 PM

Forum Jump: