Bug#512614: xset dpms rejects reasonable values as illegal
Package: x11-xserver-utils
Version: 7.3+5
SUMMARY:
xset blanking delays occur in series not parallel
xset dpms 30 60 90 means a total of 180 sec before monitor off
thus xset dpms 90 60 30 should also be legal -- but it is not
Hi!
$ xset dpms <seconds> <seconds> <seconds>
sets the delay before X turns your monitor to standby mode, to
suspend mode, and then off.
Pretty simple. Seems to work fine too. Sample output:
$ xset dpms 30 60 90
$ while true; do echo "`date +%T` `xset -q | grep Monitor`";
sleep 10; done
00:59:01 Monitor is On
00:59:11 Monitor is On
00:59:21 Monitor is On
00:59:31 Monitor is in Standby
00:59:41 Monitor is in Standby
00:59:51 Monitor is in Standby
01:00:01 Monitor is in Standby
01:00:11 Monitor is in Standby
01:00:21 Monitor is in Standby
01:00:31 Monitor is in Suspend
01:00:41 Monitor is in Suspend
01:00:51 Monitor is in Suspend
01:01:01 Monitor is in Suspend
01:01:11 Monitor is in Suspend
01:01:21 Monitor is in Suspend
01:01:31 Monitor is in Suspend
01:01:41 Monitor is in Suspend
01:01:51 Monitor is in Suspend
01:02:01 Monitor is Off
01:02:11 Monitor is Off
01:02:21 Monitor is Off
01:02:31 Monitor is On
^C
$
Note that it took exactly 30 seconds to reach standby, 60 seconds
AFTER THAT to reach suspend, and then ANOTHER ADDITIONAL 90
seconds
before the monitor turned off. Great, I get it, now I know how
to ask for what I really want.
So! Suppose we want X to wait three minutes before standby and
then 30 seconds each before suspend and off?
$ xset dpms 180 30 30
illegal combination of values
standby time of 180 is greater than suspend time of 30
Oh no!
OK, this is not of earth-shattering importance, but on the other
hand it should be really easy to fix.
Thanks!
Reply to: