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

Infrared Touch Frame - rotate?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 3 Posters 2.6k 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.
  • P Offline
    peemoeller
    last edited by peemoeller Feb 20, 2019, 5:54 PM Feb 20, 2019, 5:17 AM

    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
    • Y Offline
      yawns Moderator
      last edited by Feb 21, 2019, 11:14 AM

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

      P 1 Reply Last reply Feb 21, 2019, 5:55 PM Reply Quote 0
      • P Offline
        peemoeller @yawns
        last edited by Feb 21, 2019, 5:55 PM

        @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 Feb 21, 2019, 6:09 PM Reply Quote 0
        • S Offline
          sdetweil @peemoeller
          last edited by Feb 21, 2019, 6:09 PM

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

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          P 1 Reply Last reply Feb 21, 2019, 7:29 PM Reply Quote 0
          • P Offline
            peemoeller @sdetweil
            last edited by Feb 21, 2019, 7:29 PM

            @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 Feb 21, 2019, 7:34 PM Reply Quote 0
            • S Offline
              sdetweil @peemoeller
              last edited by sdetweil Feb 21, 2019, 7:35 PM Feb 21, 2019, 7:34 PM

              @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

              How to add modules

              learning how to use browser developers window for css changes

              P 1 Reply Last reply Feb 21, 2019, 10:09 PM Reply Quote 0
              • P Offline
                peemoeller @sdetweil
                last edited by peemoeller Feb 22, 2019, 4:59 AM Feb 21, 2019, 10:09 PM

                @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
                1 / 1
                • First post
                  1/7
                  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