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

scaling gone wonky

Scheduled Pinned Locked Moved Solved Troubleshooting
16 Posts 4 Posters 860 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.
  • M Offline
    MMRIZE @cyclonej
    last edited by Dec 25, 2024, 12:50 PM

    @cyclonej
    Show me the whole screen capture. And what resolution the screen has?

    C 1 Reply Last reply Dec 25, 2024, 6:08 PM Reply Quote 0
    • C Offline
      cyclonej @MMRIZE
      last edited by cyclonej Dec 25, 2024, 7:03 PM Dec 25, 2024, 6:08 PM

      @MMRIZE

      Currently 1024x768, maximum allowed.

      9e5151d4-0d02-494f-82e4-3631a6c80803-image.png

      S 1 Reply Last reply Dec 25, 2024, 6:45 PM Reply Quote 0
      • S Offline
        sdetweil @cyclonej
        last edited by Dec 25, 2024, 6:45 PM

        @cyclonej horizontal/landscape mode, MagicMirror is designed for 1920x1080

        so in portrait mode it should be 1080x1920

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Dec 25, 2024, 7:04 PM Reply Quote 0
        • C Offline
          cyclonej @sdetweil
          last edited by Dec 25, 2024, 7:04 PM

          @sdetweil

          I am marking this as solved. I think when I first booted up the Raspberry Pi, the resolution was 1920x1080. I am not sure what is preventing from going to that resolution now. That is where I will focus my troubleshooting.

          Thanks all for the assistance.

          C 1 Reply Last reply Dec 25, 2024, 10:04 PM Reply Quote 0
          • C cyclonej has marked this topic as solved on Dec 25, 2024, 7:04 PM
          • C Offline
            cyclonej @cyclonej
            last edited by Dec 25, 2024, 10:04 PM

            @cyclonej said in scaling gone wonky:

            @sdetweil

            I am marking this as solved. I think when I first booted up the Raspberry Pi, the resolution was 1920x1080. I am not sure what is preventing from going to that resolution now. That is where I will focus my troubleshooting.

            Thanks all for the assistance.

            I spent another couple hours trying things in the preferences, display settings, even tried to modify the /boot/config to no avail. I then reseated the HDMI cable and the OS started allowing resolutions up to 1920x1080. MM looks great again!

            Thanks again everyone for your help.

            S C 2 Replies Last reply Dec 25, 2024, 11:11 PM Reply Quote 0
            • S Offline
              sdetweil @cyclonej
              last edited by Dec 25, 2024, 11:11 PM

              @cyclonej always amazed at how the simple this cause so much trouble

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • C cyclonej has marked this topic as solved on Dec 26, 2024, 11:59 PM
              • C Offline
                cyclonej @cyclonej
                last edited by Dec 27, 2024, 2:49 AM

                @cyclonej said in scaling gone wonky:

                @cyclonej said in scaling gone wonky:

                @sdetweil

                I am marking this as solved. I think when I first booted up the Raspberry Pi, the resolution was 1920x1080. I am not sure what is preventing from going to that resolution now. That is where I will focus my troubleshooting.

                Thanks all for the assistance.

                I spent another couple hours trying things in the preferences, display settings, even tried to modify the /boot/config to no avail. I then reseated the HDMI cable and the OS started allowing resolutions up to 1920x1080. MM looks great again!

                Thanks again everyone for your help.

                After I got everything working nicely, I disconnected everything to move to the permanent installation location. Hung everything on kitchen wall, then reconnected everything and powered on… screen resolution stuck back on 1024x768.

                30191b4c-f159-4e8e-acbb-5bd0969cf829-image.png

                S 1 Reply Last reply Dec 27, 2024, 2:58 AM Reply Quote 0
                • S Offline
                  sdetweil @cyclonej
                  last edited by Dec 27, 2024, 2:58 AM

                  @cyclonej dang it!

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Jan 4, 2025, 2:06 AM Reply Quote 0
                  • C Offline
                    cyclonej @sdetweil
                    last edited by Jan 4, 2025, 2:06 AM

                    @sdetweil

                    I thought I would post the final fix for the screen resolution.

                    Through many Google searches, I found some commands that would theoretically would force the OS to use 1920x1080 resolution. (https://forums.linuxmint.com/viewtopic.php?t=274540)
                    However, I was receiving errors on execution of the cvt command.

                    cvt 1920 1080
                    

                    More Google searches revealed that I had to install cvt.

                    sudo apt-get install xcvt
                    

                    next, I was getting errors on the last xrandr command (setting the current output mode).

                    xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2276  1080 1083 1088 1120 -hsync +vsync
                    xrandr --addmode WAYLAND1 1920x1080_60.00
                    xrandr --output WAYLAND1 --mode "1920x1080_60.00"
                    

                    More Google searches indicated WAYLAND output is enabled when VNC is enabled for remote connections. More searches lead me to the raspi-config, where I found the display was set to ‘WAYLAND’. I had to change the display setting to X11. Now the commands could all succeed.

                    xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2276  1080 1083 1088 1120 -hsync +vsync
                    xrandr --addmode HDMI-1 1920x1080_60.00
                    xrandr --output HDMI-1 --mode "1920x1080_60.00"
                    

                    However, the resolution setting would not persist through a reboot. I started exploring how to set these xrandr commands to execute at startup. Google searches lead me to try modifying config files, which failed due to access denied. Then I remembered that MM uses pm2 to auto start when OS starts. So I created a .sh file to execute the xrandr commands and followed the same steps in MM (https://docs.magicmirror.builders/configuration/autostart.html#using-pm2) , replacing file names as needed, to launch my Set_Resolution.sh at startup.

                    Viola!

                    My raspberry pi 5 now boots up and sets screen to 1920x1080 right away!

                    It took a great deal of searching and learning how Raspberry Pi works. In the end, I got there.
                    dd9b81f6-c87f-4dd0-b13e-5e8135efce22-image.png

                    S 1 Reply Last reply Jan 4, 2025, 2:12 AM Reply Quote 0
                    • S Offline
                      sdetweil @cyclonej
                      last edited by Jan 4, 2025, 2:12 AM

                      @cyclonej woohoo!!..

                      the ‘permissions’ are because the files are in the root owned space

                      you can use
                      sudo nano filename
                      to edit and save changes there

                      but you accomplished the same thing… awesome

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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