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

Screen rotation switching back as soon as MM is started

Scheduled Pinned Locked Moved Solved Troubleshooting
4 Posts 2 Posters 596 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.
  • F Offline
    Fantasmic78
    last edited by Oct 24, 2022, 9:41 AM

    Hi community!

    I have a problem with screen rotation in my MagicMirror.

    I need to rotate it to portrait mode, therefore I applied

    @xrandr --output HDMI-1 --rotate right
    

    Note:

    • this basically works for the Desktop
    • I did it this way, because the option “display_hdmi_rotate=1” in /boot/config.txt doesn’t work on Raspberry > 3

    However, now when starting MM with Electron (npm run start), I can see for 1 second or so, that it display correctly in portrait mode, but then immediately switches back to landscape mode!?
    And even when stopping MM then again, also the Desktop is switched back to landscape mode.

    Does anyone have an idea what I’m doing wrong?
    Please help!
    Thanks in advance!
    Best regards, Chris

    B 1 Reply Last reply Oct 24, 2022, 10:00 AM Reply Quote 0
    • F Offline
      Fantasmic78 @Fantasmic78
      last edited by Oct 24, 2022, 1:08 PM

      got it working - MMM-PIR-Sensor-Lite has a “rotation” option…

      1 Reply Last reply Reply Quote 0
      • B Offline
        BKeyport Module Developer @Fantasmic78
        last edited by Oct 24, 2022, 10:00 AM

        @Fantasmic78 try setting it via pi menu -> preferences -> screen configuration instead. It’s what is intended for modern.

        The "E" in "Javascript" stands for "Easy"

        F 1 Reply Last reply Oct 24, 2022, 12:08 PM Reply Quote 0
        • F Offline
          Fantasmic78 @BKeyport
          last edited by Oct 24, 2022, 12:08 PM

          @BKeyport this is what I did even before playing around with config.txt and xrandr options (sorry, didn’t mention that in my post).

          So, means: portrait mode basically works fine for the whole desktop. But when starting MM with Electron, then it changes back.

          Meanwhile, I deactivated all modules and started to enable them again one after the other (because I already had the impression that the problem might be caused by one of the modules, as the MM started with correct orientation, but immediately switched back right after loading) - AND: I found the problematic module: MMM-PIR-Sensor-Lite

          Need to check for detailed configuration options there… let’s see if I can get it working or not

          F 1 Reply Last reply Oct 24, 2022, 1:08 PM Reply Quote 0
          • F Offline
            Fantasmic78 @Fantasmic78
            last edited by Oct 24, 2022, 1:08 PM

            got it working - MMM-PIR-Sensor-Lite has a “rotation” option…

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