Question:
How are you doing. I tell you I am trying to turn off the screen of the ubuntu server and there is no case. I comment. I have an ubuntu server mounted on a laptop. The function of this server is that it is on and nothing else, it does not make sense that the screen remains on.
I am trying with the following command from a console via ssh:
xset dpms force off
When executing that command, it returns the following message:
xset: unable to open display ":0.0"
Being the ip of the server 192.168.0.183, try to execute the following and in the same way I get the same message.
xset -display 192.268.0.183:0.0 dpms force off
xset: unable to open display "192.268.0.183:0.0"
Any ideas?
Answer:
I think that setting the screen brightness to zero counts as turning it off, with this method the brightness of your screen returns to its normal state when you restart the system.
In the / sys / class / backlight directory we find the available devices corresponding to our hardware, which in turn are related to the screen:
$ ls /sys/class/backlight/
acpi_video0 intel_backlight toshiba
For my specific case, it works for me to enter the intel_backlight
directory and there is a file called brightness
that indicates the current brightness with a number, this current brightness can be between 0 and the number you have in the max_brightness
file in the same directory.
What you should do is edit the brightness
file as root and leave it at 0 to "turn off your screen", you can do it with nano:
nano /sys/class/backlight/intel_backlight/brightness