i was pretty sure it had a few details of how to use one of the perl scripts to disable/enable a monitor from the commandline.
now i can't find it.
anyone know?
it doesn't look like zmcontrol.pl will do it.
basically i want to run the monitor attached to a computer when it's idle, and not when it's not idle.
i can use xscreensaver to do it:
Code: Select all
#!/usr/bin/perl
my $blanked = 0;
open (IN, "xscreensaver-command -watch |");
while (<IN>) {
if (m/^(BLANK|LOCK)/) {
if (!$blanked) {
zoneminder <monitor> on;
$blanked = 1;
}
} elsif (m/^UNBLANK/) {
zoneminder <monitor> off;
$blanked = 0;
}
}
thanks!