MagicMirror Forum

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

    UNSOLVED Infrared Touch Frame - rotate?

    Troubleshooting
    3
    7
    1583
    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.
    • peemoeller
      peemoeller last edited by peemoeller

      Hi there! I have my MagicMirror up and running in portrait mode and works well. I have just added a 42" Infrared Touch Frame Overlay but the touch cursor moves the wrong direction (ie. the touch cursor stuck to landscape)
      How does one calibrate the touch cursor to portrait mode? I slide my finger up the mirror and the cursor moves right ~ lol.

      I have installed xinput but not sure how or where to adjust the settings.

      Any help appreciated!

      1 Reply Last reply Reply Quote 0
      • yawns
        yawns Moderator last edited by

        Did you install xinput_calibrator?
        https://github.com/tias/xinput_calibrator/

        peemoeller 1 Reply Last reply Reply Quote 0
        • peemoeller
          peemoeller @yawns last edited by

          @yawns Hello, yes and just finished running the xinput touch calibrator program under preferences (it had me touch the 4 red crosses). No issues there but I don’t know how or where to change the touch programming to “portrait” mode. I slide my finger up the monitor and the curser moves left.
          Would you have any instructions? Thanks again!

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @peemoeller last edited by

            @peemoeller see here
            https://askubuntu.com/questions/368317/rotate-touch-input-with-touchscreen-and-or-touchpad

            Sam

            Create a working config
            How to add modules

            peemoeller 1 Reply Last reply Reply Quote 0
            • peemoeller
              peemoeller @sdetweil last edited by

              @sdetweil Awesome thanks!

              In his website link I created the portrait.sh file but don’t wuite understand this 2nd part in his instructions:
              ————————-
              “Afterwards, I also made launchers to automatically run each shell script when I tapped on them (this is possible in Xubuntu, Ubuntu MATE, and many other Ubuntu flavours). To do so, go to your panel, right-click, click on “add to panel” (or equivalent, for all these subsequent commands, too), create a custom application launcher. For portrait’s launcher, put in this command:

              sh /home/username/Scripts/portrait”
              —————————

              Are you able to elaborate? I am somewhat new to this 🙂
              Appreciate the guidance!
              ~ Eric.

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @peemoeller last edited by sdetweil

                @peemoeller he made apps(launcher) in the ubuntu graphical interface. So he could switch orientations just from a menu.

                If u are doing just once, u won’t need that.

                But he may have left out a step.
                From the command shell, where your little script is located, do

                chmod +x portrait.sh
                

                To make the script executable

                Sam

                Create a working config
                How to add modules

                peemoeller 1 Reply Last reply Reply Quote 0
                • peemoeller
                  peemoeller @sdetweil last edited by peemoeller

                  @sdetweil That worked! Nice 🙂
                  In Terminal I entered: chmod +x portrait.sh
                  Then executed the portrait.sh file I made
                  and the touch IR is now set to portrait.

                  So happy, thanks for your help buddy!

                  I’ve re-ran the “Calibrate Touchscreen” in Preferences again too. It reads:

                  < Calibrating standard Xorg driver “Multi touch overlay device” current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=65535
                  If these values are estimating wrong, either supply it manually with the - -precalib option, or run the ‘get_precalib.sh’ script to automatically get it (through HAL). >

                  I find the touch curser doesn’t reach the the edges of my monitor. Example I can’t simply click on the Raspberry Icon in the corner. The curser is diaginally 2 inches away?

                  Where can I set or adjust this? Any thoughts?

                  Fun!

                  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