Gp2x Energy Saver. New Utility.


Hi Kounch .... I tried to get it to autorun by copying the setlb & the autorun.gpu into the root of my SD card. When I switched on instead of the menu it goes to a black screen.. If I move the stick ot comes to life. If I then leave it for 15 seconds (which is what I set it to) it doesn't sleep. If I then run the app from my EnergySaver folder it shows ON/15 Seconds/20Mhz. If I press start it reboot, screen goes black, I move the stick it comes back on... but again it doesn't sleep.

I used the autorun.gpu from 0.4 & also tried using the autorun.gpu file from the last page in this forum ...

so it looks like it it running ... but doesn't sleep.

If I take it off autorun & just run from the folder it works fine.... I'm using the setlb from 0.5
The latest version of setbl has different parameters, so old autorun.gpu will not work. These are the content of the sample autorun.gpu that will ship with latest version
Code:
#!/bin/sh
# AutoRun script for EnergySaver	  - Script de inicio para EnergySaver
# Copy to root of SD Card or NAND	 - Copiar a la raiz de una SD o de la NAND
# Copy setbl to the same place		- Copiar setbl al mismo lugar
# Activate autorun feature and		- Activar el autoinicio de la consola y
# NAND automount if necessary		 - el montaje de la NAND si hiciera falta

# Edit only this two lines			- Editar estas dos lineas
SPEED=20
TIME=30
EXCEPTIONS="mplayer MusicPlayer g_file_storage"
# Please, don't delete the quotes	 - Por favor, no borre las comillas
# PLEASE, DO NOT EDIT UNDER THIS LINE - NO EDITAR POR DEBAJO DE ESTA LINEA
# ---------------------------------------------------------------------------- #
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
# ---------------------------------------------------------------------------- #
killall setbl

${0%/*}/setbl $SPEED $TIME $EXCEPTIONS &>/dev/null &

cd /usr/gp2x
exec ./gp2xmenu --disable-autorun
Note that there is a new parameter to set the CPU speed.


I just edited the one I had & added the speed in & its now working via the autorun. cool. & Well done !
 
Last edited by a moderator:
I've only just got my gp2x so I haven't had a chance to try anything out yet but looking at the documentation I noticed there are some clock control registers.

They are:

COMCLKENREG - 0xC0000908
VGCLKENREG - 0xC000090A
ASCLKENREG - 0xC00090C

According to the documentation (from what I can make out, it isn't very clear) they allow you to enable or disable the clock input on different parts of the MP2520F's core. This would in effect turn off different parts of the chip and should reduce the power consumption. i.e. VGCLKENREG controls the clock input to various parts of the hardware video decoder, if you are not decoding any video then writing 0x1F to that address would in effect turn of the video decoder and reduce power consumption (in theory).

I've done a google search and I can't find anyone who's tried this before. Have you tried playing around with the above registers and do they work?
I have tried as it is said in this post and found no difference in battery life
 
Last edited by a moderator:
I have tried as it is said in this post and found no difference in battery life

That's a pity. It would of been an easy way to gain a bit of extra battery life.

It probably explains why I couldn't find anything on the net about setting the 3 registers. :)
 
Last edited by a moderator:
Back
Top