I use OctoPrint 1.4.0 on a Raspberry 3B+ (OctoPi 0.17.0) with a 3,5" GPIO connected touchscreen (320x480, XPT2046, ILI9486) and the latest TouchUI-autostart script.
The problem is that I have to rotate the screen to 270 degrees and if I do that I have two offset TouchUI logos when TouchUI is starting and also duplicated menu bars (on the top and on the bottom of TouchUI). If I scroll on the screen I will also get duplicated elements all over the screen, so that I am not able to use TouchUI.
If I rotate 90 or 180 degrees I don't have these two TouchUI logos at startup process and no duplicated menu bars or other elements, so in this case I can use TouchUI without any problems.
I only have these problems when rotating the LCD to 270 or 0 degrees.
As drivers I tested the following ones, all with the same problems:
Does anyone know about this issue and perhaps how to fix it?
Sorry, no problem, here is the content of my /boot/config.txt after the installation of the elecrow driver.
The commented lines before were the entries of the goodtft and the waveshare driver which cause the same problem if the screen is rotated 270 or 0 degrees.
These two "dtoverlay" entries were made automatically by the elecrow driver installation.
Now I commented out the first one because the second dtoverlay statement contains the driver name.
From the discussion provided by your link I also added the same speed and fps settings but I have the same problems with TouchUI autostart via chromium. If I rotate 90 or 180 degrees then everything is working ok, if I rotate 270 or 0 degrees I have duplicated elements/menus on the screen...
So this one is the only dtoverlay statement in the /boot/config.txt now:
Basically, there are two complete systems. There's the console-based system at this level with the config.txt and then there is the completely-separate configuration for the X11 windows system as seen in the Desktop.
If your TouchUI instructions had you install the GUI-based windowing system then it's possible that there is some redundancy perhaps in all these drivers. The conversation that I had with Lady Ada on that issue highlight this fact. I guess we would need to know if you also installed the Desktop as part of your TouchUI setup.
I installed lightdm on the octopi system before installing "TouchUI autostart" because with the working drivers I used for this tft there is only the "xinput_calibrator" calibration tool available which only works if a X11 system is installed.
I didn't use the option to boot on the X11 window system I only booted to the console.
What I also noticed is that at booting to the console - if I rotate the tft by 270 or 0 degrees - the cursor is blinking on the top left of the tft and at login status I have a "octopi login:" line at the bottom without a blinking cursor and one on the top with a blinking cursor.
If I rotate the screen by 90 or 180 degrees then the cursor stays on the bottom line and I don't have a duplicated login line.
I installed TouchUI-autostart with the install script from the helpers directory but I think then it will be using the X11 window system if it is installed/available?