Read the statement by Michael Teeuw here.
Having trouble with screen on and off? Here are some tips that could help
-
@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 -
Works great, but when the monitor switches back on, chromium does not start maximized and shows the infobar, both of which are managed in the [autostart] section of wayfire.ini. Is there a way to get the MM display back just as when the Pi launches fresh?
-
@langejos switch back to x11 in raspi-config
-
For me I needed to use wayland-0 on a RPI5 using the ribbon-display cable.
From the wlr-randr i got thisDSI-1 “(null) (null) (DSI-1)”
Physical size: 154x86 mm
Enabled: yes
Modes:
800x480 px, 60.028999 Hz (preferred, current)
Position: 368,332
Transform: 90
Scale: 1.000000So I used DSI-1 instead of HDMI.
Also I removed the --mode information since i got something like “Mode 800x480 not recognized”, but apparently my display defaults to that. -
@mumblebaj Course, I just switched back to X11 for now. 🙃
-