Clive McCarthy
June 15th, 2008, 04:31 PM
I want to turn the display monitor off, from within a C program. Clearly the OS can sends control signals via the graphics card to put the monitor in standby mode via Display Power Management Signaling (DPMS). I guess there is a system call to do this? Is there a console command to do this?
Standby: Back-light off. Not hibernate where the state of the machine is saved to disk. I want my program to just power down the monitor to save power and, most importantly, extend the monitor's life. An LCD display is good for three years running 24/7 but I want my application to run just from 7:00am to 11:00pm every day. If can save 8 hours in 24 that increases the life by 18 months.
When 7:00am comes around I want my program to wake the monitor up. Eight hours sleep is all any monitor really needs.
It looks like "xset dpms force standby" and "xset dpms force on" may do the trick if called via a C system(""); function.
Standby: Back-light off. Not hibernate where the state of the machine is saved to disk. I want my program to just power down the monitor to save power and, most importantly, extend the monitor's life. An LCD display is good for three years running 24/7 but I want my application to run just from 7:00am to 11:00pm every day. If can save 8 hours in 24 that increases the life by 18 months.
When 7:00am comes around I want my program to wake the monitor up. Eight hours sleep is all any monitor really needs.
It looks like "xset dpms force standby" and "xset dpms force on" may do the trick if called via a C system(""); function.