Author Topic: Dissable Screensaver?  (Read 6191 times)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« 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.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Dissable Screensaver?
« Reply #1 on: June 08, 2006, 11:49:44 pm »
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.
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Dissable Screensaver?
« Reply #2 on: June 09, 2006, 04:12:48 am »
Quote
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.

Code: [Select]
#!/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
Code: [Select]
screensaveroff.sh zroadmapinstead 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
« Last Edit: June 09, 2006, 04:15:30 am by daniel3000 »
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« Reply #3 on: June 12, 2006, 05:33:56 am »
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.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Dissable Screensaver?
« Reply #4 on: June 12, 2006, 09:06:49 am »
Quote
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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Dissable Screensaver?
« Reply #5 on: June 12, 2006, 07:35:41 pm »
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.
« Last Edit: June 12, 2006, 07:36:39 pm by qx773 »

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« Reply #6 on: June 19, 2006, 03:47:05 pm »
Quote
Quote
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.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« Reply #7 on: June 24, 2006, 03:34:35 am »
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?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Dissable Screensaver?
« Reply #8 on: June 24, 2006, 08:55:54 am »
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.
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« Reply #9 on: June 24, 2006, 12:24:49 pm »
What part do I change to 0?  This is what I have at the moment:

Code: [Select]
[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]                
« Last Edit: June 24, 2006, 12:25:38 pm by xamindar »
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« Reply #10 on: June 25, 2006, 06:26:08 pm »
Quote
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.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Dissable Screensaver?
« Reply #11 on: June 25, 2006, 06:39:35 pm »
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.

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Dissable Screensaver?
« Reply #12 on: June 25, 2006, 07:47:40 pm »
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?
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« Reply #13 on: June 26, 2006, 04:06:01 am »
Quote
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!
« Last Edit: June 26, 2006, 04:18:01 am by xamindar »
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Dissable Screensaver?
« Reply #14 on: June 28, 2006, 04:30:31 pm »
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?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)