Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #176399
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Monitor switched off after resume from hibernation |
| Date | 2017-01-07 05:00 +0100 |
| Message-ID | <sWQkF-3kt-1@gated-at.bofh.it> (permalink) |
| References | <sWnsm-8rY-9@gated-at.bofh.it> <sWqqd-25X-7@gated-at.bofh.it> <sWrYZ-2TE-17@gated-at.bofh.it> <sWJVT-7yR-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri 06 Jan 2017 at 22:00:45 (+0100), solitone wrote: > On Thursday, January 5, 2017 7:52:20 PM CET David Wright wrote: > > Do you perhaps need > > > > xset -display <something> dpms force on > > > > in the systemd script? > > no, I've also tried with the -display option, but I don't get anything, with > that command in either the pre block or the post block. > > BTW, on my system the -display option doesn't seem to be needed, because if I > do: > > $ sleep 1; xset dpms force off; sleep 2; xset dpms force on > > in a terminal, the screen switches off and on as expected. Yes, but in your terminal, you'll probably find that $ echo $DISPLAY will give you :0 (locally) or localhost:10.0 (if you ssh into another computer). So your terminal's xset command will be happy without -display as it's got $DISPLAY instead. $ xset c 99 # good $ xset c 1 # good $ xset -display :1 c 99 # bad xset: unable to open display ":1" $ DISPLAY="" xset c 99 # bad xset: unable to open display "" $ DISPLAY="" xset -display :0 c 99 # good $ I'm assuming that a systemd command that suddenly pops up from nowhere will not have a suitable value for $DISPLAY. If I put * * * * * /usr/bin/xeyes into my crontab, I get an error message mailed to me every minute as above. If I replace it with * * * * * DISPLAY=":0" /usr/bin/xeyes I get a new pair of eyes popping up on the screen every minute. Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-05 22:10 +0100
Re: Monitor switched off after resume from hibernation Keith Bainbridge <keithrbaugroups@gmail.com> - 2017-01-06 01:20 +0100
Re: Monitor switched off after resume from hibernation David Wright <deblis@lionunicorn.co.uk> - 2017-01-06 03:00 +0100
Re: Monitor switched off after resume from hibernation Keith Bainbridge <keithrbaugroups@gmail.com> - 2017-01-06 06:20 +0100
Re: Monitor switched off after resume from hibernation David Wright <deblis@lionunicorn.co.uk> - 2017-01-06 15:30 +0100
Re: Monitor switched off after resume from hibernation Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-06 22:50 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-06 22:10 +0100
Re: Monitor switched off after resume from hibernation David Wright <deblis@lionunicorn.co.uk> - 2017-01-07 05:00 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-07 08:20 +0100
Re: Monitor switched off after resume from hibernation Joe <joe@jretrading.com> - 2017-01-07 10:10 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-07 16:10 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-07 19:40 +0100
Re: Monitor switched off after resume from hibernation David Wright <deblis@lionunicorn.co.uk> - 2017-01-07 20:40 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-07 21:30 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-08 08:10 +0100
Re: Monitor switched off after resume from hibernation David Wright <deblis@lionunicorn.co.uk> - 2017-01-09 02:10 +0100
Re: Monitor switched off after resume from hibernation Joel Rees <joel.rees@gmail.com> - 2017-01-09 13:50 +0100
Re: Monitor switched off after resume from hibernation David Wright <deblis@lionunicorn.co.uk> - 2017-01-09 15:20 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-06 07:00 +0100
Re: Monitor switched off after resume from hibernation Keith Bainbridge <keithrbaugroups@gmail.com> - 2017-01-06 07:30 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-06 13:20 +0100
Re: Monitor switched off after resume from hibernation Charlie Kravetz <cjk@teamcharliesangels.com> - 2017-01-06 15:40 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-06 20:50 +0100
Re: Monitor switched off after resume from hibernation Charlie Kravetz <cjk@teamcharliesangels.com> - 2017-01-06 23:20 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-07 08:00 +0100
Re: Monitor switched off after resume from hibernation Joel Rees <joel.rees@gmail.com> - 2017-01-09 14:10 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-09 19:00 +0100
Re: Monitor switched off after resume from hibernation solitone <solitone@mail.com> - 2017-01-22 14:40 +0100
csiph-web