| View previous topic :: View next topic |
| Author |
Message |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Wed Jul 09, 2008 10:53 pm Post subject: Disabling the Idle Timeout. |
|
|
How do I disable the Idle Timeout for the display.
There are two timeouts, one for the display, and one after which the PSP suspends.
scePowerIdleTimerDisable disables both the idle timers, and also when you call scePowerIdleTimerEnable it instantly goes to standby if the idle time has elapsed before that.
scePowerTick also resets the suspend time and the display timer as well.
I want to disable the display timer but leave the suspend timer enabled.
The XMB music player disables only the suspend timer, but the display idle timer is enabled. I cannot find a way to do this either.
If display timer enabled and suspend timer disabled is possible by the music player, then I presume that the opposite is possible as well. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Wed Jul 09, 2008 11:00 pm Post subject: |
|
|
int scePowerIdleTimerEnable(int unknown);
what all sdk docs say is to pass 0.
well, maybe 0 enables the idle timer for both?
have you tired pass 1 or 2? _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Wed Jul 09, 2008 11:01 pm Post subject: |
|
|
| Good idea, let me try. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Wed Jul 09, 2008 11:27 pm Post subject: |
|
|
ok I hope it works :) _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Thu Jul 10, 2008 2:30 am Post subject: |
|
|
| If I remember rightly, 0 is all, 1 is suspend, 6 is display. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Thu Jul 10, 2008 3:20 am Post subject: |
|
|
and what is the 2, 3, 4 and 5? _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Thu Jul 10, 2008 4:36 am Post subject: |
|
|
Nothing for all of them, if I recall correctly.
I've never seen them used either. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Jul 10, 2008 4:39 am Post subject: |
|
|
I tried disabling with all the values.
0 disables all timers.
1 disables suspend timer (the screen will shut off after its timeout but console wont suspend).
Values from 2-6 all functioned like 0. Display & PSP just remained on.
Couldn't get only the display to remain on with the suspend timer active. |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Thu Jul 10, 2008 4:49 am Post subject: |
|
|
| Ahh, I could be thinking about the scePowerTick() parameters, apologies. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Jul 10, 2008 5:31 am Post subject: |
|
|
| Insert_witty_name wrote: | | Ahh, I could be thinking about the scePowerTick() parameters, apologies. |
It works perfectly. Just performing scePowerTick(6) at regular intervals keeps the display on until the suspend timeout suspends the PSP.
Its better to use scePowerTick as well, because the other function has a "queuing" problem like scePowerLock. Any event that occured while disabled would instantly be triggered on enable and cant be stopped easily. |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Mon Jul 14, 2008 10:28 am Post subject: |
|
|
| I've commited some changes to the power library based on discussion in this thread to revision 2408. |
|
| Back to top |
|
 |
|