09-05-2019, 01:29 PM
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.
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.