forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"problem" with display brightness

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Tue Jul 10, 2007 9:38 pm    Post subject: "problem" with display brightness Reply with quote

Hi! :)

I have a little problem with display brightness. :)

Let's say I'm at brightness = 50.
If I change the display brightness with
Code:
sceDisplaySetBrightness(25,0);

The display brightness change, but if I press the brightness key the psp goes to brightness=75, not 50.
The psp acts like I never changed the brightness.
The same thing happen if I let the display turn off for timeout and then press a key: brightness = 50.

So my question is: can I set somewhere the brightness level (not the percentage but the level 1,2,3,4) so that using the brightnmess key acts correctly?

Many thanks. :)
Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Tue Jul 10, 2007 11:35 pm    Post subject: Reply with quote

when you set the brightness yourself you don't set what impose thinks the psp is at but the brightness itself and nothing else.
so when the SCREEN button is pressed it will check aganist his "idea" of brightness and change it accordly.
to fix this you would need to find were it is stored or hook the functions which changes the brightness.
brightness levels are also stored in the registry but i didn't check if they are saved/loaded only when exiting/entering from the current mode (GAME/VSH)
Back to top
View user's profile Send private message Visit poster's website
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Thu Jul 12, 2007 12:43 am    Post subject: Reply with quote

Hi! :)

Many thanks for your reply.
I imagined where the problem was...
Have you any idea of where should I inspect to search for this setting?
Is known where other settings are saved?
Is there some documentation or sample?

Many thanks again :)
Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Fri Jul 13, 2007 4:38 am    Post subject: Reply with quote

sakya wrote:
Hi! :)

Many thanks for your reply.
I imagined where the problem was...
Have you any idea of where should I inspect to search for this setting?
Is known where other settings are saved?
Is there some documentation or sample?

Many thanks again :)
Ciaooo
Sakya

well you could try disassembling impose in order to find were it stores his variables.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group