MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED How do I now Rotate display ?

    Troubleshooting
    4
    10
    6332
    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.
    • johnnyboy
      johnnyboy last edited by johnnyboy

      I’ve just upgraded Jessie to Stretch… and did a fresh install of MM.
      Last time I set MM up I done the - display_rotate=1 in sudo nano /boot/config.txt… but obviosly things have changed since I done that first time around…

      so can someone tell me what is the new way of rotating the display now?
      I tried to do what I read in another post, - sudo raspi-config. Go to the Advanced Options menu and select A7 GL Driver. Next, select the G1 GL (Full KMS) OpenGL desktop driver with full KMS. nano ~/.config/lxsession/LXDE-pi/autostart and to then insert @xrandr --output HDMI-1 --rotate right… but the Terminal says - Directory ‘/home/pi/.config/lxsession/LXDE-pi’ does not exist?

      TVMIA

      1 Reply Last reply Reply Quote 0
      • K
        Knapoc last edited by

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

        johnnyboy 1 Reply Last reply Reply Quote 0
        • johnnyboy
          johnnyboy @Knapoc last edited by johnnyboy

          @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
            Knapoc last edited by

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

            johnnyboy K 2 Replies Last reply Reply Quote 1
            • evroom
              evroom last edited by

              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.21.0
              Raspberry Pi 3 Model B Plus Rev 1.3
              Raspbian GNU/Linux 10 (buster)

              johnnyboy 2 Replies Last reply Reply Quote 1
              • johnnyboy
                johnnyboy @Knapoc last edited by

                @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
                • johnnyboy
                  johnnyboy @evroom last edited by

                  @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
                  • johnnyboy
                    johnnyboy @evroom last edited by

                    @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
                      Knapoc @Knapoc last edited by

                      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 0
                      • T
                        tisnatch last edited by

                        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy