OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: mbaush on May 04, 2006, 11:17:49 am

Title: Bash Script To Disable Suspend
Post by: mbaush on May 04, 2006, 11:17:49 am
Anyone knows how I could temporarily disable the auto-suspend using a bash script and re-activate it once an app is done ?

I tried using "sed" to modify the qpe.conf, but it seems like the changes were ignored.

Thanks!
Title: Bash Script To Disable Suspend
Post by: lardman on May 04, 2006, 12:39:30 pm
Iirc, there's a QCOP command for this.

It's used by some of the music/video players.


Si
Title: Bash Script To Disable Suspend
Post by: chrget on May 05, 2006, 03:55:03 am
Quote
Anyone knows how I could temporarily disable the auto-suspend using a bash script and re-activate it once an app is done ?[div align=\"right\"][a href=\"index.php?act=findpost&pid=125725\"][{POST_SNAPBACK}][/a][/div]
This works for me:

Code: [Select]
#!/bin/sh

case "$1" in
        off)
                qcop QPE/System 'setScreenSaverIntervals(int,int,int)' 0 0 0
               ;;

        on)
                qcop QPE/System 'setScreenSaverIntervals(int,int,int)' -1 -1 -1
               ;;

esac

exit 0
Regards,
Chris.