Disabling screensaver and power management in XFCE

Started by vilde, 2012/10/29, 00:01:39

Previous topic - Next topic

vilde

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: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)Section "Monitor"
Option          "DPMS"
EndSection
or
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

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.

Geier0815

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?

vilde

Thanks for the try Geier0815 but that didn't work either

Geier0815

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

add the manual approach to bash.rc, once logged in it will be applied to the running X session

vilde

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

Quoteadd 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

oops, my error, .bashrc is what I meant.
so sloppy :-)

vilde

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

maybe the .bashrc isn't read? make sure there is a command to source ~/.bashrc in your .bash_profile

vilde

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

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:

vilde

QuoteI 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


vilde

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

#!/bin/sh

xset -dpms &

xset s noblank &

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