OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: xamindar on June 08, 2006, 04:11:59 pm
-
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.
-
I have cacko lite, so I didn't install the screensaver.
Try uninstalling it, or setting it to disable, or set it to a very long time, or never.
In the battery applet, I have suspend set to 2 hours.
-
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] (http://index.php?act=findpost&pid=130443\")
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
-
Thanks for the script. I'll give it a try. Will it also disable the screensaver if it is on battery power? Most of the time I use zroadmap is when im on the go with no AC.
-
Thanks for the script. I'll give it a try. Will it also disable the screensaver if it is on battery power? Most of the time I use zroadmap is when im on the go with no AC.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130814\"][{POST_SNAPBACK}][/a][/div]
I was not aware that the clock screensaver is active at all when on battery power. Is it? If so, my suggested commands will not disable it. You'd have to ind the corresponding line in qpe.conf which controls the timeout when on battery.
daniel
-
On my Zaurus SL-C760, the following works:
qcop QPE/System 'setScreenSaverMode(int)' 2
name of program to execute
qcop QPE/System 'setScreenSaverMode(int)' 100
The first line disables the screen saver. You then execute the program of interest. The last line then re-enables the screen saver.
-
Thanks for the script. I'll give it a try. Will it also disable the screensaver if it is on battery power? Most of the time I use zroadmap is when im on the go with no AC.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130814\"][{POST_SNAPBACK}][/a][/div]
I was not aware that the clock screensaver is active at all when on battery power. Is it? If so, my suggested commands will not disable it. You'd have to ind the corresponding line in qpe.conf which controls the timeout when on battery.
daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130830\"][{POST_SNAPBACK}][/a][/div]
Certain programs will prevent the Zaurus from turning its self off while on battery. Roadmap and Wellenreiter are two examples. I also have mine set to not turn off if the wifi is connected. In all these cases the screensaver will still come on after a specified amount of time. Maybe it would just be best to disable it completely. I'll look through that config file and see if there are any options. Using scripts for each program that requires it is not desirable but I may have to do that.
Thanks qx773 and daniel3000.
-
By the way. Does anyone know where the screensaver program is? I'm just going to delete it. What's the point of it anyway? Can LCD suffer from burn-in?
-
if it is the stock screensaver, you can edit the screensaver line in qpe.conf. changing it to 0 means it is disabled. The caveat of this is that everytime you change something in the light and power app, you have to re-edit the file or mv a backup file into place.
-
What part do I change to 0? This is what I have at the moment:
[Screensaver]
AC_suspend_list_num = 12
Brightness = 254
Brightness_AC = 255
CoverSuspend = 0
Dim = 1
Interval = 180
Interval_AC_00 = 300
Interval_AC_01 = 600
Interval_AC_02 = 900
Interval_AC_03 = 1800
Interval_AC_04 = 3600
Interval_AC_05 = 7200
Interval_AC_06 = 10800
Interval_AC_07 = 14400
Interval_AC_08 = 21600
Interval_AC_09 = 28800
Interval_AC_10 = 36000
Interval_AC_11 = 43200
Interval_AC_ScreenSaver = 0
Interval_AC_idx = 3
Interval_Dim = 40
NetworkSuspend = 0
blank = 0
[TaskBar]
-
On my Zaurus SL-C760, the following works:
qcop QPE/System 'setScreenSaverMode(int)' 2
name of program to execute
qcop QPE/System 'setScreenSaverMode(int)' 100
The first line disables the screen saver. You then execute the program of interest. The last line then re-enables the screen saver.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130909\"][{POST_SNAPBACK}][/a][/div]
Hey qx773, I tried typing "qcop QPE/System 'setScreenSaverMode(int)' 2" in a console and it spat back a resolution info (640x480). Then I opened up roadmap and let the zaurus sit. The screensaver still came on after about 3 minutes (the amount of time my Zaurus usually turns its self off). So that command didn't work.
Is the screensaver somehow linked to the auto turn off feature in that if the zaurus is not able to turn off then it will just display the screensaver?
The Sharp Music Player is able to run and keep the screensaver from activating. There has got to be a way.
-
I originally used:
qcop QPE/System 'setScreenSaverMode(int)' 2
qcop QPE/System 'setScreenSaverIntervals(int,int,int)' 0 0 0
program to execute
qcop QPE/System 'setScreenSaverMode(int)' 100
qcop QPE/System 'setScreenSaverIntervals(int,int,int)' -1 -1 -1
but the setScreenSaverIntervals seemed to be unnecessary on my C760 with Sharp ROM. Maybe the setScreenSaverIntervals lines will work for you.
-
well that's the one. "Interval_AC_ScreenSaver = 0"
The stock screensaver is not supposed to kick in without AC. Do you have the lucwhatever screensaver installed?
-
well that's the one. "Interval_AC_ScreenSaver = 0"
The stock screensaver is not supposed to kick in without AC. Do you have the lucwhatever screensaver installed?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132832\"][{POST_SNAPBACK}][/a][/div]
Nope, I have not installed any other scrensaver stuff at all sense I flashed. As far as I can remember, the screensaver has always come on for me if my Zaurus is "not allowed" to go to sleep with roadmap. Sense when is it not supposed to kick in? I wish that were true for me.
Sharp music player and kino2 are able to suppress the screensaver. I wonder how they do it.
EDIT: Hey qx773, looks like that extra line worked in suppressing the screensaver. That will do I guess. THANKS!
-
Dang, I just noticed a problem. If I have roadmap open and then open the music player and play songs. Then, if I pause the songs or stop them and close the player my screensaver will come back on. Bummer. I guess there is no guaranteed solution.
Also, after switching to using a script to launch roadmap the icon does not show in the task bar any more. Therefore I can only use <shift>+<home> or <shift>+<menu> to switch back to it. Any ideas? Do I need to make a "dummy" desktop file that containes the original roadmap program launch info?
-
Each application icon in the Qtopia environment is associated with a *.desktop file where you can modify which program or which script gets executed when you tap on the icon. The *.desktop file will be located in:
/home/QtPalmtop/apps/Applications
For example, in my:
/home/QtPalmtop/apps/Applications/keypebble.desktop
file, there is a line which read, "Exec=keypebble", which I changed to, "Exec=keypebble-ns". keypebble-ns is the name of a script which shuts off the suspend and screensaver before keypebble executes and re-enables suspend and the screensaver when keypebble stops executing. You have to be the superuser to edit the *.desktop file:
su
cd /home/QtPalmtop/apps/Applications
ls
vi keypebble.desktop
exit
exit
You can edit the *.desktop file for the musicplayer or any other program that has an icon this way.
-
Yay, played around a bit and it turns out that the "Interval = 180" line controls the screensaver while on batery power. So, setting it to "Interval = 0" disabled the screensaver! Now no need for silly scripts.
-
wooops. It had been so long, I remembered the wrong variable. Sorry.