[SOLVED] C4 with VU5 Touchscreen

Post Reply
brk
Posts: 50
Joined: Tue Jul 21, 2015 9:19 pm
languages_spoken: english
ODROIDs: C1, C1+, C4
Has thanked: 13 times
Been thanked: 4 times
Contact:

[SOLVED] C4 with VU5 Touchscreen

Post by brk »

Hi There,
VU5 800x480 display's touchscreen is not working with C4s.
I tried to add pwm_ab pwm_ef otg_host_mode to config.ini but nothing changed.

Code: Select all

[generic]
; Auto Detection of Monitor settings based on your Screen information
display_autodetect=true

; HDMI Mode
; Resolution Configuration
;    Symbol             | Resolution
; ----------------------+-------------
;    "480x272p60hz"     | 480x272 Progressive 60Hz
;    "480x320p60hz"     | 480x320 Progressive 60Hz
;    "480p60hz"         | 720x480 Progressive 60Hz
;    "576p50hz"         | 720x576 Progressive 50Hz
;    "720p60hz"         | 1280x720 Progressive 60Hz
;    "720p50hz"         | 1280x720 Progressive 50Hz
;    "1080p60hz"        | 1920x1080 Progressive 60Hz
;    "1080p50hz"        | 1920x1080 Progressive 50Hz
;    "1080p30hz"        | 1920x1080 Progressive 30Hz
;    "1080p24hz"        | 1920x1080 Progressive 24Hz
;    "1080i60hz"        | 1920x1080 Interlaced 60Hz
;    "1080i50hz"        | 1920x1080 Interlaced 50Hz
;    "2160p60hz"        | 3840x2160 Progressive 60Hz
;    "2160p50hz"        | 3840x2160 Progressive 50Hz
;    "2160p30hz"        | 3840x2160 Progressive 30Hz
;    "2160p25hz"        | 3840x2160 Progressive 25Hz
;    "2160p24hz"        | 3840x2160 Progressive 24Hz
;    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
;    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
;    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
;    "640x480p60hz"     | 640x480 Progressive 60Hz
;    "800x480p60hz"     | 800x480 Progressive 60Hz
;    "800x600p60hz"     | 800x600 Progressive 60Hz
;    "1024x600p60hz"    | 1024x600 Progressive 60Hz
;    "1024x768p60hz"    | 1024x768 Progressive 60Hz
;    "1280x800p60hz"    | 1280x800 Progressive 60Hz
;    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
;    "1360x768p60hz"    | 1360x768 Progressive 60Hz
;    "1440x900p60hz"    | 1440x900 Progressive 60Hz
;    "1600x900p60hz"    | 1600x900 Progressive 60Hz
;    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
;    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
;    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
;    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
;    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
;    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
;    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
;hdmimode=1080p60hz
hdmimode=800x480p60hz

; Monitor output
; Controls if HDMI PHY should output anything to the monitor
monitor_onoff=false
;monitor_onoff=true

; Overscan percentage
; This value scales down the actual screen size by the percentage below
; valid range is 80 to 100
overscan=100

; SDR/HDR Configuration
; This forces SDR or HDR modes
; valid options are: sdr hdr auto
sdrmode=auto

; voutmode : hdmi or dvi
; hdmi / dvi
;voutmode=hdmi
voutmode=dvi

; HPD enable/disable option
; false / true
disablehpd=false

; Enable/Disable CEC
cec=true

; Hardkernel ODROID-VU7 support
; By default VU7 support is disabled
disable_vu7=true
;disable_vu7=false

; Maximum CPU frequency
; 100/250/500/667/1000/1200/1404/1500/1608/1704/1800/1908 (stock)/2016/2100
; max_freq_a55=1800


; Maximum number of CPU cores
maxcpus=4

; Wake-On-Lan support (0=disable, 1=enable)
; enable_wol=1


; Device Tree Overlay
overlay_resize=16384
overlay_profile=
;overlays="spi0 i2c0 i2c1 uart0"
overlays="uart0 uart3 pcf8563 pwm_ab pwm_ef otg_host_mode"

,[overlay_custom]
;overlays="i2c0 i2c1"

;[overlay_hktft32]
;overlays="hktft32"

;[overlay_hktft35]
;overlays="hktft35"
lsusb output is:

Code: Select all

root@soliterm:/media/boot# lsusb
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0eef:0005 D-WAV Scientific Co., Ltd By ZH851
Bus 001 Device 004: ID 072f:223b Advanced Card Systems, Ltd By ZH851
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Can anyone suggest a solution?
Best regards.

User avatar
tobetter
Posts: 9824
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 626 times
Been thanked: 1655 times
Contact:

Re: C4 with VU5 Touchscreen

Post by tobetter »

I wonder what makes you add pwm_ab pwm_ef otg_host_mode?
And what do you have when you run ls -l /dev/input/by-id?

brk
Posts: 50
Joined: Tue Jul 21, 2015 9:19 pm
languages_spoken: english
ODROIDs: C1, C1+, C4
Has thanked: 13 times
Been thanked: 4 times
Contact:

Re: C4 with VU5 Touchscreen

Post by brk »

Good point :)
https://wiki.odroid.com/accessory/disp ... roid-n2c4

Code: Select all

odroid@soliterm:~$ ls -l /dev/input/
total 0
crwxrwxrwx 1 root input 13, 64 Mar 23 16:29 event0
crw-rw---- 1 root input 13, 63 Mar 23 16:29 mice
odroid@soliterm:~$

brk
Posts: 50
Joined: Tue Jul 21, 2015 9:19 pm
languages_spoken: english
ODROIDs: C1, C1+, C4
Has thanked: 13 times
Been thanked: 4 times
Contact:

Re: C4 with VU5 Touchscreen

Post by brk »

It seems that I should play with tslib.
Any hints will be very much appreciated.

Best regards,

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

Re: C4 with VU5 Touchscreen

Post by odroid »

You had to change the "vu7" option in your config.ini file like this to activate the touchscreen. Note that all of our Vu7 and Vu5 series have used the same touchscreen controller and driver.

Code: Select all

; Hardkernel ODROID-VU7 support
; By default VU7 support is disabled
;disable_vu7=true
disable_vu7=false

brk
Posts: 50
Joined: Tue Jul 21, 2015 9:19 pm
languages_spoken: english
ODROIDs: C1, C1+, C4
Has thanked: 13 times
Been thanked: 4 times
Contact:

Re: C4 with VU5 Touchscreen

Post by brk »

Thank you so much, it worked and saved me from burden of working with tslib.

Since a while ago, u-boot took so much time to complete, I used to disable vu7.
But u-boot problem already solved and now enabling vu7 brings back the touchscreen.

Regards.
These users thanked the author brk for the post:
odroid (Thu Apr 28, 2022 6:48 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest