On Thu, 22 Jul 2021 10:10:16 +0100
fraser kendall <lfs.mail...@leloft.co.uk> wrote:

> Hi,
> 
> This feels like a damnfool question, but I don't seem able to find an
> appropriate solution.
> 
> The situation: careless staff leaving desktops logged on, open tabs in
> browsers, monitors left on etc.etc.
> 
> First solution: cron job: '/sbin/shutdown -r now' run daily at 7pm
> 
> But this reboots to a live console login (no dm installed) and I
> haven't yet found a way to remotely configure the power management; all
> the solutions seem to merge to one where X is already running (or
> eliminating human error!).
> 
> The situation is complicated by the need to subsequently disable power
> management and screensaver so that online video (tutoring) doesn't get
> interrupted once X and xfce are manually launched. So here is my
> damnfool question:
> 
> How can I manually turn any monitors off remotely if they are not
> running X? The computers are all running Chimaera.
> 
> Sorry for such an elementary question, but it's eluded me.
> 
> fraser
> 
> _______________________________________________
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Hi,
something like (at the end of startx?):

#export DISPLAY=:0.0 (should be set)
# turn off
xset -display $DISPLAY dpms force off
# read keyboard input 
read dummy
# turn on again if keyboard active
xset -display $DISPLAY dpms force on

Untested.

Ciao,
Tito
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to