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 

Wake up from StandBy

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



Joined: 29 Nov 2007
Posts: 36

PostPosted: Fri Mar 14, 2008 1:47 pm    Post subject: Wake up from StandBy Reply with quote

How do i wake the PSP up from StandBy mode, e.g. from a callback. I know how to switch to standby mode and how to detect the current power mode. But what function to use for waking up?
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Fri Mar 14, 2008 2:06 pm    Post subject: Reply with quote

The PSP isn't running your program in suspend or standby,
it's only remembering the contents of RAM in suspend.
The best you can do is set an alarm to wake from suspend and resume your program.
You'll need to ask Adrahil about that.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Fri Mar 14, 2008 8:48 pm    Post subject: Reply with quote

Quote:
...set an alarm to wake from suspend and resume your program...

Is not TimeBaby doing this?
Oh, Art...i thought you smater :))))))))))))) (obviously just kidding)
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Fri Mar 14, 2008 10:26 pm    Post subject: Reply with quote

Coming to think of it, it might have been a mistake to release full source.
That part isn't mine, so hopefully it was ok to share.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sun Mar 16, 2008 1:27 am    Post subject: Reply with quote

You're going to burn in HELL!!!!! >:3 Just kidding :P It's okay to share, I guess ^^
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sun Mar 16, 2008 3:28 am    Post subject: Reply with quote

Thanks go to PRX lib doc and whoever found out this NID.

The same can be achieved using sceSyscon_driver and works for 3.xx kernel / on slim also.

Curiosity began when my request was TOTALLY ignored by adrahil few months ago (
) and luckily ended few days while I was going though various module docs online.

Usage:
Code:

sceSysconWriteBatAlarm(sceSysconReadClock() + SecondsConvertedtoTicks) = Voila Alarm.

http://forums.qj.net/showpost.php?p=1963410&postcount=15; but I never bothered to implement setting alarm within the plugin itself.
_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.


Last edited by KickinAezz on Sun Mar 16, 2008 4:20 am; edited 2 times in total
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Mar 16, 2008 4:15 am    Post subject: Reply with quote

I understand some reasons not to share it, ie. PSP would make a nice little thing that goes bang.
Don't know if it's paranoia, but it's much better than the mobile phones they're using.
I've taken it down, and will replace it with one without the lib.
It won't hurt to make 'em ask you for it.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Gizmo



Joined: 05 Feb 2005
Posts: 14

PostPosted: Sun Mar 16, 2008 11:13 am    Post subject: Reply with quote

Alarm functionality is great, thanks to everyone that figured this stuff out.

Art wrote:
Don't know if it's paranoia

it is
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sun Mar 16, 2008 8:41 pm    Post subject: Reply with quote

Quote:
Curiosity began when my request was TOTALLY ignored by adrahil few months ago (

Uhm... I didn't ignore your request, I was going to give you code but I completely forgot ^^'

You can check Time Baby source code, there is the way alarm is handled :) The way it's done in it is a little more flexible, since I use the sceRtc alarm functionality when there is.
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sun Mar 16, 2008 11:00 pm    Post subject: Reply with quote

adrahil wrote:

Uhm... I didn't ignore your request, I was going to give you code but I completely forgot ^^'

You can check Time Baby source code, there is the way alarm is handled :) The way it's done in it is a little more flexible, since I use the sceRtc alarm functionality when there is.

I thought of that possibility too (that u forgot) but other thought overweighed it :D
-
I might release a public lib; they can still request you for R.T.C. version of implementation :)
_________________
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
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