[SOLVED] Touch screen not working in Ubuntu?

Moderators: mdrjr, odroid

[SOLVED] Touch screen not working in Ubuntu?

Unread postby klemperer » Mon Dec 11, 2017 10:48 am

I bought a 7inch HDMI LCD from Waveshare (https://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)). The display works well for my Odroid C1 in Ubuntu 16.04. However, the touch screen gets no response.

The LCD was plugged into an USB hub with external power, so the current shouldn't be a problem. The driver dwav_usb_mt was found in the system, and the touch screen was recognized too.

Could anyone help? Many thanks!

Code: Select all
root@odroid:~# lsusb
Bus 001 Device 004: ID 1b3f:2007 Generalplus Technology Inc.
Bus 001 Device 008: ID 0bc2:2321 Seagate RSS LLC Expansion Portable
Bus 001 Device 007: ID 0eef:0005 D-WAV Scientific Co., Ltd
Bus 001 Device 006: ID 08bb:2704 Texas Instruments Audio Codec
Bus 001 Device 005: ID 1997:2433
Bus 001 Device 003: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg:
Code: Select all
[   13.012995] input: WaveShare WaveShare Touchscreen as /devices/lm1/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/input/input5
[   13.016050] usbcore: registered new interface driver dwav_usb_m

lsmod:
Code: Select all
dwav_usb_mt             4173  0
klemperer
 
Posts: 6
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english

Re: Touch screen not working in Ubuntu?

Unread postby odroid » Mon Dec 11, 2017 11:16 am

Edit /media/boot/boot.ini file to enable a third party touchscreen controller.

Before
setenv disable_vu7 "false" # false

After
setenv disable_vu7 "true" # false
User avatar
odroid
Site Admin
 
Posts: 25827
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Touch screen not working in Ubuntu?

Unread postby klemperer » Mon Dec 11, 2017 11:42 am

odroid wrote:Edit /media/boot/boot.ini file to enable a third party touchscreen controller.

Before
setenv disable_vu7 "false" # false

After
setenv disable_vu7 "true" # false


Tried but still no hidraw created in the /dev for the touch screen.
Code: Select all
Module                  Size  Used by
hid_multitouch          9233  0
dwav_usb_mt             4173  0
klemperer
 
Posts: 6
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english

Re: Touch screen not working in Ubuntu?

Unread postby odroid » Mon Dec 11, 2017 11:48 am

"dwav_usb_mt" should not be loaded.
Can you add "dwav_usb_mt" in the blacklist?

Your touchscreen should work with "hid_multitouch" driver.
Test it on a normal x86 Ubuntu system.
User avatar
odroid
Site Admin
 
Posts: 25827
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Touch screen not working in Ubuntu?

Unread postby klemperer » Mon Dec 11, 2017 12:00 pm

Just removed the "dwav_usb_mt.ko" and reboot. The hid_multitouch wasn't loaded after boot complete, but the file hid-multitouch.ko does exists in the lib/modules/{uname}/...
I tried to load the driver using insmod, still no luck
Module Size Used by
hid_multitouch 9233 0
klemperer
 
Posts: 6
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english

Re: Touch screen not working in Ubuntu?

Unread postby odroid » Mon Dec 11, 2017 12:07 pm

Can you show me full dmesg output?

Which Ubuntu image do you use? Do you use v2.2?
https://wiki.odroid.com/odroid-c1/os_im ... ntu/ubuntu
User avatar
odroid
Site Admin
 
Posts: 25827
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Touch screen not working in Ubuntu?

Unread postby klemperer » Mon Dec 11, 2017 12:08 pm

In the post viewtopic.php?f=99&t=18131#p119800, someone said the PID/VID of Waveshare LCD Screen was in the ignored list in the hid driver. However, I read the code for hid-core.c and found nothing about that.
klemperer
 
Posts: 6
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english

Re: Touch screen not working in Ubuntu?

Unread postby klemperer » Mon Dec 11, 2017 12:18 pm

I upgraded the OS from 14.04 using do-release-upgrade
Attachments
dmesg.txt
(58.71 KiB) Downloaded 7 times
klemperer
 
Posts: 6
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english

Re: Touch screen not working in Ubuntu?

Unread postby odroid » Mon Dec 11, 2017 1:54 pm

You are using a very old image and kernel which doesn't support "disable_vu7" option.
Try the latest image.
https://wiki.odroid.com/odroid-c1/os_images/ubuntu/v2.2
User avatar
odroid
Site Admin
 
Posts: 25827
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Touch screen not working in Ubuntu?

Unread postby klemperer » Tue Dec 12, 2017 3:14 pm

Thank you, odroid. After building the latest kernel, the touch screen works well now.
klemperer
 
Posts: 6
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests