Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have to get nine 46" LCD monitors (running Windows) to suspend/sleep at 8pm and wake at 8am every morning. It's been a bit of a mess trying to get the commands working, including the privileges. Since I'm an Ubuntu user first and foremost, I'm wondering how easy this would be in Ubuntu/Linux.

I know cron would be able to run my suspend/sleep command at 8pm (what is the suspend/sleep command anyway?), but what about waking the machine up at 8am without using Wake-on-Lan or manual intervention?

share|improve this question
    
Why don't you want to use wake on LAN? –  Stefano Palazzo Jan 10 '11 at 17:40
    
The way you phrase the first sentence suggests that you only want to put the monitor in power save mode, rather than suspend the whole machine, but then your second paragraph is worried about waking up the whole computer. Which is it? –  psusi Jan 10 '11 at 18:16

2 Answers 2

up vote 2 down vote accepted

command to suspend is pm-suspend press pm- and a tab to see other power management commands. I don't think there will be an option to wake the systems by itself as the os itself is not running. You can have one system dedicated to wake the other systems at a particular time. If you don't want to suspend or hibernate but just minimise use of resources, there are ways to spin down hard disk or switch off monitor alone etc. There is a pm-powersave command too.

share|improve this answer

Just for the monitor? Does this solution from systembash.com work for you? Crate a BASH script to use DPMS feature:

#!/bin/bash
# /usr/local/bin/monitorControl.sh
#
export DISPLAY=:0.0

if [ $# -eq 0 ]; then
    echo usage: $(basename $0) "on|off|status"
    exit 1
fi

if [ $1 = "off" ]; then
    echo -en "Turning monitor off..."
    xset dpms force off
    echo -en "done.\nCheck:"
    xset -q|grep "Monitor is"
elif [ $1 = "on" ]; then
    echo -en "Turning monitor on..."
    xset dpms force on
    echo -en "done.\nCheck:"
    xset -q|grep "Monitor is"
elif [ $1 = "status" ]; then
    xset -q|sed -ne 's/^[ ]*Monitor is //p'
else
    echo usage: $(basename $0) "on|off|status"
fi

And then use cron entires to call it:

0 20 0 0 0 /usr/local/bin/monitorControl.sh off
0  8 0 0 0 /usr/local/bin/monitorControl.sh on

Otherwise, if it's not just the monitor, look at /etc/acpi/sleep.sh and /etc/acpi/hibernate.sh .

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.