Waveshare '4A only GPIO touchscreen

HI, I’ve now mounted this display, with the Webconf drivers it works but the touchscreen doesn’t work… I don’t use it, but I would like to know if it’s normal or if I’m doing something wrong… Thanks as always

Can you provide:

  • content of /var/log/Xorg.0.log file
  • content of /boot/config.txt file
  • output of dmesg command

I’ll try as soon as possible… thanks

I’m obviously not an expert in linux, but normally by inserting the SD into the PC I was able to read at least the .txt configuration file… Win10 doesn’t open the SD… I’m sorry but I have posted screenshots…
Files.rar (4.0 MB)

Hi @Lanfranco ,

form Xorg.0.log:

[ 6.239] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse0)
[ 6.239] (II) No input driver specified, ignoring this device.
[ 6.239] (II) This device may have been added with another device file.

the touchscreen device driver isn’t correctly loaded.

Waveshare provide a tool to setup this display:

For your display, it’s this script:

DO NOT RUN THIS SCRIPT, it will create a big mess in the Zynthian setup.

But copy this file:

in /usr/share/X11/xorg.conf/10-evdev.conf

And :

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

And:

in /etc/X11/xorg.conf.d/99-calibration.conf

While /boot/config.txt should looks like this:

dtoverlay=waveshare35a:rotate=90
#dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
hdmi_force_hotplug=1
#max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0
hdmi_drive=2
display_rotate=1

Thank you very much… I got scared of everything you wrote… The problem is that I can’t open these files in order to paste the text… If I open from terminal I can paste with ctrl + ? . I also had Ubuntu installed in dual boot, but I had a problem and I will have to install it again…

If you have a PC running Ubuntu, you will be able to mount the microSD card and do all the manipulations from there with any kind of text editor.

Great… now I reinstall Ubuntu. You have been very kind. Thank you

/usr/share/X11/xorg.conf/10-evdev.conf
/usr/share/X11/xorg.conf.d/99-fbturbo.conf
these two files were not in the folder. I created and inserted them with sudo mv

/etc/X11/xorg.conf.d/99-calibration.conf
This file was there and I changed it.

… and then I added the lines on the config.txt file

Now I’ll try if it works… :thinking:

The display goes dark but no writing appears… I certainly did something wrong… :grimacing: