• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

cron job hdmi on and off

Scheduled Pinned Locked Moved Solved Troubleshooting
29 Posts 4 Posters 1.1k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    evroom @Sam 0
    last edited by Apr 9, 2025, 8:28 PM

    @Sam-0

    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.

    1 Reply Last reply Reply Quote 0
    • E Offline
      evroom @Sam 0
      last edited by Apr 9, 2025, 8:32 PM

      @Sam-0

      In de laatste 2 regels mist een spatie bij /home.

      1 Reply Last reply Reply Quote 0
      • E Offline
        evroom @Sam 0
        last edited by Apr 9, 2025, 8:43 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S Offline
          Sam 0
          last edited by Apr 10, 2025, 2:29 PM

          ok i checked some more and did some tests

          73aa8bb5-2eeb-4bac-888c-2822ba96a7ad-image.png

          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 display

          also 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?

          4e3a1bda-3953-4e39-899b-35fbcae43297-image.png

          M S 2 Replies Last reply Apr 10, 2025, 3:19 PM Reply Quote 0
          • M Online
            mumblebaj Module Developer @Sam 0
            last edited by Apr 10, 2025, 3:19 PM

            @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 or HDMI-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.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories

            1 Reply Last reply Reply Quote 0
            • S Offline
              Sam 0 @Sam 0
              last edited by Apr 10, 2025, 6:10 PM

              @Sam-0 this is the result
              ecf36ac0-1805-459a-8f09-a634f156946a-image.png

              54d35d64-8643-4566-8e74-cf1a8fa93552-image.png

              checked the cron see below
              82e1d136-77d8-4e8a-b06b-544ba9c05629-image.png

              E 1 Reply Last reply Apr 10, 2025, 7:27 PM Reply Quote 0
              • E Offline
                evroom @Sam 0
                last edited by Apr 10, 2025, 7:27 PM

                @Sam-0

                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 :-)

                M S 2 Replies Last reply Apr 10, 2025, 7:37 PM Reply Quote 1
                • M Online
                  mumblebaj Module Developer @evroom
                  last edited by Apr 10, 2025, 7:37 PM

                  @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.

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Sam 0 @evroom
                    last edited by Apr 11, 2025, 12:00 PM

                    @evroom

                    should it be modified in this way?

                    output HDMI-A-1 --on
                    Into
                    output HDMI-A-0 --on

                    E 1 Reply Last reply Apr 11, 2025, 2:09 PM Reply Quote 0
                    • E Offline
                      evroom @Sam 0
                      last edited by Apr 11, 2025, 2:09 PM

                      @Sam-0 said in cron job hdmi on and off:

                      @evroom

                      should it be modified in this way?

                      output HDMI-A-1 --on
                      Into
                      output HDMI-A-0 --on

                      No, like this:

                      export WAYLAND_DISPLAY=wayland-0

                      In both scripts.

                      S 1 Reply Last reply Apr 11, 2025, 6:59 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        15/29
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy