Page 1 of 1

Disable screenblankers

Posted: Mon Feb 13, 2012 11:20 am
by AmiDog
Is there some kind of "universal" way of preventing screenblankers from starting? Sending some kind of "ping" through the input system every now and then? It need to work on OS3 as well. Any suggestions?

Re: Disable screenblankers

Posted: Mon Feb 13, 2012 11:23 am
by cha05e90
If you register your application to the system via application.library you can disable screen blanking - this is often referred as the "game mode".

Re: Disable screenblankers

Posted: Tue Feb 14, 2012 12:27 pm
by BillEaves
AmiDog wrote:Is there some kind of "universal" way of preventing screenblankers from starting? Sending some kind of "ping" through the input system every now and then? It need to work on OS3 as well. Any suggestions?
There is probably no way on OS3 but that is obsolete these days anyway.

With OS4 you can use:

SetApplicationAttrs(data->appID,APPATTR_AllowsBlanker,FALSE);
SetApplicationAttrs(data->appID,APPATTR_AllowsBlanker,TRUE);

to prevent a blanker interfering with your app.


You need to Regiseter your Appilcation - and can also set the attribute not to use the blanker here as well.

if (!(data->appID = RegisterApplication(data->appName,REGAPP_URLIdentifier, data->URLID,
REGAPP_AppIconInfo,(ULONG) data->aii,
REGAPP_AllowsBlanker, FALSE,
TAG_DONE)))


See the Autodocs for application.doc for more details.

Re: Disable screenblankers

Posted: Wed Feb 29, 2012 3:11 pm
by samo79
Yeah this problem is a bit annoying, i can think about FPSE when each time i play somethings i need to move my mouse from time to time to prevent the arrive of the blankers ;)