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

cronjob vcgencmd display_power

Scheduled Pinned Locked Moved Unsolved Troubleshooting
15 Posts 4 Posters 3.4k 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.
  • M Offline
    megagprime
    last edited by Oct 27, 2022, 1:57 PM

    Hi guys, i am having trouble getting the magicmirror to turn the screen on and off with cronjob. I have used them before and it used to work and works with other installations with root /usr/bin…>/dev/null 2>&1 command but does not work anymore. I have tried all these variations and none work. I have used system wide cron with sudo nano edit and the reboot actually works…56cee79b-2240-43b0-91c0-78664a2d9871-image.png

    1 Reply Last reply Reply Quote 0
    • M Offline
      megagprime
      last edited by Oct 27, 2022, 2:57 PM

      this is on pi3 and i also tried modifying boot/config.txt file

      Enable DRM VC4 V3D driver

      dtoverlay=vc4-kms-v3d (changed to fkms)
      max_framebuffers=2

      M 1 Reply Last reply Oct 27, 2022, 4:41 PM Reply Quote 1
      • M Online
        mumblebaj Module Developer @megagprime
        last edited by Oct 27, 2022, 4:41 PM

        @megagprime This is how I run mine. I have 2 scripts and I call these scripts from the cron and not the actual vcgencmd

        3fdefb68-5776-47df-8d84-77b37e55d927-image.png

        And in the scripts I run the following:

        cacceb58-583d-425f-8249-960a351a4e7f-image.png

        This works perfectly for me. Give it a go and let’s see if that works. I run an RPI 3B.

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

        M 1 Reply Last reply Oct 31, 2022, 3:12 PM Reply Quote 0
        • M Offline
          megagprime @mumblebaj
          last edited by Oct 31, 2022, 3:12 PM

          @mumblebaj ya even this didnt work, maybe i need to change my boot/config file back to kms

          M 1 Reply Last reply Nov 8, 2022, 6:33 PM Reply Quote 0
          • M Offline
            megagprime @megagprime
            last edited by Nov 8, 2022, 6:33 PM

            @megagprime anybody have any ideas why this doesnt work and should i change my boot file?

            N 1 Reply Last reply Nov 25, 2022, 4:42 PM Reply Quote 0
            • N Offline
              Nneuland @megagprime
              last edited by Nov 25, 2022, 4:42 PM

              @megagprime
              Did you ever figure this out? I’m having the same issue

              M 1 Reply Last reply Jan 6, 2023, 11:41 PM Reply Quote 0
              • M Offline
                megagprime @Nneuland
                last edited by Jan 6, 2023, 11:41 PM

                @Nneuland nope, still no dice. building a new mm now, will update

                S 1 Reply Last reply Jan 6, 2023, 11:54 PM Reply Quote 0
                • S Away
                  sdetweil @megagprime
                  last edited by Jan 6, 2023, 11:54 PM

                  @megagprime @Nneuland depending on the board firmware, the vcgencmd may or may not work

                  this was reported and worked thru in the fall.
                  see https://forum.magicmirror.builders/topic/17185/pir-sensor-problem-after-restart-raspi/20?_=1672509926391

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Jan 12, 2023, 2:43 PM Reply Quote 0
                  • M Offline
                    megagprime @sdetweil
                    last edited by Jan 12, 2023, 2:43 PM

                    @sdetweil hi there, i still dont see a fix or alternative workaround. The commands themselves work i just cant get it to work with cronjon :(

                    S 1 Reply Last reply Jan 12, 2023, 2:44 PM Reply Quote 0
                    • S Away
                      sdetweil @megagprime
                      last edited by Jan 12, 2023, 2:44 PM

                      @megagprime what user is cron executing them as?

                      what user do you use when testing?

                      cron is root by default unless u add another parm for the username

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 2 Replies Last reply Jan 12, 2023, 3:03 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • 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