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

set issue under MagicMirror OS

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 580 Views 2 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.
  • J Offline
    Joern
    last edited by Sep 12, 2020, 6:57 PM

    Hello,

    I switched to MagicMirror OS (2020-05-10_2020-02-13-magicmirroros-buster-lite-0.1.0.zip) & it is running fairly smooth. Used Raspberry desktop version in past.

    Only issue I have no, that I cannot make the display turn off & turn on by PIR sensor connected to PIN-header. Without that I burn energy like hell during none use…

    Usally I turn off by python script:

    subprocess.call("DISPLAY=:0 xset s activate", shell=True)
    

    and turn on by:

    subprocess.call("DISPLAY=:0 xset s reset", shell=True)
    

    Seems that MM interface is running on “tty7 session”.
    Trying to activate in screen tty1 (on PI with keyboard), does not show any effect…

    sleep 1;DISPLAY=:0 xset s activate

    Does I not understand the display and tty sessions maybe?

    1 Reply Last reply Reply Quote 0
    • K Offline
      karsten13
      last edited by Sep 12, 2020, 9:39 PM

      The Package x11-xserver-utils which contains the xset command is not installed in the docker image used by MagicMirrorOS.

      The problem is you want a small docker image because pulling new images is “not very fast” on a pi. So you cannot put everything into this image someone may need but 98% not.

      In this case I think it makes sense because the usecase is not exotic and the image size increases only about 20MB. Will let you know here when you can test this.

      1 Reply Last reply Reply Quote 0
      • K Offline
        karsten13
        last edited by Sep 12, 2020, 9:55 PM

        My first answer was to fast, i missed the python stuff, python is also missing in the image.

        So if you need python the better approach is to build your own docker image. You can use the existing image used in MagicMirrorOS as base image and install the dependencies x11-xserver-utils, python3, …

        1 Reply Last reply Reply Quote 0
        • J Offline
          Joern
          last edited by Sep 13, 2020, 6:40 PM

          Thanks, Iam not very familiar with Docker compilation, then I will try a fresh install in old school way and rotate screen by CSS, that also saved a lot of CPU/GPU use already…

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