Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Problem with Local UI on 3.5 inch TFT display
#1
Hi,

I have bought this 3,5 inch display from ali:
https://www.aliexpress.com/item/32906213...4c4dC7QVCP


I have followed instructions to install appropriate driver:
https://github.com/goodtft/LCD-show/blob.../README.md

After installing driver, display shows command line, not GUI. Also GUI via web browser is somehow wrong, does not display everything like before and I got this error: MPD error openMpdSock() failed.
Can anybody help?
thanks
Reply
#2
If the driver installation altered system files for example /boot/config.txt, /boot/cmdline.txt, /etc/rc.local, ... it might be causing the issues you are experiencing. That would suggest the driver configuration is not compatible with moOde.

Maybe post an issue to the driver maintainers Git repo asking if any Linux boot or startup files are altered.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(08-12-2019, 08:45 PM)Tim Curtis Wrote: If the driver installation altered system files for example /boot/config.txt, /boot/cmdline.txt, /etc/rc.local, ... it might be causing the issues you are experiencing. That would suggest the driver configuration is not compatible with moOde.

Maybe post an issue to the driver maintainers Git repo asking if any Linux boot or startup files are altered.

Thanks, I'm going to try it.
Reply
#4
@jurkodj

I just looked at the installation instructions on github. 

Among other things, the installation script LCD35-show creates its own config.txt and cmdline.txt files and copies them into /boot, thus replacing moOde's like-named files.

Because of the way the script creates its config.txt and cmdline.txt files, It ought to be possible to modify moOde's instead but I haven't looked at this carefully and I don't have a similar display with which to test the result. 

Regards,
Kent
Reply
#5
(08-14-2019, 11:56 AM)TheOldPresbyope Wrote: @jurkodj

I just looked at the installation instructions on github. 

Among other things, the installation script LCD35-show creates its own config.txt and cmdline.txt files and copies them into /boot, thus replacing moOde's like-named files.

Because of the way the script creates its config.txt and cmdline.txt files, It ought to be possible to modify moOde's instead but I haven't looked at this carefully and I don't have a similar display with which to test the result. 

Regards,
Kent

Hi Kent,

thanks for your effort. I will try to modify moOde's config and cmdline on fresh installation to test it. The installation script just replace those files, without any backup or care about anything than default Raspbian settings.

thanks
Juraj
Reply
#6
Finally I manage to get it working:

Update config.txt:
sudo nano /boot/config.txt

dtparam=spi=on
dtoverlay=joy-IT-Display_Driver-35a-overlay:rotate=270,swapxy=1
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=1
hdmi_ignore_edid=0xa5000080

disable_splash=1
disable_overscan=1
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt
framebuffer_width=480
framebuffer_height=320
framebuffer_aspect=-1

for Pi4 add also

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#
#dtoverlay=vc4-fkms-v3d <----This setting must be commented out with a #
max_framebuffers=2

Then update cmdline.txt:
sudo nano /boot/cmdline.txt

add to the end:

fbcon=map:10


Update 99-calibration.conf:
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "160 3723 3896 181"
Option "SwapAxes" "0"
EndSection

Create 99-fbturbo.conf:
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf

Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbdev"
Option "fbdev" "/dev/fb1"

Option "SwapbuffersWait" "true"
EndSection

Then download driver:

wget anleitung.joy-it.net/upload/joy-IT-Display_Driver-35a-overlay.dtb
sudo cp joy-IT-Display_Driver-35a-overlay.dtb /boot/overlays/joy-IT-Display_Driver-35a-overlay.dtbo

Touch calibration:
sudo apt-get install xserver-xorg-input-evdev
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf

Then:
sudo reboot

Just activate Local UI display and it's done.
Reply
#7
(09-05-2019, 01:29 PM)jurkodj Wrote: dtparam=spi=on
dtoverlay=joy-IT-Display_Driver-35a-overlay:rotate=270,swapxy=1
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=1
hdmi_ignore_edid=0xa5000080

disable_splash=1
disable_overscan=1
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt
framebuffer_width=480
framebuffer_height=320
framebuffer_aspect=-1
Hi,
I was trying to follow your experience, but unfortunately i wasn´t that lucky ...
Using your driver i have image but i´m not able to get to the gui to activate the web interface, because there´s something in your options above that blows mpd service and gui becomes unresponsive ... 
Can you please very or post your complete file (config.txt).

My screen has the same driver and i had a tutorial to install it that is different from yours.
This is mine; https://www.joy-it.net/en/products/RB-TFT3.5

Instaling my driver i dont get image ... Big Grin
Because X is not started, in moode its not necessary, can someone please advise in this ? Do i have to install some xserver? (lxde ? Not really experienced in linux sorry)

Tried this with 6.1 and 6.2 Using a raspberry pi 3 with iqaudio dac.

Thank for your help.
Reply
#8
After installing RPD following a guide with all the things necessary, here´s what happens:

If i install the driver by joy-it document, there´s no image.
If i use waveshare drivers, i get image but blows the moode web interface and the mpd service, as happens with the jurkodj script ( they look similar)

can u please verify if there´s nothing else you forgot to mention Big Grin

Thanks
Reply
#9
(09-08-2019, 12:15 AM)Correia Wrote:
(09-05-2019, 01:29 PM)jurkodj Wrote: dtparam=spi=on
dtoverlay=joy-IT-Display_Driver-35a-overlay:rotate=270,swapxy=1
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=1
hdmi_ignore_edid=0xa5000080

disable_splash=1
disable_overscan=1
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt
framebuffer_width=480
framebuffer_height=320
framebuffer_aspect=-1
Hi,
I was trying to follow your experience, but unfortunately i wasn´t that lucky ...
Using your driver i have image but i´m not able to get to the gui to activate the web interface, because there´s something in your options above that blows mpd service and gui becomes unresponsive ... 
Can you please very or post your complete file (config.txt).

My screen has the same driver and i had a tutorial to install it that is different from yours.
This is mine; https://www.joy-it.net/en/products/RB-TFT3.5

Instaling my driver i dont get image ... Big Grin
Because X is not started, in moode its not necessary, can someone please advise in this ? Do i have to install some xserver? (lxde ? Not really experienced in linux sorry)

Tried this with 6.1 and 6.2 Using a raspberry pi 3 with iqaudio dac.

Thank for your help.

Hi,

here is my complete config.  I had the same problem as you mentioned (no GUI, but after some tryouts and fails it is actually working Smile ) Installation was done according to my last post.




/boot/config.txt

dtparam=spi=on
dtoverlay=joy-IT-Display_Driver-35a-overlay:rotate=270,swapxy=1
dtparam=audio=off
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_drive=1
hdmi_ignore_edid=0xa5000080
disable_splash=1
disable_overscan=1
#hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=audio=off
dtoverlay=iqaudio-dacplus
#dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
framebuffer_width=480
framebuffer_height=320
framebuffer_aspect=-1



/boot/cmdline.txt

net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=17869b7d-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10



/usr/share/X11/xorg.conf.d/99-calibration.conf

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "160 3723 3896 181"
        Option  "SwapAxes"      "0"
EndSection



/usr/share/X11/xorg.conf.d/99-fbturbo.conf

Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "fbdev"
        Option          "fbdev" "/dev/fb1"
        Option          "SwapbuffersWait" "true"
EndSection
Reply


Forum Jump: