xset: unable to open display
43,082
Solution 1
You need to tell xset
which display to use:
export DISPLAY=:0
xset q
Solution 2
Try vbetool
instead xset
:
sudo vbetool dpms off
It's works fine for me.
Related videos on Youtube
Author by
user287878
Updated on September 18, 2022Comments
-
user287878 over 1 year
For the longest time after about 5 minutes my screen would blank out. Now the screen will go blank after 5 minutes but then 2 seconds after that it will light up white and keep the laptop backlighting on. I didn't change any settings to my knowledge it just happened randomly after powering it on one day and has occurred since then.
I wish to resort back to blanking the screen out completely since I leave this computer on all the time and it's hard to sleep with a huge white light all the time.
xset dpms force off
just yields me:xset: unable to open display ""
-
KeyTrap almost 9 years> export DISPLAY=:0 > xset q after that I have ' unable to open display ":0" '
-
Nikolay Ruban over 8 yearsHad same problem when was trying to access monitor remotely with user other than logged in.
-
yode almost 7 yearsThen I get
xset: unable to open display ":0"
-
KRoy over 5 years
export DISPLAY=0
instead. It should work -
bitdancer over 4 yearsSorry I got the error "Real mode call failed"
-
Seff over 3 yearsNeither of the methods works in systemd foked process.
-
TimNode almost 3 yearsFor me a combination of
sudo
& running the normal command worked. Combination ofexport DISPLAY=:0
andsudo xset q
. Pretty weird. -
Admin almost 2 yearsI got "Failed to initialise LRMI (Linux Real-Mode Interface)."