Sandbird
Posts: 29
Joined: Tue Feb 10, 2015 12:45 pm

Waveshare 3.2" V4

Fri Mar 11, 2016 5:51 pm

I just reinstalled Raspbian to my pi1 and i am trying to set up my Touch LCD display again(Waveshare 3.2" V4) with the new method.
My config.txt is like this:

Code: Select all

dtparam=spi=on
dtoverlay=waveshare32b:rotate=270,swapxy=1
hdmi_cvt=320 240 60 1 0 0 0
hdmi_group=2
hdmi_mode=87
My cmdline.txt:

Code: Select all

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
And my modules file has everything disabled

Code: Select all

# at boot time, one per line. Lines beginning with "#" are ignored.
#i2c-dev
The problem that i am facing is that i cant get a proper touch register on the display. No matter how i rotate the display, the touch is always reversed in a way that right is up, left is down etc.
How can i fix this ? swapxy doesnt seem to do anything.

-Thanks

Sandbird
Posts: 29
Joined: Tue Feb 10, 2015 12:45 pm

Re: Waveshare 3.2" V4

Fri Mar 11, 2016 6:23 pm

Managed to make it work by editing this file: /usr/share/X11/xorg.conf.d/99-calibration.conf
and change it to this:

Code: Select all

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "3900 240 240 3900"
        Option "InvertY" "false"
        Option "GrabDevice" "True"
        Option "SwapAxes" "True"
        Option "InvertX" "false"
EndSection

Return to “Troubleshooting”