How to disable turning off monitor programmatically?
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 452 from 2003/7/26
    From: Wroclaw/Poland
    I see in intuition/screens.h Screen Tag SA_StopBlanker which allows to disable screen blanker on my screen. However screen disappears if user set in System Preferences turning off monitor after a time. Does someone know if I am able to disable turning off monitor on screen of my application (demoscene production)? If the demo is in window mode I don't want disable this function. However on fullscreen it could be good idea (I think so).

    Today, when system is able to disable monitor, screen blankers are a bit useless. :)
  • »12.12.19 - 23:39
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2239 from 2003/2/24
    As last resort, fake some activity.


    Insert a keystroke as early as possible into the input stream.
  • »13.12.19 - 03:38
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2972 from 2003/3/5
    From: Canada
    SA_StopBlanker should disable DPMS too. If it does not, it's a bug. I'll have a look...
  • »13.12.19 - 07:08
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 452 from 2003/7/26
    From: Wroclaw/Poland
    Quote:

    Kronos wrote:
    As last resort, fake some activity.
    Insert a keystroke as early as possible into the input stream.

    It is a solution. If I decided disable blanker in fullscreenmode I will probably use this solution. Thank you for the idea.
  • »14.12.19 - 14:24
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 452 from 2003/7/26
    From: Wroclaw/Poland
    Quote:

    jacadcaps wrote:
    SA_StopBlanker should disable DPMS too. If it does not, it's a bug. I'll have a look...

    It would be great. If it is a bug, I just set it and it will work in future versions of MorphOS. It is not very important feature of demoscene productions. :)

    Generally I don't like if an application disables my system settings. :) However in case of a video-players or demos it could be acceptable.

    BTW.
    I've removed SDL from my code and now I am creating base of engine in native MorphOS API. I have already implemented almost everything except sound (I am still thinking if I should use OpenAL or native AHI API). My demos are simple but they ane full system-friendly and will be the first demos for Amiga-like systems which can be switched between fullscreen and window (scallable) modes during playing demo. :)

    I am very grateful to MOS Team for great SDK, Flow Development Stuio, examples, documentation, comments in includes. I wouldn't achieved it without your work. Thank you!
  • »14.12.19 - 14:45
    Profile Visit Website
  • MorphOS Developer
    Henes
    Posts: 507 from 2003/6/14
    Quote:

    MDW wrote:
    Quote:

    jacadcaps wrote:
    SA_StopBlanker should disable DPMS too. If it does not, it's a bug. I'll have a look...

    It would be great. If it is a bug, I just set it and it will work in future versions of MorphOS. It is not very important feature of demoscene productions. :)

    Generally I don't like if an application disables my system settings. :) However in case of a video-players or demos it could be acceptable.


    As far as I remember, this tag was originally added to let applications such as mplayer disable the screen blanker when playing in fullscreen mode. And re-enable it when in pause. That's the spirit.
    That applies to fullscreen games and demos too.
  • »15.12.19 - 22:42
    Profile Visit Website