Hey everyone, as you can guess, I'm having a problem with my raspberry pi, and I was hoping someone could help me.
Let me start off by saying that I've no coding experience myself, I'm simply trying to follow guides as much as I can, and when I run into problems like now, I can only ask for help.
What I'm trying to do is I'm trying to add a touchscreen to my raspberry pi, that's installed with Octoprint, so I can control octorpint through the touchscreen. The guide I'm following is this one.
In that guide, the writer is using an Adafruit touchscreen, but I'm using a different type of touchscreen. Because of that I'm not able to fully follow the guide 1:1
The touchscreen that I'm using uses this website for driver installations. So far I've been able to successfully install the driver, and rotate the screen, but that's where the problem comes up. I need to calibrate the screen, but I can't figure out how I can run the calibration script. The website mentions "Click the Men button on the task bar, choose Preference -> Calibrate Touchscreen." but I'm guessing that they're using a raspbian instance for this. I'm using an Octoprint instance, so I can't actually open a menu and run the program. So I need to figure out a way to start the calibration program through commands, but I've no idea on how to do this.
The guide I'm following is able to do this by issuing
If I use the "Rotate clockwise 90 degrees" line of code, the screen properly moves left and right, but up and down are inversed. If I use the "Rotate counterclockwise 90 degrees" the up and down move correctly, but the left and right are inversed. And if I use the "Rotate 180 degrees" then down is left, left is down, up is right and right is up. So now I can start pulling my hair on how I can find out how to solve that.
It is really important that you make a backup of the /boot/config.txt and /etc/X11/xorg.conf.d/99-calibration.conf files by making a copy of them with another name such as config.txt.bak or 99-calibration.conf.bak
Thank you. I'll be trying this out in the coming days. I hope it'll work so I can finally get this touchscreen properly working. I stupidly though it'd be a rather simple plug and play, but ofcourse that hasn't been the case.
I just use the Android phone app, which works fantastic to control octoprint, then when the print completes if late at night I just turn the printer off with the sonoff device app.