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 4.0k 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.
    • evroomE Offline
      evroom @Sam 0
      last edited by

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

      MagicMirror version: 2.30.0
      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      Test environment:
      MagicMirror version: v2.30.0
      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      mumblebajM S 2 Replies Last reply Reply Quote 1
      • mumblebajM Offline
        mumblebaj Module Developer @evroom
        last edited by

        @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
        Check my blog-post: https://mumblebaj.xyz/

        1 Reply Last reply Reply Quote 0
        • S Offline
          Sam 0 @evroom
          last edited by

          @evroom

          should it be modified in this way?

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

          evroomE 1 Reply Last reply Reply Quote 0
          • evroomE Offline
            evroom @Sam 0
            last edited by

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

            MagicMirror version: 2.30.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.30.0
            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              Sam 0 @evroom
              last edited by

              @evroom said in cron job hdmi on and off:

              export WAYLAND_DISPLAY=wayland-0

              this way?
              0e8d7510-9711-4d3a-906d-9694419deee4-image.png

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Sam 0
                last edited by

                @Sam-0 no… the exports have to be before the wlr_randr

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  Sam 0 @sdetweil
                  last edited by

                  @sdetweil
                  thank you i made the adjustment
                  cbeb7a77-bad4-46f5-8f51-485262e43fea-image.png

                  evroomE 1 Reply Last reply Reply Quote 0
                  • evroomE Offline
                    evroom @Sam 0
                    last edited by

                    @Sam-0

                    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.

                    MagicMirror version: 2.30.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.30.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    S 2 Replies Last reply Reply Quote 0
                    • S Offline
                      Sam 0 @evroom
                      last edited by

                      @
                      ok i will adjust it and see if it works

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        Sam 0 @evroom
                        last edited by

                        @evroom said in cron job hdmi on and off:

                        @Sam-0

                        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.

                        Man who catch fly with chopstick, accomplish anything😆

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 3 / 3
                        • First post
                          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