Disabling the Idle Timeout.

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Disabling the Idle Timeout.

Post by Torch »

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.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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?
Image
Upgrade your PSP
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Good idea, let me try.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

ok I hope it works :)
Image
Upgrade your PSP
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

If I remember rightly, 0 is all, 1 is suspend, 6 is display.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

and what is the 2, 3, 4 and 5?
Image
Upgrade your PSP
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Nothing for all of them, if I recall correctly.

I've never seen them used either.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Ahh, I could be thinking about the scePowerTick() parameters, apologies.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

I've commited some changes to the power library based on discussion in this thread to revision 2408.
Post Reply