MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. evroom
    3. Controversial
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 18
    • Posts 476
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: cron job hdmi on and off

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

      i created two files
      off.sh and on.sh
      they contain the following lines

      wlr-randr --output HDMI-A-1 --off
      wlr-randr --output HDMI-A-1 --on

      Do you have #!/bin/bash or #!/bin/sh at the very beginning of your shell scripts ?

      #! /bin/sh – Execute the file using the Bourne shell, or a compatible shell, assumed to be in the /bin directory
      #! /bin/bash – Execute the file using the Bash shell

      You can also put /bin/bash in the crontab entry (before /home/username/...).
      Then there is no way for cron to not execute it as a shell script and it will even run without the executable bit set.

      And what Sam mentioned: the scripts need to be executable but not necessarily writable (chmod 755).
      This should normally do the trick.

      If you have mail installed (which mail) you can put this at the very beginning of the crontab file:
      MAILTO=username (in my case admin).
      With
      journalctl --since "1 day ago" --unit cron.service --no-pager
      you can see if cron ran your script and with mail you can see more details on the cron job executed.

      Good luck.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: LED Monitor Vertical Setup How??

      Found it.

      https://forum.magicmirror.builders/topic/9707/save-performance-when-rotating-screen-e-g-on-raspberry-pi

      Looks like this is a better option.
      Will give it a try myself.

      posted in Troubleshooting
      evroomE
      evroom
    • 1 / 1