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

How do I now Rotate display ?

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 4 Posters 8.5k 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.
  • K Offline
    Knapoc
    last edited by Jul 13, 2019, 11:03 AM

    so just create the folder… mkdir -p /home/pi/.config/lxsession/LXDE-pi

    J 1 Reply Last reply Jul 13, 2019, 11:25 AM Reply Quote 0
    • J Offline
      johnnyboy @Knapoc
      last edited by johnnyboy Jul 13, 2019, 12:05 PM Jul 13, 2019, 11:25 AM

      @Knapoc said in How do I now Rotate display ?:

      so just create the folder… mkdir -p /home/pi/.config/lxsession/LXDE-pi

      Thanks, I entered as you suggested, and then entered the lines from above… nano ~/.config/lxsession/LXDE-pi/autostart and to then insert @xrandr --output HDMI-1 --rotate right… then did a reboot, but display is still normal, and have now lost PM2 as it just goes straight to desktop now.

      PM2 Start procures - [pm2] [ERROR] File ecosystem.config.js not found

      MM worked perfect and PM2 worked as it booted into the MM… until I did as stated above and it has now done something?

      EDIT - PM2 has worked again.

      Still need to figuire out how to rotate the screen though.

      1 Reply Last reply Reply Quote 0
      • K Offline
        Knapoc
        last edited by Jul 13, 2019, 12:26 PM

        @johnnyboy said in How do I now Rotate display ?:

        Still need to figuire out how to rotate the screen though.

        What GL driver are you using? I’m currently having rotation issues with the fkms (fake) one, which is usually done by editing /boot/config.txt.

        Now I switched to the full kms one and the solution you just tried works… You can change the driver via /boot/config.txt:

        dtoverlay=vc4-kms-v3d
        

        or by choosing it in sudo raspi-config.

        The wiki-page also states, that the default location for autostart file changed:

        To do so, edit the autostart file: (autostart file has been moved in the latest version of Raspbian Stretch, Version: April 2019, Release Date: 2019-04-08 Kernel: 4.14 to /etc/xdg/lxsession/LXDE-pi/autostart

        Even though I have a fresh stretch install (last week), I cannot confirm that the location changed - I set the rotation config as mentioned in my previous post.

        J K 2 Replies Last reply Jul 13, 2019, 1:32 PM Reply Quote 1
        • E Offline
          evroom
          last edited by Jul 13, 2019, 12:50 PM

          This topic discusses an alternative way to rotate the screen:

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

          It worked for me.

          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)

          J 2 Replies Last reply Jul 13, 2019, 1:34 PM Reply Quote 1
          • J Offline
            johnnyboy @Knapoc
            last edited by Jul 13, 2019, 1:32 PM

            @Knapoc said in How do I now Rotate display ?:

            @johnnyboy said in How do I now Rotate display ?:

            Still need to figuire out how to rotate the screen though.

            What GL driver are you using?

            G1 GL (Full KMS) OpenGL desktop driver with full KMS

            Now I switched to the full kms one and the solution you just tried works…

            Tried everything above again, but… Still will not rotate, and again lost PM2?.. All very strange… Maybe needs a bug fix of sorts? ( display_rotate=1 in sudo nano /boot/config.txt was soooooo perfect )

            Will now try the Custom CSS approach and see if that will be any better?

            1 Reply Last reply Reply Quote 0
            • J Offline
              johnnyboy @evroom
              last edited by Jul 13, 2019, 1:34 PM

              @evroom said in How do I now Rotate display ?:

              This topic discusses an alternative way to rotate the screen:

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

              It worked for me.

              Thanks… will play around with that and see if that helps… Strange why doing what I did above shuts down PM2 though?

              1 Reply Last reply Reply Quote 0
              • J Offline
                johnnyboy @evroom
                last edited by Jul 13, 2019, 3:50 PM

                @evroom said in How do I now Rotate display ?:

                This topic discusses an alternative way to rotate the screen:

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

                It worked for me.

                Thanks… ^^^ This worked for me too now.
                Appreciate all the help on this guys.

                1 Reply Last reply Reply Quote 0
                • K Offline
                  Knapoc @Knapoc
                  last edited by Jul 14, 2019, 9:56 AM

                  to add to my latest post:

                  so if you add an autostart file under ~/.config/lxsession/LXDE-pi/ the default file located under /etc/xdg/lxsession/LXDE-pi/autostart is overridden for the user. Since I had a user-config the changes applied in the default file had no effect. See this post for reference.

                  To summarise the following configuration works in my case.

                  ~/.config/lxsession/LXDE-pi/autostart:

                  # hide mouse pointer when idle
                  @unclutter -display :0 -idle 3 -root -noevents
                  # rotate display by 90 degrees
                  @xrandr --output HDMI-1 --rotate right
                  

                  (I opted for this way, since I don’t want to load the desktop ui)

                  /boot/config.txt (snippet):

                  # MagicMirror configuration
                  disable_splash=1
                  avoid_warnings=1
                  dtoverlay=vc4-kms-v3d
                  gpu_mem=128
                  

                  Make sure that there’s no dtoverlay=vc4-fkms-v3dentry or comment it.

                  1 Reply Last reply Reply Quote 1
                  • T Offline
                    tisnatch
                    last edited by Jan 3, 2020, 6:50 PM

                    Just tried this. It seems the fkms + display_rotate no longer works. There are some comments about in the rpi forums too, like this one:
                    https://www.raspberrypi.org/forums/viewtopic.php?t=246146

                    Using the kms driver plus the edits to the autostart file worked for me. Is there a way to get an official update to the documentation?

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