| View previous topic :: View next topic |
| Author |
Message |
kasikeeper
Joined: 29 Nov 2007 Posts: 36
|
Posted: Fri Mar 14, 2008 1:47 pm Post subject: Wake up from StandBy |
|
|
| 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 |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Fri Mar 14, 2008 2:06 pm Post subject: |
|
|
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 |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Fri Mar 14, 2008 8:48 pm Post subject: |
|
|
| 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 |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Fri Mar 14, 2008 10:26 pm Post subject: |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Sun Mar 16, 2008 1:27 am Post subject: |
|
|
| You're going to burn in HELL!!!!! >:3 Just kidding :P It's okay to share, I guess ^^ |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Sun Mar 16, 2008 3:28 am Post subject: |
|
|
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 |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Sun Mar 16, 2008 4:15 am Post subject: |
|
|
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 |
|
 |
Gizmo
Joined: 05 Feb 2005 Posts: 14
|
Posted: Sun Mar 16, 2008 11:13 am Post subject: |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Sun Mar 16, 2008 8:41 pm Post subject: |
|
|
| 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 |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Sun Mar 16, 2008 11:00 pm Post subject: |
|
|
| 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 |
|
 |
|