Read the statement by Michael Teeuw here.
cron job hdmi on and off
-
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-1is different as indicated by @evroom orHDMI-A-1is 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
/homeon 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 --onBut you are slowly getting there :-)
Wax on, wax off
Screen on, screen off. -
@
ok i will adjust it and see if it works -
@evroom said in cron job hdmi on and off:
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 --onBut you are slowly getting there :-)
Wax on, wax off
Screen on, screen off.Man who catch fly with chopstick, accomplish anything😆
-
ok is this good now? :) let me know the result tomorrow…


-
@Sam-0 think so yes
-
yes it works very well thank you for your patience with me I hope others can now set it up more easily
thanks again for the effort -
S sdetweil has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login




