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 

Home button and backlight timeout in user mode

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



Joined: 14 Oct 2005
Posts: 17

PostPosted: Sun Oct 16, 2005 10:17 am    Post subject: Home button and backlight timeout in user mode Reply with quote

Sorry for the weird topic, I tried to keep it short but descriptive... and this seems to be a weird problem.

Say you have an app with a main thread running in kernel mode; eventually if you don't touch anything, the back light will auto shut off (depending on your Power Save settings). You hit a key to come back to the app, all is good.

Say this app has a main "loop" that executes every vertical, part of that loop consists in polling the key data. If you're running in kernel mode, all will be good, the back light will shut off, a key press will bring you back to your app.

However, if your main thread was running in user mode, when you poll the keys, the Home button will be down just before the back light shut off kicks in... so this triggers an exit and the app just quits successfully.

Could anyone shed some light as to why this is happenning? Is there a better way to exit an app with a main thread running in user mode? If I don't poll for the home key every frame, when the exit callback gets invoked and I select yes to quit the game, it stays at the "Please Wait..." screen. Which has been documented on the wiki, but are there workarounds?

Thanks,

benji

edit: I forgot to mention this only seems to happen when the usb module is loaded and active.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Oct 16, 2005 11:40 am    Post subject: Reply with quote

You sometimes get a "home" button down event when the backlight turns off. I noticed this earlier (see log for rev 574 in psp svn repo). But you don't need to pay attention to the home button anyway, so just ignore it. Set a flag in your exit callback and check that instead.
Back to top
View user's profile Send private message
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