forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disabling the Idle Timeout.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Wed Jul 09, 2008 10:53 pm    Post subject: Disabling the Idle Timeout. Reply with quote

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
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Wed Jul 09, 2008 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Wed Jul 09, 2008 11:01 pm    Post subject: Reply with quote

Good idea, let me try.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Wed Jul 09, 2008 11:27 pm    Post subject: Reply with quote

ok I hope it works :)
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Thu Jul 10, 2008 2:30 am    Post subject: Reply with quote

If I remember rightly, 0 is all, 1 is suspend, 6 is display.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Thu Jul 10, 2008 3:20 am    Post subject: Reply with quote

and what is the 2, 3, 4 and 5?
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Thu Jul 10, 2008 4:36 am    Post subject: Reply with quote

Nothing for all of them, if I recall correctly.

I've never seen them used either.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Jul 10, 2008 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Thu Jul 10, 2008 4:49 am    Post subject: Reply with quote

Ahh, I could be thinking about the scePowerTick() parameters, apologies.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Jul 10, 2008 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Jul 14, 2008 10:28 am    Post subject: Reply with quote

I've commited some changes to the power library based on discussion in this thread to revision 2408.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group