Read the statement by Michael Teeuw here.
Having trouble with screen on and off? Here are some tips that could help
-
@reviewsfornerds Hi. Apologies for the late reply. Was away for the weekend.
Can you share your script that you are calling? Also the output of
wlr-randr
. -
@reviewsfornerds said in Having trouble with screen on and off? Here are some tips that could help:
the log file shows the error “failed to connect to display”
yes, the command wants to know WHICH ‘display’ you want to control
and normally would get that from the environment variables of the terminal window you are running the command inBUT
the module is running it in the background, with NO window, no env variable… oops…
IN addition, ‘specifying’ the window info may not work as the environment running the wlr_randr command was NOT started UNDER the window manager
how to fix THAT is beyond my knowledge… as each of these depends on different stuff…
(and you put it in cron, and cron runs as ROOT, not the local user you would be if you had a terminal window… even more fun) -
Thank you for the tutorial, it solved my issues of sending the screen to sleep at night. For whatever reasons, I had to use wayland-0 and HDMI-A-2 on my installation.
-
@captsi HDMI-A-2 is probably because you plugged into 2. Glad it helped you though.
-
@captsi said in Having trouble with screen on and off? Here are some tips that could help:
I had to use wayland-0 and HDMI-A-2
wayland is the software screen interface,
HDMI- is the hardware screen interface