On Tue, 08 Aug 2023 16:00:22 +0100, Dr Stephen Strange wrote:
The Natural Philosopher wrote:
sudo xset dpms force off
I tried sudo in fron of all the above commands with the same results
sudo xset dpms force off gives xset: unable to open display ""
My skill in these things is limited as you have probaly guessed!!!
xset(1) is a utility supplied with and for X11, and requires
a) running X server,
b) a known display on that X server, and
c) permissions to access and modify that display.
If you try to use xset(1) to blank a screen, you have to specify
the display that the screen is attached to, and give permission
(either implicitly, by "owning" that display, or explicitly
through xauth(1) or another recognized authorization method)
for the xset(1) client application to access that display.
All to say that xset(1) is /not/ the best tool to use to blank a
screen remotely.
What you likely need is to use vbetool(1) or some other video
hardware state altering tool (perhaps setterm(1) would do) to
set the low-level video blanking values.
HTH
--
Lew Pitcher
"In Skills We Trust"
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)