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

IR Frame doesn't rotate

Scheduled Pinned Locked Moved Troubleshooting
24 Posts 7 Posters 16.5k Views 8 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.
  • Y Offline
    yawns Moderator @AlessandroRa
    last edited by Feb 24, 2017, 6:44 PM

    @AlessandroRa
    Hm, these are drivers for Mac (pkg), Android (apk), Windows (exe)

    Maybe you can extract the pkg file and gather the driver files?

    A 1 Reply Last reply Feb 24, 2017, 8:45 PM Reply Quote 0
    • S Offline
      Snille Module Developer @AlessandroRa
      last edited by Snille Feb 24, 2017, 6:52 PM Feb 24, 2017, 6:51 PM

      @AlessandroRa Hi! Unfortunately the manufacturer do not have any drivers for ARM.
      I ended up with using it as a normal “HID” device. I have to rotate the frame manually with this command in SSH: DISPLAY=:0.0 xinput --set-prop "Multi touch Multi touch overlay device" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
      But I cant get it to stick after reboot. So, I have to do it after every boot when everything has started.
      I did not get the xinnput_calibration values to stick either. I’m in Rasbian Jessie Lite.

      If you cant find it, make it and share it!
      Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

      C 1 Reply Last reply Feb 24, 2017, 8:19 PM Reply Quote 0
      • C Offline
        cowboysdude Module Developer @Snille
        last edited by Feb 24, 2017, 8:19 PM

        @Snille said in IR Frame doesn’t rotate:

        @AlessandroRa Hi! Unfortunately the manufacturer do not have any drivers for ARM.
        I ended up with using it as a normal “HID” device. I have to rotate the frame manually with this command in SSH: DISPLAY=:0.0 xinput --set-prop "Multi touch Multi touch overlay device" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
        But I cant get it to stick after reboot. So, I have to do it after every boot when everything has started.
        I did not get the xinnput_calibration values to stick either. I’m in Rasbian Jessie Lite.

        Write it in an .sh file and have it run everytime you boot up ;)

        1 Reply Last reply Reply Quote 0
        • A Offline
          AlessandroRa @yawns
          last edited by Feb 24, 2017, 8:45 PM

          @yawns I tried, there’s no way to open it…

          @Snille I’ve installed xinput_calibrator and I’ve just tried to start the mirror with the command you wrote, but it still doesn’t recognise the xinput command… How did you do it?

          @cowboysdude smart move!

          S 1 Reply Last reply Feb 24, 2017, 9:50 PM Reply Quote 1
          • S Offline
            Snille Module Developer @AlessandroRa
            last edited by Feb 24, 2017, 9:50 PM

            @AlessandroRa Just install xinput sudo apt-get install xinput
            Then you are good to go. :)
            @cowboysdude I have to know when to start the actual xinput command, I have tried in the “startup” for LXDE, with CRON and in “openbox”:es “statup”. For some reason I cant get it to “take”. I have not made a .sh file, true. But where / when to execute it? :)

            If you cant find it, make it and share it!
            Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

            C 1 Reply Last reply Feb 25, 2017, 12:57 PM Reply Quote 0
            • C Offline
              cowboysdude Module Developer @Snille
              last edited by Feb 25, 2017, 12:57 PM

              @Snille

              Edit the file:

              sudo crontab -e
              Add line to file (here a python script):

              @reboot python3 /home/pi/Desktop/example.py &

              S P 2 Replies Last reply Feb 25, 2017, 2:34 PM Reply Quote 0
              • S Offline
                Snille Module Developer @cowboysdude
                last edited by Feb 25, 2017, 2:34 PM

                @cowboysdude It worked when added to a sh script! Good call! :) Before I just tested with the xinput command directly in the autostart file, but that did not work. So now instead I just created a script called xin.sh.
                nano ~/xin.sh
                Then added
                DISPLAY=:0.0 xinput --set-prop "Multi touch Multi touch overlay device" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
                There should actually be 3 spaces between “Multi touch” and “Multi touch overlay device”. For some reason the board removes the extra spaces here.

                You can actually find the “name” of the device with this command DISPLAY=:0.0 xinput list
                Shows something like this:

                ⎡ Virtual core pointer id=2 [master pointer (3)]
                ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                ⎜ ↳ Multi touch Multi touch overlay device id=6 [slave pointer (2)]
                ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]

                Depending on what you have connected to your RPi. :)

                So, after creating the xin.sh I added that to the autostart file for LXDE:
                Like this:
                nano ~/.config/lxsession/LXDE/autostart
                Added at the end of the file.
                @/home/pi/xin.sh
                Restarted and it works. :)

                If you cant find it, make it and share it!
                Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                C 1 Reply Last reply Feb 25, 2017, 2:42 PM Reply Quote 2
                • C Offline
                  cowboysdude Module Developer @Snille
                  last edited by cowboysdude Feb 25, 2017, 2:45 PM Feb 25, 2017, 2:42 PM

                  @Snille Oddly enough you may have accidently solved my problem too! :) I’m getting a 32" IR touch frame… this may work for me as well!! So Thank you! :)

                  What kind of IR touch frame do you have and where did you get it?

                  Thanks!

                  S 1 Reply Last reply Feb 25, 2017, 2:59 PM Reply Quote 0
                  • S Offline
                    Snille Module Developer @cowboysdude
                    last edited by Feb 25, 2017, 2:59 PM

                    @cowboysdude I bought this one: https://www.aliexpress.com/item/32-points-32-Inch-IR-Multi-touch-overlay-kit-without-glass-for-Interactive-Table-Multi-Touch/1195149819.html
                    And I can actually “zoom” the on the mirror (in the electron browser) which means that multitouch works (at least for two points). :)

                    If you cant find it, make it and share it!
                    Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                    C 1 Reply Last reply Feb 25, 2017, 3:01 PM Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @Snille
                      last edited by cowboysdude Feb 25, 2017, 3:04 PM Feb 25, 2017, 3:01 PM

                      @Snille said in IR Frame doesn’t rotate:

                      @cowboysdude I bought this one: https://www.aliexpress.com/item/32-points-32-Inch-IR-Multi-touch-overlay-kit-without-glass-for-Interactive-Table-Multi-Touch/1195149819.html
                      And I can actually “zoom” the on the mirror (in the electron browser) which means that multitouch works (at least for two points). :)

                      That’s AWESOME … Thank you soooooooooo much… That’s the one I am ordering too!! WOW that’s just amazing how things work out…

                      What kind of glass did you get for it?

                      S 1 Reply Last reply Feb 25, 2017, 3:11 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        12/24
                        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