For example, if a kiosk
is presenting a library catalog, it should return to the library home page after a few
minutes of idle time.
Although there are many ways to detect kiosk inactivity, xscreensaver (Section 6.13)
already contains the required logic and can be easily put to use.
xscreensaver uses various graphics hacks to present screensaver effects??”whether
bouncing cows, fractals, or floating text. You can add, as an additional hack, a script
that simply resets your kiosk application and deactivates the screensaver, or you can
create a script that resets your application and then executes an existing graphics
hack.
To simply reset your application and the disable the screensaver, create a script like
this:
#!/bin/bash
#
# kiosk-reset :: xscreensaver 'hack' to reset the kiosk
# Reset the kiosk application (Firefox browser in this case)
firefox -remote 'openURL(http://yellow/)' &
# Deactivate the screensaver to return to normal display mode
/usr/bin/xscreensaver-command -deactivate
The location of the xscreensaver command varies between operating
systems/distributions.
Name this script kiosk-reset, add execute permission, and save it in /usr/libexec/
xscreensaver (or whatever location is used by your version of xscreensaver).
Pages:
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349