Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
What I'm trying to do is exactly whats stated in the title. I've searched and found lot of information both here and in the forums but nothing I have tried seems to work.
What I'm trying to do is find the commands to turn on and off the screen blanking. I plan on using them in a script that I call to play DVD's so that when I'm using the machine I have the screen blanking and screensaver like a normal desktop but when I pop in a dvd and play it the screen blanking will turn off.
The distro I'm using kubuntu 8.04 with KDE 3.5 but I think this would apply to many KDE based desktops. What I have tried is
* Turning off the screensaver in KDE
* "xset -dpms"
* "xset s off"
What I've research so far these should do it bu alas it has not worked.
Is there something I'm missing? Does anyone have any ideas or is there a better approach than the one I'm taking?
If you use MPlayer you might want to look at its options for disabling screensavers:
Originally Posted by mplayer manpage
Turns off xscreensaver at startup and turns it on again on exit.
Command that is executed every 30 seconds during playback via system() - i.e. using the shell.
NOTE: MPlayer uses this command without any checking, it is your responsibility to ensure it does not cause security problems (e.g. make sure to use full paths if "." is in your path like on Windows).
This can be "misused" to disable screensavers that do not support the proper X API for this. If you think this is too complicated ask the author of the screensaver program to support the proper X APIs for this.
EXAMPLE for xscreensaver: mplayer -heartbeat-cmd "xscreensaver-command -deactivate" file
EXAMPLE for gnome screensaver: mplayer -heartbeat-cmd "gnome-screensaver-command -p" file
xdotool might be good app to have the heartbeat command run, you could set it to hit a key not bound to any functions of mplayer, or to move the mouse 1 pixel to the side(I think, I've not used it for faking mouse input) every 9.5 min (if the cursor's already over the edge it should probably remain unseen).
Distribution: Too bad they don't have a distro called Prozaklinux - I use Mandy ... (Mandriva 2008.1)
Answer is: Configure kPowersave
Originally Posted by Stéphane Ascoët
Oh, excuse me! I've never succeeded doing such settings with Mandriva. This why I don't like this distribution: like m$, they choose for us how thing should go.
k, found the answer.
Have to go to "Configure kPowersave" and
Tick or Check the box next to:
"Enable specific screensaver settings"
Then, Tick or Check next to "Disable screen saver"
Then, Tick or Check next to "Enable specific display power management"
Then, Tick or Check next to "Disable display power management"
Actually xdotool might be a good way to accomplish this all by itself. If you have a loop in your script that has xdotool hit an unbound key every 9.5 mins then the screen will probably never blank.
I had similar trouble disabling blanking (again) on my TV after a recent xorg update. I use a separate Xserver for tvout though, so this probably doesn't apply to Slick666's issue, but for what it's worth, in the ServerLayout section defining my TV's setup, I have these options:
Nothing else I tried would make any difference. I'd tried everything you had, "xset -dpms" "xset s off" "xset s 0 0" and something you haven't (though I don't suspect this applies to your situation), "X -dpms". Starting X (the second Xserver) with -dpms did the trick when this issue popped up for me months ago, but with a recent xorg update I started to get the blanking after 10 mins again. Adding those options to the ServerLayout was the only thing I could find that made any difference. Not really a solution for single displays though.