LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-01-2017, 05:44 PM   #1
MALDATA
Member
 
Registered: Mar 2005
Posts: 157

Rep: Reputation: 19
Touch screen only starts working after unplug/replug


Hi all,

I've got an issue with a touchscreen device. Specifically, the Argonaut M7. It has an HDMI connection for the display, and a USB connection for the touch device. The PC is running Arch, kernel version 4.11.9.

The display itself works perfectly fine, only the touch device is troublesome. The problem is that the touch device does not work if the PC reboots. When I log in, I can use the laptop's touchpad and pointing stick, but the touch device doesn't work. I have found that, if I move the mouse using the touchpad or pointing stick, unplug the USB cable, then plug it back in, the touchscreen will start working normally. Once it starts working, it appears to keep working until the PC reboots. After a reboot, it doesn't work until you repeat the unplug/replug procedure.

As a side note, this has been very hard to test, but it seems that sometimes it DOESN'T work after unplug/replug, but generally DOES seem to work if you move the mouse around with the touchpad or pointing stick before/during/after unplug/replug.

When the device is plugged in, it always has the following entry in lsusb:

Code:
$ lsusb | grep Micro
Bus 004 Device 003: ID 04d8:f724 Microchip Technology, Inc.
There is only a small difference in lsmod when the device is plugged in or not:

Code:
$ lsmod | grep evdev
evdev                  24576  18

$ lsmod | grep hid
hid_multitouch         20480  0
mac_hid                16384  0
usbhid                 45056  0
hid                   110592  2 usbhid,hid_multitouch
usbcore               208896  8 uvcvideo,usbhid,ehci_hcd,xhci_pci,btusb,i2400m_usb,xhci_hcd,ehci_pci
When plugged in, evdev is used by 18 things, as above, whereas when the device is unplugged, it is used by 17. None of the hid modules are used by a different number of things when plugged/unplugged. Note also that, when the device is plugged in, it is used by 18 regardless of whether it is in a working state or not.
When the system boots with the device plugged in, the following messages can be found in dmesg:

Code:
[    3.373407] input:                           TOUCH                as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:04D8:F724.0001/input/input8
[    3.373430] input:                           TOUCH                Pen as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:04D8:F724.0001/input/input10
[    3.373492] hid-multitouch 0003:04D8:F724.0001: input,hiddev0,hidraw0: USB HID v1.11 Mouse [                          TOUCH               ] on usb-0000:00:1d.0-1.1/input0
When I unplug it, I get this:
Code:
[   66.236372] usb 4-1.1: USB disconnect, device number 3
And then when I plug it back in, this:

Code:
[   71.048007] usb 4-1.1: new full-speed USB device number 6 using ehci-pci
[   71.155081] input:                           TOUCH                as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:04D8:F724.0002/input/input25
[   71.155473] input:                           TOUCH                Pen as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.1/4-1.1:1.0/0003:04D8:F724.0002/input/input27
[   71.156130] hid-multitouch 0003:04D8:F724.0002: input,hiddev0,hidraw0: USB HID v1.11 Mouse [                          TOUCH               ] on usb-0000:00:1d.0-1.1/input0
So it appears that the device is correctly recognized prior to unplugging/replugging, but it gets enumerated differently. Nevertheless, it doesn't work on boot, and may not work after unplug/replug unless you manipulate the other pointing devices somehow.

Thoughts? Please let me know if I can provide more info that would help. Thanks!
 
Old 11-02-2017, 05:55 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
What powers this usb device maybe would be my question.

At one time some distro's had a wait to let usb settle (I assume fully power up). Guess it could still be a timing issue at boot.

Won't hurt to try some other live distro's and kernel levels. Try this on other systems too.

??? just ideas.
 
Old 11-05-2017, 04:01 PM   #3
MALDATA
Member
 
Registered: Mar 2005
Posts: 157

Original Poster
Rep: Reputation: 19
Yeah, that was where we started too... one of the first things we did was put it on a powered USB hub, and try it on a different machine. Unfortunately, it worked fine when we put it on a Windows machine, and behaved the same (i.e., the touch device didn't work) on a different Linux system.

Thanks for thinking it over. Please let me know if you've got any other ideas for how to troubleshoot.
 
  


Reply

Tags
arch linux, touchscreen, usb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
evdev/xorg help? USB mouse/kbd: 2.6.24="just works">2.6.25="unplug/replug to work". GrapefruiTgirl Linux - Hardware 4 12-13-2012 02:23 PM
RHEL v.5 eth0 drops, only unplug/replug of cable fixes it lokke Linux - Networking 4 07-13-2007 12:09 PM
Must unplug & replug hub to get flash drive recognized MaxLinux Linux - Hardware 2 06-25-2007 11:53 PM
MX 1000 mouse with evdev not working after unplug/replug? eurleif Linux - Hardware 2 02-15-2006 01:52 PM
Unplug / Replug before USB mouse functions bobmccune Linux - Hardware 1 09-19-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration