Read the statement by Michael Teeuw here.
cron job hdmi on and off
-
So it seems that the cronjob is okay.
Can you do:
ˋˋˋls -als /run/user/1000/wayland*ˋˋˋI think you need wayland-0 iso wayland-1.
With ˋˋˋ grep username /etc/passwdˋˋˋ (use your username) you can verify that your user has uid 1000.
-
In de laatste 2 regels mist een spatie bij /home.
-
This post is deleted! -
ok i checked some more and did some tests
when I execute the following I get the error message that I also see in the log
/usr/bin/wlr-randr --output H DMI-A-1 --off
failed to connect to displayalso running the sh files via putty gives the error
it seems that the command:
/usr/bin/wlr-randr --output H DMI-A-1 --off
the error message gives the question is this command incorrect or is there an underlying problem? -
@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.