Read the statement by Michael Teeuw here.
IR Frame doesn't rotate
-
@strawberry-3.141 Yes, I read that to, but it may also mean like vertical like a monitor (normal landscape) and horizontal like a table (but still in landscape). :)
-
@Snille Sorry, but I hade a few problems in these weeks, so I didn’t had the chance to fix it…
I asked the manufacturer (thank you @cowboysdude!) and they did send me a driver, but they’ve sent it with 3 extensions: .pkg, .exe, .apk and I’ve no idea how to open them… I have Debian 8 Jessie, by the way.
Any suggestions? :anguished: -
@AlessandroRa
Hm, these are drivers for Mac (pkg), Android (apk), Windows (exe)Maybe you can extract the pkg file and gather the driver files?
-
@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. -
@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 ;)
-
@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!
-
@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? :) -
Edit the file:
sudo crontab -e
Add line to file (here a python script):@reboot python3 /home/pi/Desktop/example.py &
-
@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. :) -
@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!