Wake up from StandBy

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
kasikeeper
Posts: 36
Joined: Thu Nov 29, 2007 7:08 pm

Wake up from StandBy

Post by kasikeeper »

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?
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

...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)
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

You're going to burn in HELL!!!!! >:3 Just kidding :P It's okay to share, I guess ^^
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

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 (Image
) and luckily ended few days while I was going though various module docs online.

Usage:

Code: Select all

sceSysconWriteBatAlarm(sceSysconReadClock() + SecondsConvertedtoTicks) = Voila Alarm.
http://forums.qj.net/showpost.php?p=196 ... stcount=15; but I never bothered to implement setting alarm within the plugin itself.
Last edited by KickinAezz on Sun Mar 16, 2008 4:20 am, edited 2 times in total.
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Gizmo
Posts: 14
Joined: Sat Feb 05, 2005 1:54 am

Post by Gizmo »

Alarm functionality is great, thanks to everyone that figured this stuff out.
Art wrote:Don't know if it's paranoia
it is
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

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.
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

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.
Post Reply