Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Disabling screensaver and power management in XFCE  (Read 15237 times)

Offline vilde

  • User
  • Posts: 708
[EN] Disabling screensaver and power management in XFCE
« on: 2012/10/29, 00:01:39 »
When looking at a movie with vlc the powersave in xfce switch of the screen every ten minutes. I have not been able to disable this with the tool for handling powersave in xfce. Vlc also have tools for disabling scxreensaver and powersave but this is not working either.

Yesterday devil pointed me to this http://ubuntuforums.org/showthread.php?t=1810262 They have a solution for disabling the powersave in xfce but it does only work with the temporary solution, not with the one they suggest for a permanent solution.

This is working until reboot:
Code: [Select]
xset -dpms
xset s noblank
xset s off  

The suggested two solutions for a permanent switch of is to create a xorg.conf or ad into an existing xorg.conf in /etc/X11 with the following text(s)
Code: [Select]
Section "Monitor"
Option          "DPMS"
EndSection
or
Code: [Select]
Section "ServerLayout"
Option          "BlankTime"     "0"
Option          "StandbyTime"   "0"
Option          "SuspendTime"   "0"
Option          "OffTime"       "0"
EndSection
I am doing this in a fresh installed siduction xfce 64 bit and there is no xorg.conf.

If I create a xorg.conf with either of the text above x will fail to start.

So I need another solution or modification of above solution, anyone? please help?

tuxracer

  • Guest
RE: Disabling screensaver and power management in XFCE
« Reply #1 on: 2012/10/29, 12:36:06 »
You're saying that unchecking 'Monitor power management control' doesn't turn off the screensaver?  

I can't even find the 'Screensaver settings' that the Ubuntu posters are talking about in that thread.

I was asked to help figure out how to turn the screensaver off in Mint LMDE and had the same problem.  So many people don't want their screensavers coming on all the time while watching a movie or some video yet these programs have no design to make it easy to do so.

I think it's rather ridiculous to force the user to go to CLI to manually modify the functioning.

Offline Geier0815

  • User
  • Posts: 588
RE: Disabling screensaver and power management in XFCE
« Reply #2 on: 2012/10/29, 13:34:41 »
In former times I did something similar in opensuse by editing the /etc/X11/xinitrc or so. On debian it should /etc/X11/xinit/xinitrc. Adding the xset-lines to it and give it a try. But no garantie!!! I don't know if the xstart by gdm or kdm involve the startx-command.
Wenn Windows die Lösung ist...
kann ich dann bitte das Problem zurück haben?

Offline vilde

  • User
  • Posts: 708
Disabling screensaver and power management in XFCE
« Reply #3 on: 2012/10/29, 20:55:51 »
Thanks for the try Geier0815 but that didn't work either

Offline Geier0815

  • User
  • Posts: 588
Disabling screensaver and power management in XFCE
« Reply #4 on: 2012/10/30, 09:20:26 »
Next try. /etc/gdm/Init/Default looks like a good place for such configuration.
Wenn Windows die Lösung ist...
kann ich dann bitte das Problem zurück haben?

arno911

  • Guest
Disabling screensaver and power management in XFCE
« Reply #5 on: 2012/10/30, 13:26:37 »
add the manual approach to bash.rc, once logged in it will be applied to the running X session

Offline vilde

  • User
  • Posts: 708
Disabling screensaver and power management in XFCE
« Reply #6 on: 2012/10/31, 00:39:30 »
Quote from: "Geier0815"
Next try. /etc/gdm/Init/Default looks like a good place for such configuration.
siduction xfce uses lightdm, there is no gdm

Quote
add the manual approach to bash.rc, once logged in it will be applied to the running X session
I cant find any bash.rc. I can find in my home map ".bashrc" and /etc/bash.bashrc ???

arno911

  • Guest
Disabling screensaver and power management in XFCE
« Reply #7 on: 2012/10/31, 16:30:43 »
oops, my error, .bashrc is what I meant.
so sloppy :-)

Offline vilde

  • User
  • Posts: 708
Disabling screensaver and power management in XFCE
« Reply #8 on: 2012/10/31, 20:54:27 »
Quote from: "arno911"
oops, my error, .bashrc is what I meant.
so sloppy :-)
I did put that three lines in .bashrc and it didn't work :) Maybe it shall be presented in that file in another way?

arno911

  • Guest
Disabling screensaver and power management in XFCE
« Reply #9 on: 2012/11/01, 11:58:45 »
maybe the .bashrc isn't read? make sure there is a command to source ~/.bashrc in your .bash_profile

Offline vilde

  • User
  • Posts: 708
Disabling screensaver and power management in XFCE
« Reply #10 on: 2012/11/01, 13:04:07 »
Quote from: "arno911"
maybe the .bashrc isn't read? make sure there is a command to source ~/.bashrc in your .bash_profile
sorry, can't find any .bash_profile

arno911

  • Guest
Disabling screensaver and power management in XFCE
« Reply #11 on: 2012/11/03, 10:11:03 »
I use a lot of ancient configuration files from years ago, I have to admit that things may work differently now in a "normal" siduction :-) I still use a .bash_profile .bash_aliases and .bashrc in my users home (and the zsh…) :|
but it should be read on your system as well. :?
take a look at /etc/profile and /etc/bash.bashrc for system-wide configuration.
I wonder why it doesn't work with the xorg.conf or .bashrc :shock:  
How about a little script in autostart?

There must be a way!  :lol:

Offline vilde

  • User
  • Posts: 708
Disabling screensaver and power management in XFCE
« Reply #12 on: 2012/11/04, 23:53:39 »
Quote
I wonder why it doesn't work with the xorg.conf or .bashrc Shocked
As a complete "not knowing anything about this" my thought of why it doesn't work is that when I create a xorg.conf on a system without one, something starts reading that file and expect some more entries in the file to make x work or start.

I do not have so much time to test and try and try all this but I shall do a little more and if it's not working I have to try if it works with kde :( or maybe another distro :( instead.

Thank you very much for your efforts so far arno911

arno911

  • Guest
Disabling screensaver and power management in XFCE
« Reply #13 on: 2012/11/05, 13:07:19 »

Offline vilde

  • User
  • Posts: 708
Disabling screensaver and power management in XFCE
« Reply #14 on: 2012/11/06, 01:03:20 »
Quote from: "arno911"
one last idea (from my side^^):

http://www.debian-administration.org/articles/50
That did it, your final idea was the solution for me, thanks again arno911.

I created a file (shell script) /etc/X11/Xsession.d/startup-local

Code: [Select]
#!/bin/sh

xset -dpms &

xset s noblank &

xset s off &
 
and made it executable with
Code: [Select]
chmod 755 /etc/X11/Xsession.d/startup-local