Re: Prevent screen from going to sleep



> > I get your point. But the  automatism don't always work. What if
> > I'm working on the  shell and watch the  output of a program.  I
> > have to  press a button  from  time to  time to keep  my  screen
> > alive. It would be  so  easy  to  simply  turn  off  the  scrren
> >  blanking   for  the  time  the  program  is   operating  and  I
> >  think  that's exactly  what “sleep-display-battery|ac” was made
> > for. Correct me if I'm wrong.
>
> we have two wildly different definitions of the word "easy": going
> into the  system settings, finding  the right panel,  toggling the
> right option. then, obviously, doing the reverse when it's time to
> disable it - *if* I remember to do that.

No, no,  no! I installed  a new menu  item “Power management”  in my
“right-click-desktop-menu” with  two new entries “Screen  always on”
and “Screen to sleep when idle” which execute

# Screen to sleep when idle
gsettings set \
	org.gnome.settings-daemon.plugins.power sleep-display-battery 600 &&
gsettings set \
	org.gnome.settings-daemon.plugins.power sleep-display-ac 600

# Screen always on
gsettings set \
	org.gnome.settings-daemon.plugins.power sleep-display-battery 0 &&
gsettings set \
	org.gnome.settings-daemon.plugins.power sleep-display-ac 0

But  this  fails.  When  I  get  this  to  work,  I  will  create  a
dedicated desktop that  executes these commands when  the desktop is
displayed and switches back to display sleep when another desktop is
displayed.  That way  I don't  need  an applet  or to  click on  any
button, I  simply move  my application  (vlc, terminal  window,…) to
that desktop. That's my understanding of “easy”.

It seems to be a bug in Gnome:

https://bugzilla.gnome.org/show_bug.cgi?id=668039

Marco




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]