Author Topic: screensaver  (Read 556 times)

Daimon

  • Newbie
  • *
  • Posts: 8
    • View Profile
screensaver
« on: December 02, 2016, 01:25:56 PM »
Does somebody know a methode to disable the screensaver with a command/function from the layout.nut script?
or is it possible to block the transition to the screensaver?

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 404
    • View Profile
Re: screensaver
« Reply #1 on: December 02, 2016, 02:43:34 PM »
I don't think there is a way to do it directly, but perhaps you could catch the FromTo.ScreenSaver transition and maybe trigger something to stop it?

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 356
    • View Profile
Re: screensaver
« Reply #2 on: December 02, 2016, 07:05:09 PM »
Setting the screensaver timeout to 0 will disable/block the transitioning to the screensaver.

Config->Screen Saver->Screen Saver Timeout

Daimon

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: screensaver
« Reply #3 on: December 03, 2016, 01:53:20 AM »
Thank you for the quick response.
@Liquid8d: Yes , I can catch the FromTo.ScreenSaver, but how to block it?
@Raygun: I preffer to disable the screensaver only for some displays not for all, so need a script to temporary disable the screensaver.

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 404
    • View Profile
Re: screensaver
« Reply #4 on: December 03, 2016, 08:35:00 AM »
I'm not sure what things would "block" it, but perhaps send a signal to do nothing, maybe set display to the current display? Basically try to find something that does nothing, but could prevent it from launching the screensaver.

keilmillerjr

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
Re: screensaver
« Reply #5 on: December 03, 2016, 10:05:34 AM »
If you create your own screen saver, you have so much more control. That's what I did.

Daimon

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: screensaver
« Reply #6 on: December 04, 2016, 10:55:41 AM »
OK, will do some trail and error, see what it brings.
Thank you, for your suggestions.

Josepzin

  • Jr. Member
  • **
  • Posts: 10
  • Habitacus!
    • View Profile
    • Blog
Re: screensaver
« Reply #7 on: September 13, 2017, 02:44:08 PM »
I'm not sure what things would "block" it, but perhaps send a signal to do nothing, maybe set display to the current display? Basically try to find something that does nothing, but could prevent it from launching the screensaver.

What i can do??

This code is for identify the event:

Code: [Select]
fe.add_transition_callback( "transition" );
function transition( ttype, var, transition_time )
{
local redraw_needed = false;
if( ttype == Transition.EndLayout && var == FromTo.ScreenSaver )
{
::print( "\n\nSCREENSAVERRRR\n\n" );
//return true;
}
   
   return false;
}

But a do know what i can do for prevent screensaver launch :S

Daimon

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: screensaver
« Reply #8 on: September 15, 2017, 12:04:56 PM »
Thank, you.