nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Screensaver?
From: Nils Faerber
Date: Sun, 15 Oct 2000 20:51:41 +0200

Hello!
Just installed microwindows and one of my first nano-X/FLTK apps on the iPaq
and wondered if we should implement a screensaver into nano-X. Currently
when I start nano-X the screen will remain on all the time which is not very
good for the battery ;)
So I hacked up a small screensaver routine into nanox/srvmain.c (the main
select() loop waiting for events). This way I can monitor any input that should
switch the screen back on. But currently the timeout is fixed at 60 seconds. To
make this configurable I would have to implement some nano-X function that an
application can call to modify this value. I can do this but wanted to ask
beforehand if this is the way to go, noone has done this already or any other
comments so that I can save otherwise useless work ;)
Thanks!
CU
   nils faerber

-- 
kernel concepts
Engel & Faerber GbR      Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          D1 : +49-170-2729106
--

nanogui@linuxhacker.org