[SOLVED] Problems getting touch to work on N2+

Post Reply
webber
Posts: 39
Joined: Tue May 05, 2020 8:10 am
languages_spoken: english
ODROIDs: C2 C4 N2 XU4
Has thanked: 10 times
Been thanked: 4 times
Contact:

[SOLVED] Problems getting touch to work on N2+

Post by webber »

Hi, I've been trying to set up the 3.5 inch LCD shield with the N2+ and have been having troubles getting the touchscreen to work. I've been following the instructions on https://wiki.odroid.com/accessory/displ ... ield/start and the legacy instructions here https://wiki.odroid.com/legacy/accessor ... lcd_shield. Neither of which seem to work. I can get as far as enabling the screen as a display but the touchscreen does not work and trying to calibrate it results in

Code: Select all

Error: No calibratable devices found.

I've tried on both ubuntu 18 and 20 and the same error occurs.

Does anyone know what might be going on?
Last edited by webber on Tue Jul 13, 2021 1:18 am, edited 1 time in total.

webber
Posts: 39
Joined: Tue May 05, 2020 8:10 am
languages_spoken: english
ODROIDs: C2 C4 N2 XU4
Has thanked: 10 times
Been thanked: 4 times
Contact:

Re: Problems getting touch to work on N2+

Post by webber »

After some more searching it seems that the sx865x driver is not installed. This is a fresh image from odroid and i have done the recommended full-upgrade. Is the screen just not supported for the N2+?

webber
Posts: 39
Joined: Tue May 05, 2020 8:10 am
languages_spoken: english
ODROIDs: C2 C4 N2 XU4
Has thanked: 10 times
Been thanked: 4 times
Contact:

Re: Problems getting touch to work on N2+

Post by webber »

Ah nevermind, i see it's just sx8650. Now I really don't know why it's not working

User avatar
odroid
Site Admin
Posts: 37802
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1925 times
Been thanked: 1186 times
Contact:

Re: Problems getting touch to work on N2+

Post by odroid »

Can you show us "lsmod" output?

webber
Posts: 39
Joined: Tue May 05, 2020 8:10 am
languages_spoken: english
ODROIDs: C2 C4 N2 XU4
Has thanked: 10 times
Been thanked: 4 times
Contact:

Re: Problems getting touch to work on N2+

Post by webber »

Sure, it looks like the touch driver was loaded successfully.

Code: Select all

Module                  Size  Used by
fuse                  110592  3
cpufreq_ondemand       20480  0
cpufreq_powersave      16384  0
cpufreq_userspace      16384  0
cpufreq_conservative   16384  0
sx8650                 16384  0
i2c_meson_master       20480  0
fb_hktft35             16384  1
fbtft                  53248  1 fb_hktft35
squashfs               49152  7
sch_fq_codel           20480  2
amvdec_vp9            122880  0
amvdec_vc1             65536  0
amvdec_real            45056  0
amvdec_mmpeg4          40960  0
amvdec_mpeg4           65536  0
amvdec_mpeg12         106496  0
amvdec_mmjpeg          28672  0
amvdec_mjpeg           40960  0
amvdec_h265           147456  0
amvdec_h264mvc         57344  0
amvdec_mh264          159744  0
amvdec_h264           147456  0
amvdec_avs             69632  0
stream_input          180224  8 amvdec_h265,amvdec_mh264,amvdec_h264mvc,amvdec_real,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs
decoder_common        188416  14 amvdec_h265,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mpeg4
firmware               28672  15 amvdec_h265,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,decoder_common,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mpeg4
media_clock            45056  9 amvdec_h265,amvdec_mh264,decoder_common,firmware,stream_input,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs
ip_tables              28672  0
x_tables               49152  1 ip_tables
ipv6                  466944  52
I'll also include the bottom portion of my config.ini file. The necessary drivers were not included in the overlay profiles so I had to add the one for hktft35

Code: Select all

; Device Tree Overlay
overlay_resize=16384
overlay_profile=hktft35
overlays="spi0 i2c0 i2c1 uart0"

[overlay_custom]
overlays="i2c0 i2c1"

[overlay_hktft32]
overlays="hktft32"

[overlay_hktft35]
overlays="hktft35 sx865x-i2c1"

joshua.yang
Posts: 525
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 37 times
Been thanked: 162 times
Contact:

Re: Problems getting touch to work on N2+

Post by joshua.yang »

