OESF Portables Forum

General Forums => General Discussion => Topic started by: qx773 on August 28, 2004, 11:29:14 pm

Title: Disabling Screen Saver and Suspend
Post by: qx773 on August 28, 2004, 11:29:14 pm
Keywords: disable disabling screen saver screensaver suspend suspending Zaurus

I found the following web page through a google.com search:

http://lists.trolltech.com/qt-embedded-int...3/msg00015.html (http://lists.trolltech.com/qt-embedded-interest/2004-03/msg00015.html)

It gives a hint as to how to disable both the suspend and screen saver features of the Zaurus.  I am using the Sharp ROM on my Zaurus SL-C760.  Other people have indicated how to disable the suspend feature in a shell script, but I did not find direct information on how to disable the screen saver.  I have created the following script for disabling the suspend and screen saver feature for keypebble in /usr/local/bin/keypebble-ns:

Code: [Select]
qcop QPE/System 'setScreenSaverMode(int)' 2
qcop QPE/System 'setScreenSaverIntervals(int,int,int)' 0 0 0
keypebble
qcop QPE/System 'setScreenSaverMode(int)' 100
qcop QPE/System 'setScreenSaverIntervals(int,int,int)' -1 -1 -1

You have to be the root user in order to place this script in the /usr/local/bin directory.  This directory must also be listed in your PATH environment variable.  You must make the script executable with a sequence of commands like:

su root
cd /usr/local/bin
vi keypebble-ns
chmod 755 keypebble-ns


You also have to be the root user to modify the

/home/QtPalmtop/apps/Application/keypebble.desktop

file so that "keypebble" is replaced with "keypebble-ns" so that the "keypebble-ns" script runs instead of the "keypebble" program when you click on the icon to start keypebble.

The ability to disable both the suspend feature and screen saver of the Zaurus is important if you are going to use the computer to view a GPS navigation display on battery power.  If this method of disabling the screen saver works for a lot of you, then I recommend that this information be added to the Zaurus FAQ document.
Title: Disabling Screen Saver and Suspend
Post by: ev1l on August 31, 2004, 08:35:47 am
I'll try it out tonight on a Sharp-romed C-860 and report back.
Title: Disabling Screen Saver and Suspend
Post by: tumnus on August 31, 2004, 10:05:16 am
Excellent. I knew about the suspend disabling command, but hadn't seen the screensaver disabler.

That will be really useful in other apps too, like media players and ebook readers. I don't see the point in a screensaver on a PDA for most people. I'm definitely going to see if I can turn it off permanently.

Thanks