How Do I Change Gamma On Boot?


lancelott

Member
Joined
Dec 27, 2005
Messages
110
I'm trying to use autorun.gpu to make the gamma be 0.6. Right now I have:

Code:
#!/bin/sh

/mnt/sd/cpu_speed 1 2 200 0.6
sync

But what happens is that it just shows a black screen. I tried adding the cd, gp2xmenu, etc. but the same thing happens.

Is it possible? What's the proper way to do it if it is?

BTW, my cpu_speed.gpe is just cpu_speed so it doesn't show in the menu. I don't need the GUI.
 
I'd like to know too

(Sorry, moving to the Help Forum)
 
Yes, me too. Can some developer (4th time askin this lol) make a hacked version of the cpu_speed script that only does the gamma, or a gamma adjuster to .6

Ide do it, but I cant compile right now, as my dev enviornment is all fsk'd up.
 
You create an autorun.gpu like so:

Code:
#!/bin/bash
/mnt/sd/cpu_speed 1 2 200 0.6
cd /usr/gp2x
exec ./gp2xmenu

Make sure you have Unix (LF) line endings or your script won't work.
 
nickspoon posted on May 5 2006 at 04:47 PM said:
You create an autorun.gpu like so:

Code:
#!/bin/bash
/mnt/sd/cpu_speed 1 2 200 0.6
cd /usr/gp2x
exec ./gp2xmenu

Make sure you have Unix (LF) line endings or your script won't work.
That doesn't work. All I get is a black screen.
 
Last edited by a moderator:
Try using #/bin/sh instead of #!/bin/bash.

Yes, you do need to remove the exclamation mark, and the /bin/bash bit was just me forgetting how to use Linux.
 
Same result:

Code:
#/bin/sh
/mnt/sd/cpu_speed 1 2 200 0.6
cd /usr/gp2x
exec ./gp2xmenu

... goes to black screen.
 
ste_167 posted on May 5 2006 at 08:47 PM said:
You're missing out the $vt

#/bin/sh
$vt/mnt/sd/cpu_speed 1 2 200 0.6
cd /usr/gp2x
exec ./gp2xmenu

Thanks, but no cigar ... same black screen :(
 
Last edited by a moderator:
hmhmhm ... i just tried it via telnet and all went well... and i don't realy know what you're doing. Do you want to run a script befor every application or do you want to adjust gamma in the boot-process (this is what the topic says)?
 
god_at_hell posted on May 6 2006 at 10:36 AM said:
hmhmhm ... i just tried it via telnet and all went well... and i don't realy know what you're doing. Do you want to run a script befor every application or do you want to adjust gamma in the boot-process (this is what the topic says)?

Before the main gp2x menu loads, during the boot process.
 
Last edited by a moderator:
Hmmmmm... see here: Related Topic

... seems like only this CPU_Speed program has an issue with being launched as "autorun.gpu". Very interesting ...

Also tried this:

Code:
#!/bin/sh

/mnt/sd/cpu_speed 1 2 200 0.6
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

Same black screen.
 
Last edited by a moderator:
Autorun looks like it's designed so people can easily replace the menu, not for running a script once (gp2xmenu looks for autorun files every time it is run, so calling a script then trying to run gp2xmenu is just going to run the script again). To get around this it looks like you should run gp2xmenu --disable-autorun. If you're doing this you should also really pass the boot parameter so gp2xmenu knows to do the nand mount and other stuff it may be set to do at boot.

What all this means is the last line of your script should be 'exec ./gp2xmenu --boot --disable-autorun'
 
:D :D :D JOY :D :D :D

Thank you so much, woogal! You saved my sanity!

This worked perfectly:

Code:
#!/bin/sh

/mnt/sd/cpu_speed 1 2 200 0.6
sync

cd /usr/gp2x/
exec ./gp2xmenu --boot --disable-autorun

Ta Da!!

I was thinking that the line "exec ./gp2xmenu --boot --disable-autorun" would also turn it off in the settings, thus making this script not work after turning off the GP2X and rebooting; lo and behold, it does not! Works like a charm ... you rock woogal!
 
TelcoLou posted on May 7 2006 at 07:36 PM said:
:D :D :D JOY :D :D :D

Thank you so much, woogal! You saved my sanity!

This worked perfectly:

Code:
#!/bin/sh

/mnt/sd/cpu_speed 1 2 200 0.6
sync

cd /usr/gp2x/
exec ./gp2xmenu --boot --disable-autorun

Ta Da!!

I was thinking that the line "exec ./gp2xmenu --boot --disable-autorun" would also turn it off in the settings, thus making this script not work after turning off the GP2X and rebooting; lo and behold, it does not! Works like a charm ... you rock woogal!


Could somebody post the text file on here or a link to download it. Sorry to be a pain, but i have an apple mac, and the textedit only saves as a RTF
 
Last edited by a moderator:
honglong posted on May 7 2006 at 08:32 PM said:
TelcoLou posted on May 7 2006 at 07:36 PM said:
:D :D :D JOY :D :D :D

Thank you so much, woogal! You saved my sanity!

This worked perfectly:

Code:
#!/bin/sh

/mnt/sd/cpu_speed 1 2 200 0.6
sync

cd /usr/gp2x/
exec ./gp2xmenu --boot --disable-autorun

Ta Da!!

I was thinking that the line "exec ./gp2xmenu --boot --disable-autorun" would also turn it off in the settings, thus making this script not work after turning off the GP2X and rebooting; lo and behold, it does not! Works like a charm ... you rock woogal!


Could somebody post the text file on here or a link to download it. Sorry to be a pain, but i have an apple mac, and the textedit only saves as a RTF

Its ok, i got it to work.

This works great with everything, except GnGeo, which is still too brighter. After changing the gamma, althrough everything is darker, gngeo is actually brighter! weird!
 
Last edited by a moderator:
Well I think I got it to work.

It's kind of hard to tell the difference, it should make the colors "richer" right?

Is there any sure fire way to know it worked. I guess I usally did the "tiping" method to play so it is hard to tell. I would say it looks better but then I just might THINK it looks better.
 
mh ... set gamma to 0.1 ... it should be very dark. When this works, than it should work with 0.6 too :)

another thing: befor this thread i didn't know there was a autorun-option ... quit interesting :)

thx woogal for solving the problem
 
Back
Top