-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When changing screen orientation the touch points are not moving #928
Comments
Same problem... |
I guess you need to rotate your touch input device as well (possibly recalibrate it). In some cases the touch interface doesn't get rotated if the image is rotated. I don't have any influence on how the touch is handled, since that is all handled by Raspbian and electron. |
Try this: But use lcd_rotate instead as display_rotate doesn’t rotate the touchscreen input. |
If you use a "generic" chinese display, then maybe this helps: |
Since there is no new activity here from OP I'm closing this. lcd_rotate should work. |
If you're using the BTT pi tft5 you need to use lcd_rotate=2 and display_rotate=2 to flip it. |
here is the solution for those who need it : 1st u need to go to /boot and edit config.txt at the very bottom add: Note: The angle of rotation is counted clockwise. display_lcd_rotate=0 (landscape) display_lcd_rotate=1 (90 degress) display_lcd_rotate=2 (180 degrees) display_lcd_rotate=3 (270 degrees) Note2: I'm using the 180 degrees option in this example so change to your liking. after it reboots you will see touchscreen not responsive because we just rotated the lcd display but not the touch screen. to rotate the touchscreen simply do the following steps: find the libinput file by doing u can now edit it will be something like: in the Section "InputClass" find the Identifier that says: "libinput touchscreencatchall" and below the line MatchIsTouchScreen "on" add the following line: Note1:
Note2: Again i'm using the 180 degrees in this example change to your liking from Note1 section save reboot everything should work properly |
These instructions don't work for Raspberry Pi 4. The You can use xrandr to rotate the screen, but that doesn't get persisted. Instead, you should add an X config file which defines a rotated monitor. Go to the X config directory: Create/edit a monitor conf file: Assuming your display resolution is 800x480, the contents of the file should be:
Save, then edit the Save, reboot, and OctoDash should now be rotated on your Pi 4. Note: the "Identifier" in
|
What doesn't work?
When changing screen orientation the touch points are not moving. In my case I am using a 2.8 inch screen which is natively set to be portrait at 240x320 upon rotate to landscape the ui looks good but the touch screen inputs are where the icons were originally.
What did you already try?
Tried to update the software. I've tried rotating several different ways with the same results.
General Information:
Octodash v2
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: