LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-10-2007, 06:36 PM   #16
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70

Yes, it is a hack, but that is as good as it's gonna get until the Xorg developers add proper control functionality. I have not had time to go look on their site to see if there is a proper fix, but I will try. If I find anything I will post back here with what I find. This has not been a high priority for me since I use a screen saver to lock my desktop if I go away and forget to lock it myself, but I do not see any reason for Xorg to have a screen saver hard coded in either (assuming this is the case).
 
Old 07-11-2007, 01:20 AM   #17
hbush
Member
 
Registered: Aug 2003
Location: Iecava, Latvia, EU
Distribution: PCLinuxOS, Mandriva x86-64
Posts: 48

Rep: Reputation: 15
Quote:
Originally Posted by ernie
Yes, it is a hack, but that is as good as it's gonna get until the Xorg developers add proper control functionality.
Right, and thanks for your help and explanations. Hardest thing for me was to start consider that there really might be a problem in X.Org itself, not only with my limited knowledge of Linux

Quote:
Originally Posted by ernie
If I find anything I will post back here with what I find.
OK. Maybe this thing will go away with next release of X.Org.
 
Old 07-11-2007, 02:13 AM   #18
rm_-rf_windows
Member
 
Registered: Jun 2007
Location: Europe
Distribution: Ubuntu
Posts: 292

Original Poster
Rep: Reputation: 27
I think I've an additional clue:

When I run the two commands in the terminal, the screensaver never comes back on (xset -dpms and xset s off). It takes effect immediately, all the time, even several hours later. The command works, that's for sure. When I put the commands in /etc/rc.d/rc.local it doesn't work at all, i.e., the screensaver comes on some 15 minutes after if the computer hasn't been touched in the middle of a video, radio broadcast, etc. ...even immediately after booting.

I had a mount problem on another distro (Fedora), which I tried to resolve in a similar way. I could mount my Windows partition by running a command, but not by modifying the fstab file. So I thought I'd include the mount command in rc.local. Same thing, the mount didn't work! So there must be something about the rc.local file that I'm missing.

Yeah, I like Mandriva and its default features, but that screensaver is a nuisance. Somebody out there must know how to stop it.

Will we ever find a solution?
 
Old 07-11-2007, 03:37 AM   #19
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Quote:
Originally Posted by rm_-rf_windows
I tried this, it should have worked, but it doesn't!

Does anybody know why?
It has no chance of working. The commands you use are written to "speak" to a given X display, the reference of which is found in the DISPLAY environment variable.

This variable is inexistant when the system starts. The solution depends on the X server you use (Xorg/XFree86/...), and the distribution you use, and... many things. The simplest way to address this issue, assuming bash is your login shell (it should be), is to append this to the .bash_profile in your home directory:
Code:
if [ -n "$DISPLAY" ]; then
    xset -dpms
    xset s off
fi
I did not test this, but once I wished I had known this solution; I'll try and see if the above helps.
In case DPMS becomes active by itself after some time, as someone said, it may help to replace the above code with:
Code:
if [ -n "$DISPLAY" ]; then
    while true; do xset -dpms && xset s off || break; done &
fi
However, I suspect that the real answer to the issue lies somewhere in the /etc/X11/xorg.conf file...

Yves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Screensaver Settings - Suggestions to help get it to work jdmcdaniel3 SUSE / openSUSE 3 04-29-2007 02:42 AM
Cannot restore desktop after screensaver starts ryedunn Linux - Newbie 1 02-28-2007 12:56 AM
Two Fluxbox Versions - Root starts newest,User starts oldest fortezza Linux - Software 1 05-21-2006 01:17 AM
sleep/standby/screensaver settings dereko Debian 2 03-07-2005 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration