Hi Guys,
I'm hoping to catch a flick of the standby (suspend) action
to set a variable in the instant before the PSP actualy suspends,
so that whn an app wakes up, it knows that it was woken from suspend.
is it possible to read the switch state without any other action?
I know I'm supposed to be able to take over suspend and standby functions,
but this has introduced other problems in another app, which caused me to
just lock the power switch completely.
Cheers, Art.
Standby switch detection.
Standby switch detection.
If not actually, then potentially.
-
- Posts: 110
- Joined: Tue Feb 27, 2007 9:43 pm
- Contact:
0xf775bc34 sceSysconGetWakeUpFactor
Code: Select all
int val;
sceSysconGetWakeUpFactor(&val);
if (val & 0x40)
{
// is from coldboot
}
else if (val & 0x80)
{
// is waking from sleep mode
}
So you found the name. Cool, that's the func I was using in the timemachine ipl to distinguish sleep mode ipl boot from normal :PSilverSpring wrote:0xf775bc34 sceSysconGetWakeUpFactor
Code: Select all
int val; sceSysconGetWakeUpFactor(&val); if (val & 0x40) { // is from coldboot } else if (val & 0x80) { // is waking from sleep mode }
-
- Posts: 376
- Joined: Wed May 10, 2006 11:31 pm