• 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 Overlay - pulling hair out !

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 4 Posters 1.1k Views 3 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.
  • E Offline
    emailuser
    last edited by May 20, 2020, 12:47 PM

    Hi everyone … i have built my MM frame and am using a old 32"LCD TV , sitting on top i have a 32" IR Touch overlay … but the overlay responds to touch in landscape mode - i have a pi4 and have rotated the TV screen using DISPLAY=:0 xrandr --output HDMI-1 --rotate left , but despite looking at loads of forums / websites nothing seems to work to make the touch overlay rotate as well … my overlay is Bus 001 Device 003: ID 1ff7:0013 CVT Electronics.Co.,Ltd CVTouch Screen (HID)

    Any help greatly appreciated !!!

    S 1 Reply Last reply May 20, 2020, 1:19 PM Reply Quote 0
    • S Away
      sdetweil @emailuser
      last edited by May 20, 2020, 1:19 PM

      @emailuser well, here is a concise description of how to do it with a pi screen and overlay…
      https://www.circuitbasics.com/raspberry-pi-touchscreen-calibration-screen-rotation/
      two different configs…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • E Offline
        emailuser
        last edited by May 20, 2020, 2:54 PM

        @emailuser said in IR Overlay - pulling hair out !:

        DISPLAY=:0 xrandr --output HDMI-1 --rotate left

        Thanks Sam … but those instructions are for a touchscreen – i have an IR USB overlay which enables touch on the screen ,
        as an example on the instruction
        Enter sudo nano /etc/modules at the command prompt to edit the file. Go to the line for the ads7846_device parameters and move the cursor to the right to find it: - i dont have that in that file

        1 Reply Last reply Reply Quote 0
        • F Offline
          fordi
          last edited by fordi Oct 12, 2020, 10:33 AM Oct 12, 2020, 10:33 AM

          I’m having the same issues, the touch overlay works perfectly in landscape mode but my mirror is designed to be in portrait mode.
          If i find a solution i will post on here. I have contacted manufacturers to see if they can help also.

          1 Reply Last reply Reply Quote 0
          • S Offline
            Snille Module Developer
            last edited by Snille Oct 12, 2020, 11:19 AM Oct 12, 2020, 10:45 AM

            Hi, I had the same issue when I built my mirror… Here is how I solved it. Made a .sh script with all the information: :)

            #!/bin/bash
            
            # 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 form a console: 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-pi/autostart
            # Added at the end of the file.
            # @/home/pi/xin.sh
            # Restarted and it works.
            #
            DISPLAY=:0.0 xinput --set-prop "Multi touch   Multi touch overlay device" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
            
            

            Maybe you guys can use it some how? :)

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

            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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy