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
-
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!
-
Iirc, there's a QCOP command for this.
It's used by some of the music/video players.
Si
-
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:
#!/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.