LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2005, 01:35 AM   #1
GoogleMe
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
Software to turn off monitor?


I've recently installed FC3, used to have RH9. Many things changed, but one that bugs me the most is the monitor does not turn off now when the computer sits idle.

It turned off with RH9 right out of the box. But not with FC3. The screen just goes blank, but does not turn off. The hardware is fairly old, and only supports APM.

Where should I start to get the same behavior under FC3?

Thanks!
 
Old 03-28-2005, 01:54 AM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
I had the same problem with RHEL 2,3,4, etc. Had to install the nvidia video driver then it would power down the monitor. Not familiar with APM? what is that again?
I don't know why their packaged "nv" driver does not do it anymore.
 
Old 03-28-2005, 10:13 AM   #3
GoogleMe
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
APM = advanced power management, old. ACPI is the new.

I thought those were responsible for things like turning off the monitor, and I do have the right drivers, but no luck.
 
Old 03-28-2005, 08:40 PM   #4
GoogleMe
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
No relevant advice guys?
 
Old 03-28-2005, 09:02 PM   #5
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Well give this a try, compile this little program by just sh'ing it and run the output called ssactive. It is using the dpms feature of X to power down the monitor. For me it only works once I install the drivers.
BTW, what is the make/model/chipset of your vid card?

Code:
//usr/bin/gcc -Wall -O2 -DNDEBUG -lGLU -o ssactive ssactive.c ; strip ssactive ; exit

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/extensions/dpms.h>

int main(int argc, char *argv[]) {
    Display *display;
    display=XOpenDisplay(NULL);
    if (display) {
        if (argc>1 && !strcmp("ss",argv[1])) {
            XActivateScreenSaver(display);
        } else {
            DPMSEnable(display);
            DPMSForceLevel(display,DPMSModeOff);
        }
        sleep(1);
        XCloseDisplay(display);
    }
    return 0;
}
 
Old 03-28-2005, 09:22 PM   #6
GoogleMe
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Hehe. No X on the Linux box.

I have Microsoft Windows for that.
 
Old 03-28-2005, 09:25 PM   #7
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Oops, I misunderstood the problem. Actually I've never seen the monitor power down without X going, when you just have the root console and a login prompt. If it ever did, I was unaware of it.
 
Old 03-28-2005, 09:56 PM   #8
GoogleMe
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
It definitely did it under the RH9 console, with the bare minimum installed too.

I thought setterm could do it, but it doesn't seem to work.

[me@here ~]# apm -v
APM BIOS 1.2 (kernel driver 1.16ac)
AC on-line, battery status high: 100%

[me@here ~]# setterm -powersave on
cannot (un)set powersave mode

 
Old 12-27-2005, 07:43 PM   #9
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Rep: Reputation: 30
Hiya im the same as you, i run a few Gentoo serv's never with X. But i have never had the screen power down, only just go blank. Never really thought of it until i read your thread ive always just turned off the monitors.

My hardware isnt old at all though, P4, LCD etc etc. Did you ever get this working? If so how did you do it because i would be interested to know

Thanks,

Ben.
 
  


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
Tip: how to turn off monitor with a software button ahz LinuxQuestions.org Member Success Stories 1 06-07-2005 07:53 PM
monitor turn off jkmartha Linux - Newbie 1 05-03-2005 01:16 AM
Utility that can turn monitor off 3saul Linux - General 2 08-25-2004 02:09 AM
Turn off laptop monitor xushi Slackware 3 01-01-2004 06:17 AM
XScreensaver will not turn monitor off Panzerfrost Linux - Software 8 12-16-2003 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:10 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