Read the statement by Michael Teeuw here.
cron job hdmi on and off
-
@Sam-0 Can you run the following from the command line and she your results:
wlr-randr
ls -als /run/user/1000/wayland*
Share your results. Either the
wayland-1
is different as indicated by @evroom orHDMI-A-1
is actually a different version on your system.Share the results from the above and we take it from there. Also, @evroom has indicated the there is supposed to be a space before
/home
on the crontab. -
-
So as stated before you most probably need to change wayland-1 to wayland-0 in your scripts.
Give it a try.
Furthermore the .lock file may cause a problem, but I guess this will show in your error log.
And temporarily change the times in your cronjob to speed things up a bit.
Waiting till ten and midnight is not really necessary :-) -
@evroom *.lock should not cause an issue. I have same on my system and no issues with it. I agree with the wayland-1 change to wayland-0.
-
-
@Sam-0 said in cron job hdmi on and off:
should it be modified in this way?
output HDMI-A-1 --on
Into
output HDMI-A-0 --onNo, like this:
export WAYLAND_DISPLAY=wayland-0
In both scripts.
-
-
@Sam-0 no… the exports have to be before the wlr_randr
-
@sdetweil
thank you i made the adjustment
-
You only had to change the 1 into a 0.
Not to move the lines around, especially not the ones with export.#!/bin/bash export WAYLAND_DISPLAY=wayland-0 export XDG_RUNTIME_DIR=/run/user/1000 wir-randr --output HDMI-A-1 --on
But you are slowly getting there :-)
Wax on, wax off
Screen on, screen off.