How's the dmesg logs?

If the driver loaded properly, that should show like the below.

Code: Select all

root@odroid:~# dmesg | grep sx865
[   10.296746] sx8650 1-0049: sx8650_probe()
[   10.298842] sx8650 1-0049: swap_xy (1)
[   10.298845] sx8650 1-0049: invert_x (0)
[   10.298847] sx8650 1-0049: invert_y (1)
[   10.298849] sx8650 1-0049: gpio pendown (495)
[   10.298850] sx8650 1-0049: gpio reset (472)
[   10.298851] sx8650 1-0049: gpio irq (71)
[   10.303218] sx8650 1-0049: sx8650_probe ok! registered with irq (71)
Then I can use the touchscreen and can follow the instructions of the xinput_calibrator program.

webber
Posts: 39
Joined: Tue May 05, 2020 8:10 am
languages_spoken: english
ODROIDs: C2 C4 N2 XU4
Has thanked: 10 times
Been thanked: 4 times
Contact:

Re: Problems getting touch to work on N2+

Post by webber »

Hmmm, that doesn't seem right

Code: Select all

root@odroid:~# dmesg | grep sx865
[    9.981717] sx8650 1-0049: sx8650_probe()
[    9.983803] sx8650 1-0049: swap_xy (1)
[    9.983804] sx8650 1-0049: invert_x (0)
[    9.983806] sx8650 1-0049: invert_y (1)
[    9.983808] sx8650 1-0049: gpio pendown (495)
[    9.983809] sx8650 1-0049: gpio reset (472)
[    9.983809] sx8650 1-0049: gpio irq (71)
[    9.984109] sx8650: probe of 1-0049 failed with error -5

User avatar
odroid
Site Admin
Posts: 37802
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1925 times
Been thanked: 1186 times
Contact:

Re: Problems getting touch to work on N2+

Post by odroid »

Can you show us an output from this command?

Code: Select all

i2cdetect -y -r 1
You probably need to install a package to run that command.

Code: Select all

apt install i2c-tools

webber
Posts: 39
Joined: Tue May 05, 2020 8:10 am
languages_spoken: english
ODROIDs: C2 C4 N2 XU4
Has thanked: 10 times
Been thanked: 4 times
Contact:

Re: Problems getting touch to work on N2+

Post by webber »

Code: Select all

sudo i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I was digging through the kernel and I think it's supposed to be registered at address 49 right?

User avatar
odroid
Site Admin
Posts: 37802
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1925 times
Been thanked: 1186 times
Contact:

Re: Problems getting touch to work on N2+

Post by odroid »

I think the touchscreen controller seems to be damaged or interconnection could be wrong.
Or, the I2C host port on your N2+ might be dead.

We will try the same i2cdetect command today.

joshua.yang
Posts: 525
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 37 times
Been thanked: 162 times
Contact:

Re: Problems getting touch to work on N2+

Post by joshua.yang »

webber wrote:
Sat Jul 10, 2021 1:29 am

Code: Select all

sudo i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I was digging through the kernel and I think it's supposed to be registered at address 49 right?
Here's my command result.

Code: Select all

root@odroid:~# i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- --
50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Yes, address 49 is registered.
These users thanked the author joshua.yang for the post:
webber (Tue Jul 13, 2021 8:42 am)

User avatar
odroid
Site Admin
Posts: 37802
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1925 times
Been thanked: 1186 times
Contact:

Re: Problems getting touch to work on N2+

Post by odroid »

According to the I2C device scanning result, there could be a hardware problem.
Unplug and plug the LCD shied board a few times for the connector testing.

If it doesn't help, please contact "odroid at hardkernel dot com" with a URL of this thread.
They will help your RMA process if you purchased the board from our web-store directly.
Otherwise, contact your local distributor/reseller. Sorry for the inconvenience caused.
These users thanked the author odroid for the post:
webber (Tue Jul 13, 2021 8:42 am)

webber
Posts: 39
Joined: Tue May 05, 2020 8:10 am
languages_spoken: english
ODROIDs: C2 C4 N2 XU4
Has thanked: 10 times
Been thanked: 4 times
Contact:

Re: Problems getting touch to work on N2+

Post by webber »

ok, thanks for all the help. I suspected it was probably a hardware issue

Post Reply

Return to “3.5inch LCD Shield”

Who is online

Users browsing this forum: No registered users and 0 guests