Is there any way I can dissable the screensaver for certain programs such as zroadmap and kino2? If not for those programs, can I just dissable it completely? I don't really care to see the date amd time float around the screen when I could be looking at something usefull.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Have a look at
[a href=\"http://www.daniel-hertrich.de/zaurus/zps]http://www.daniel-hertrich.de/zaurus/zps[/url]
(search page for "Disable screensaver when on AC power")
You could write a shell script as a wrapper for those applications you don't want the screen saver for, which sets the needed parameter in qpe.conf before the applicatoin is started, then reassign the application icon to that wrapper script.
e.g.
#!/bin/bash
# screensaveroff.sh
# wrapper script for applications which don't want a screensaver
# call it with the applications name to start as the first command line parameter
# e.g.
# screensaveroff.sh zroadmap
sudo cp /home/zaurus/Settings/qpe.conf /home/zaurus/Settings/qpe.conf.ORG
sudo sed -e 's/al_AC_ScreenSaver.*/al_AC_ScreenSaver = 0/g' \
/home/zaurus/Settings/qpe.conf.ORG > /home/zaurus/Settings/qpe.conf
"$1"
The QTopia icon for zroadmap would have to call
screensaveroff.sh zroadmap
instead of zroadmap alone.
What I'm not sure about is if between the sed command and the actual call of the application ($1) a qcop command is needed in order to reload the qpe.conf file so that the change takes effect.
sed must be installed in order to make this script work of course.
daniel