-
Notifications
You must be signed in to change notification settings - Fork 787
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
Screen rotation #34
Comments
How to modify the display orientation
|
Does this also rotate the touchscreen as currently, I'm using: |
@deanfantastic It won't works as it's not the same SPI interface, if I found a solution I will post it here :) |
Thank you. |
These links might help you: |
Adding this:
To |
Oh I'm not using a PiScreen, some kind of knock-off. Tried all the above with SwapAxes and SwapXY but neither were effective.
and
|
Yeah it didn't works, you should try my solution.
|
On my side it works flawlessly ! |
Viv, please publish your config.txt setting for dtoverlay=tft35a parameter and the entire /etc/X11/xorg.conf.d/99-calibration.conf contents. Thanks. |
Not intuitive at all. The documentation is pathetic. Sorry, goodtft, but it is true. I started with a fresh raspbian install and LCD-show from github. I stood the display up such that the power chord and HDMI adapter are pointing up (the way I want it when I deploy it). This setting in /boot/config.txt worked for me:
I observed: rotate=0 top of screen is at physical left It matters not what the contents of /etc/X11/xorg.conf.d/99-calibration.conf are. I left the file as it was installed except following the touch-screen calibration instructions. |
My screen display orientation was solved. But, my touchpad was inverted when I used one of my Tk applications and the desktop in general. Viv's solution worked for me. goodtft, your documentation sorely needs a refresh. |
@texadactyl Sorry for being late, really happy if my solution worked for you! You can close this one, and if you think documentation needs a refresh please open a new one with info related to. |
deanfantastic was the originator and, therefore, should close it. I don't know if this person has resolved their issues. |
Okay, I suspect that deanfantastic lost interest in the thread he started. I tried to close this issue but I am not permitted to. |
@VivienGiraud and @texadactyl This helped me out a lot! Thank you for documenting your solutions! |
this saved my sanity... both fixes worked... This setting in /boot/config.txt and /etc/X11/xorg.conf.d/99-calibration.conf PERFECT! Thanks! |
There is no way to invert the x and y for the framebuffer? |
Is it possible to reopen this issue? I'm trying to rotate touchscreen of tft35a using an eglfs application but didn't work. Even using EVDEV or TSLIB params. |
@carpajr If you want assistance, you have to provide more details than "didn't work". WHAT is going wrong? Rotated screen? Unexpectedly zoomed in or out? What specific remedies have you tried? By the way, this vendor will provide no solution for you. It's up to you to figure it out like everyone else in this stream of messages. My messages describe what I did to make it work on an RPi. My project for RPi and this TFT is here, for whatever it is worth: https://github.com/texadactyl/rpi_clock Also see @dbvandy commented on Jan 29, 2018 who seems to have done the same thing as me. Trial and error! (=: |
@texadactyl, sorry. I've started to write and forgot to explain what happens. I tried several ways to touchscreen work and these boot/config.txt lines were effective: However, set up the screen rotation became a real challenge for eglfs applications. I tried several modifications in dtoverlay and decided to use ts_calibration, but also didn't work. QT_QPA_FB_TSLIB=1 So, I tried to use ev_dev with some parameters, but once again, didn't work. The rotation configuration doesn't work. |
My entire Raspberry Pi 2 /boot/config.txt after filtering out all of the comment lines:
Before on settling on rotate=270, I experimented with rotate values and observed the following:
I used the supplied goodtft program for calibration. I did not hand-edit any calibration parameters in /etc/X11/xorg.conf.d/99-calibration.conf. Here is the final file for me:
Then, sudo reboot. Good luck. |
I have no file called "/etc/pointercal" on my RPi. I am using Raspbian. What are you using? My app is not based on QT. Instead, I am using Tk/tkinter to access the TFT. |
@texadactyl, |
You will have a challenge to train EGL and OpenGL in using goodtft hardware. This TFT vendor supports only Xorg in combination with their custom Xorg code. You probably have seen this: https://doc.qt.io/qt-5/embedded-linux.html |
I didn't know about the limitation when I bought the display, but life is short to complain about that. :) Yes, I saw the docs. There are some tricks to set up a touch, but none of them worked with tft35a. |
It's working thank you 😃👍 |
It's working fine. thx |
Thanks You Work Find.
|
Hi
I've tried editing /boot/cmdline.txt and /bott/config.txt but neither are affecting a screen rotation of the GPIO 3.5" LCD screen with touch. The HDMI output does rotate but I want the LCD to rotate the same way.
How can I make this work as I'm very out of my depth on this.
Thanks
Dean
The text was updated successfully, but these errors were encountered: