raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.15k stars 5k forks source link

Mouse event from touchscreen stops #2533

Closed lbenini closed 4 years ago

lbenini commented 6 years ago

We have found a particularly strange problem with RPI3 and a touchscreen. On a "macro" level the touchscreen stops to work "after a while" We have done quite a lot of tests that hopefully can help:

  1. The problem exists on Jessie and Stretch (both updated)
  2. On Jessie the problem exists with and without X

    (Qt application in eglfs mode has the same behavior); on Stretch we have not tested without Xorg

  3. The majority of the tests we have done are on an iiyama PROLITE T2252MSC-B1, but is not isolated to Quanta Controller
  4. We have used already the monitor and the touch with success with other Linux-based boards without any problem
  5. Normally the kernel send messages on both /dev/input/mouse? and /dev/input/event? but when the problem appears the /dev/input/mouse? stops receiving messages. Touch messages continue to be received on /dev/input/event?
  6. With an additional USB mouse connected is it possible to send mouse events also when is stopped
  7. Powering off and on the touchscreen doesn't resolve the problem
  8. We have been able to isolate and reproduce the problem moving a finger in a circular fashion on the screen (see video) for a while
  9. The problem "disappears" if we touch with two fingers (it will anyway represent himself after a while)

We have prepared a video that shows the situation. I cannot upload here so you can find it here: https://www.youtube.com/watch?v=PhPwJ6Vm40k The terminal on the left shows the touch events, the one in the middle show the mouse events and one the right the mouse events coming only from the USB mouse

root@raspberrypi:~# tvservice -n
device_name=IVM-PL2252MT
root@raspberrypi:~# lsusb
Bus 001 Device 004: ID 0408:3008 Quanta Computer, Inc.
Bus 001 Device 006: ID 413c:2107 Dell Computer Corp.
Bus 001 Device 005: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 001 Device 007: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@raspberrypi:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.34-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1110 SMP Mon Apr 16 15:18:51 BST 2018
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] On node 0 totalpages: 242688
[    0.000000] free_area_init_node: node 0, pgdat 80c84e40, node_mem_map ba3a1000
[    0.000000]   Normal zone: 2133 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 242688 pages, LIFO batch:31
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ba34a000 s38720 r8192 d22720 u69632
[    0.000000] pcpu-alloc: s38720 r8192 d22720 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=0e663c18-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait plymouth.ignore-serial-consoles
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 940236K/970752K available (7168K kernel code, 575K rwdata, 2072K rodata, 1024K init, 706K bss, 22324K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                   lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c8fd4c   ( 576 kB)
                      .bss : 0x80c96f4c - 0x80d478b4   ( 707 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 25231 entries in 74 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000023] Switching to timer-based delay loop, resolution 52ns
[    0.000278] Console: colour dummy device 80x30
[    0.000828] console [tty1] enabled
[    0.000865] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000905] pid_max: default: 32768 minimum: 301
[    0.001232] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001264] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002214] Disabling memory control group subsystem
[    0.002313] CPU: Testing write buffer coherency: ok
[    0.002719] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003114] Setting up static identity map for 0x100000 - 0x10003c
[    0.003247] Hierarchical SRCU implementation.
[    0.003900] smp: Bringing up secondary CPUs ...
[    0.004602] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005349] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.006079] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.006182] smp: Brought up 1 node, 4 CPUs
[    0.006253] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006275] CPU: All CPU(s) started in HYP mode.
[    0.006293] CPU: Virtualization extensions available.
[    0.007163] devtmpfs: initialized
[    0.017722] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.017971] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018016] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.018592] pinctrl core: initialized pinctrl subsystem
[    0.019352] NET: Registered protocol family 16
[    0.022031] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.026796] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.026827] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027051] Serial: AMBA PL011 UART driver
[    0.028684] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.029161] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.060177] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb813000, dmachans=0x1
[    0.061615] SCSI subsystem initialized
[    0.061852] usbcore: registered new interface driver usbfs
[    0.061920] usbcore: registered new interface driver hub
[    0.062020] usbcore: registered new device driver usb
[    0.070082] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-04-16 18:16
[    0.071459] clocksource: Switched to clocksource arch_sys_counter
[    0.148850] VFS: Disk quotas dquot_6.6.0
[    0.148962] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.149166] FS-Cache: Loaded
[    0.149378] CacheFiles: Loaded
[    0.158142] NET: Registered protocol family 2
[    0.158880] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.159010] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.159212] TCP: Hash tables configured (established 8192 bind 8192)
[    0.159358] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.159419] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.159664] NET: Registered protocol family 1
[    0.160119] RPC: Registered named UNIX socket transport module.
[    0.160143] RPC: Registered udp transport module.
[    0.160162] RPC: Registered tcp transport module.
[    0.160181] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.161749] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.164507] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.172440] FS-Cache: Netfs 'nfs' registered for caching
[    0.173046] NFS: Registering the id_resolver key type
[    0.173096] Key type id_resolver registered
[    0.173116] Key type id_legacy registered
[    0.173145] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.175012] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.175160] io scheduler noop registered
[    0.175182] io scheduler deadline registered (default)
[    0.175476] io scheduler cfq registered
[    0.175498] io scheduler mq-deadline registered
[    0.175518] io scheduler kyber registered
[    0.177781] BCM2708FB: allocated DMA memory fad00000
[    0.177824] BCM2708FB: allocated DMA channel 0 @ bb813000
[    0.227764] Console: switching to colour frame buffer device 228x61
[    0.258232] bcm2835-rng 3f104000.rng: hwrng registered
[    0.258502] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.259190] vc-sm: Videocore shared memory driver
[    0.259597] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.269444] brd: module loaded
[    0.278490] loop: module loaded
[    0.278625] Loading iSCSI transport class v2.0-870.
[    0.279441] libphy: Fixed MDIO Bus: probed
[    0.279654] usbcore: registered new interface driver lan78xx
[    0.279874] usbcore: registered new interface driver smsc95xx
[    0.280051] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.508327] Core Release: 2.80a
[    0.508432] Setting default values for core params
[    0.508593] Finished setting default values for core params
[    0.708995] Using Buffer DMA mode
[    0.709100] Periodic Transfer Interrupt Enhancement - disabled
[    0.709261] Multiprocessor Interrupt Enhancement - disabled
[    0.709417] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.709552] Dedicated Tx FIFOs mode
[    0.710025] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xbad14000 dma = 0xfad14000 len=9024
[    0.710326] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.710927] dwc_otg: Microframe scheduler enabled
[    0.710987] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805e6a40
[    0.717954] WARN::hcd_init_fiq:460: FIQ ASM at 0x805e6da8 length 36
[    0.724847] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87e000
[    0.731726] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.738590] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.745445] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.752316] Init: Port Power? op_state=1
[    0.759008] Init: Power Port (0)
[    0.765904] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.772740] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.779516] usb usb1: Product: DWC OTG Controller
[    0.786416] usb usb1: Manufacturer: Linux 4.14.34-v7+ dwc_otg_hcd
[    0.793315] usb usb1: SerialNumber: 3f980000.usb
[    0.800788] hub 1-0:1.0: USB hub found
[    0.807581] hub 1-0:1.0: 1 port detected
[    0.814746] dwc_otg: FIQ enabled
[    0.814751] dwc_otg: NAK holdoff enabled
[    0.814756] dwc_otg: FIQ split-transaction FSM enabled
[    0.814767] Module dwc_common_port init
[    0.815024] usbcore: registered new interface driver usb-storage
[    0.821919] mousedev: PS/2 mouse device common for all mice
[    0.828635] IR NEC protocol handler initialized
[    0.835347] IR RC5(x/sz) protocol handler initialized
[    0.842065] IR RC6 protocol handler initialized
[    0.848749] IR JVC protocol handler initialized
[    0.855331] IR Sony protocol handler initialized
[    0.861778] IR SANYO protocol handler initialized
[    0.868284] IR Sharp protocol handler initialized
[    0.874720] IR MCE Keyboard/mouse protocol handler initialized
[    0.881194] IR XMP protocol handler initialized
[    0.888454] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.895387] bcm2835-cpufreq: min=600000 max=1400000
[    0.902438] sdhci: Secure Digital Host Controller Interface driver
[    0.909154] sdhci: Copyright(c) Pierre Ossman
[    0.916241] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.923486] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.930279] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.938452] ledtrig-cpu: registered to indicate activity on CPUs
[    0.945230] hidraw: raw HID events driver (C) Jiri Kosina
[    0.952027] usbcore: registered new interface driver usbhid
[    0.958655] usbhid: USB HID core driver
[    0.965954] vchiq: vchiq_init_state: slot_zero = bad80000, is_master = 0
[    0.974243] [vc_sm_connected_init]: start
[    0.984218] [vc_sm_connected_init]: end - returning 0
[    0.991559] Initializing XFRM netlink socket
[    0.998284] NET: Registered protocol family 17
[    1.005113] Key type dns_resolver registered
[    1.012259] Registering SWP/SWPB emulation handler
[    1.019575] registered taskstats version 1
[    1.032233] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    1.039109] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    1.047847] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.054772] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    1.061759] Indeed it is in host mode hprt0 = 00021501
[    1.182192] sdhost: log_buf @ bad13000 (fad13000)
[    1.226833] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.235128] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.243337] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.252767] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.271484] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.279024] of_cfs_init
[    1.285674] of_cfs_init: OK
[    1.292591] Waiting for root device PARTUUID=0e663c18-02...
[    1.298217] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.298386] Indeed it is in host mode hprt0 = 00001101
[    1.408826] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.420197] mmc1: new high speed SDIO card at address 0001
[    1.428179] mmc0: new high speed SDHC card at address 0001
[    1.435334] mmcblk0: mmc0:0001 00000 7.30 GiB
[    1.443731]  mmcblk0: p1 p2
[    1.464153] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.470829] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.531774] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    1.538458] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.545926] hub 1-1:1.0: USB hub found
[    1.552849] hub 1-1:1.0: 4 ports detected
[    1.788255] EXT4-fs (mmcblk0p2): recovery complete
[    1.803310] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.810051] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.818613] devtmpfs: mounted
[    1.828516] Freeing unused kernel memory: 1024K
[    1.871513] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.001791] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514
[    2.008870] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.016640] hub 1-1.1:1.0: USB hub found
[    2.023738] hub 1-1.1:1.0: 3 ports detected
[    2.151572] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    2.295480] usb 1-1.2: New USB device found, idVendor=0408, idProduct=3008
[    2.302534] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[    2.309394] usb 1-1.2: Product: OpticalTouchScreen
[    2.316389] usb 1-1.2: Manufacturer: Quanta
[    2.323180] usb 1-1.2: SerialNumber: 0000
[    2.332801] systemd[1]: System time before build time, advancing clock.
[    2.401506] usb 1-1.1.2: new low-speed USB device number 5 using dwc_otg
[    2.478695] NET: Registered protocol family 10
[    2.486811] Segment Routing with IPv6
[    2.505634] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.540085] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    2.548092] systemd[1]: Detected architecture arm.
[    2.567473] usb 1-1.1.2: New USB device found, idVendor=045e, idProduct=0040
[    2.567485] usb 1-1.1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[    2.567493] usb 1-1.1.2: Product: Microsoft 3-Button Mouse with IntelliEye(TM)
[    2.567500] usb 1-1.1.2: Manufacturer: Microsoft
[    2.572559] input: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/0003:045E:0040.0002/input/input0
[    2.572918] hid-generic 0003:045E:0040.0002: input,hidraw0: USB HID v1.10 Mouse [Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)] on usb-3f980000.usb-1.1.2/input0
[    2.645234] systemd[1]: Set hostname to <raspberrypi>.
[    2.671521] usb 1-1.1.3: new low-speed USB device number 6 using dwc_otg
[    2.838101] usb 1-1.1.3: New USB device found, idVendor=413c, idProduct=2107
[    2.846356] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.854685] usb 1-1.1.3: Product: Dell USB Entry Keyboard
[    2.862943] usb 1-1.1.3: Manufacturer: DELL
[    2.883210] input: DELL Dell USB Entry Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/0003:413C:2107.0003/input/input1
[    2.962191] hid-generic 0003:413C:2107.0003: input,hidraw1: USB HID v1.10 Keyboard [DELL Dell USB Entry Keyboard] on usb-3f980000.usb-1.1.3/input0
[    3.254315] systemd[1]: Listening on udev Kernel Socket.
[    3.274333] systemd[1]: Listening on udev Control Socket.
[    3.293751] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.321539] usb 1-1.1.1: new high-speed USB device number 7 using dwc_otg
[    3.338777] systemd[1]: Created slice User and Session Slice.
[    3.359333] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.379772] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    3.400194] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.472041] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800
[    3.472052] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.672397] i2c /dev entries driver
[    3.747349] libphy: lan78xx-mdiobus: probed
[    4.095606] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    4.224964] systemd-journald[108]: Received request to flush runtime journal from PID 1
[    4.908042] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.915284] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[    5.168976] input: Quanta OpticalTouchScreen as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0408:3008.0001/input/input3
[    5.169998] hid-multitouch 0003:0408:3008.0001: input,hiddev96,hidraw2: USB HID v1.10 Mouse [Quanta OpticalTouchScreen] on usb-3f980000.usb-1.2/input0
[    5.204300] brcmfmac: F1 signature read @0x18000000=0x15264345
[    5.213366] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[    5.214464] usbcore: registered new interface driver brcmfmac
[    5.518792] random: crng init done
[    5.523615] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    5.524232] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[    6.443215] uart-pl011 3f201000.serial: no DMA platform data
[    7.509982] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    8.034652] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    8.034717] brcmfmac: power management disabled
[    8.297731] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.307544] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.954026] Bluetooth: Core ver 2.22
[   12.954190] NET: Registered protocol family 31
[   12.954201] Bluetooth: HCI device and connection manager initialized
[   12.955966] Bluetooth: HCI socket layer initialized
[   12.955991] Bluetooth: L2CAP socket layer initialized
[   12.956060] Bluetooth: SCO socket layer initialized
[   12.976035] Bluetooth: HCI UART driver ver 2.3
[   12.976051] Bluetooth: HCI UART protocol H4 registered
[   12.976057] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   12.976327] Bluetooth: HCI UART protocol Broadcom registered
[   13.230355] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.230365] Bluetooth: BNEP filters: protocol multicast
[   13.230382] Bluetooth: BNEP socket layer initialized
[   13.274183] Bluetooth: RFCOMM TTY layer initialized
[   13.274208] Bluetooth: RFCOMM socket layer initialized
[   13.274226] Bluetooth: RFCOMM ver 1.11
[   13.325095] fuse init (API version 7.26)
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)    id=6    [slave  pointer  (2)]
⎜   ↳ Quanta OpticalTouchScreen                 id=8    [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ DELL Dell USB Entry Keyboard              id=7    [slave  keyboard (3)]
root@raspberrypi:~# cat /var/log/Xorg.0.log
[     8.633]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[     8.634] X Protocol Version 11, Revision 0
[     8.634] Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
[     8.634] Current Operating System: Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
[     8.634] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=0e663c18-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait plymouth.ignore-serial-consoles
[     8.634] Build Date: 18 October 2017  04:55:30PM
[     8.634] xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
[     8.634] Current version of pixman: 0.34.0
[     8.634]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[     8.634] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     8.634] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 27 14:17:06 2018
[     8.636] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     8.639] (==) No Layout section.  Using the first Screen section.
[     8.639] (==) No screen section available. Using defaults.
[     8.639] (**) |-->Screen "Default Screen Section" (0)
[     8.639] (**) |   |-->Monitor "<default monitor>"
[     8.645] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[     8.645] (**) |   |-->Device "Allwinner A10/A13 FBDEV"
[     8.645] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[     8.645] (==) Automatically adding devices
[     8.645] (==) Automatically enabling devices
[     8.645] (==) Automatically adding GPU devices
[     8.645] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     8.655] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[     8.655]    Entry deleted from font path.
[     8.655] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[     8.655]    Entry deleted from font path.
[     8.664] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[     8.664]    Entry deleted from font path.
[     8.671] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[     8.671]    Entry deleted from font path.
[     8.671] (==) FontPath set to:
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        built-ins
[     8.671] (==) ModulePath set to "/usr/lib/xorg/modules"
[     8.671] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[     8.674] (II) Loader magic: 0x1fbf40
[     8.674] (II) Module ABI versions:
[     8.674]    X.Org ANSI C Emulation: 0.4
[     8.674]    X.Org Video Driver: 23.0
[     8.674]    X.Org XInput driver : 24.1
[     8.674]    X.Org Server Extension : 10.0
[     8.675] (++) using VT number 7

[     8.675] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     8.676] (II) no primary bus or device found
[     8.677] (II) LoadModule: "glx"
[     8.679] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     8.730] (II) Module glx: vendor="X.Org Foundation"
[     8.730]    compiled for 1.19.2, module version = 1.0.0
[     8.730]    ABI class: X.Org Server Extension, version 10.0
[     8.730] (II) LoadModule: "fbturbo"
[     8.732] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[     8.736] (II) Module fbturbo: vendor="X.Org Foundation"
[     8.736]    compiled for 1.19.2, module version = 0.5.1
[     8.736]    Module class: X.Org Video Driver
[     8.736]    ABI class: X.Org Video Driver, version 23.0
[     8.736] (II) FBTURBO: driver for framebuffer: fbturbo
[     8.752] (WW) Falling back to old probe method for fbturbo
[     8.752] (II) Loading sub module "fbdevhw"
[     8.752] (II) LoadModule: "fbdevhw"
[     8.753] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[     8.756] (II) Module fbdevhw: vendor="X.Org Foundation"
[     8.756]    compiled for 1.19.2, module version = 0.0.2
[     8.756]    ABI class: X.Org Video Driver, version 23.0
[     8.757] (II) FBTURBO(0): using /dev/fb0
[     8.757] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[     8.757] (II) FBTURBO(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[     8.757] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[     8.757] (==) FBTURBO(0): RGB weight 888
[     8.757] (==) FBTURBO(0): Default visual is TrueColor
[     8.757] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[     8.757] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 7011kB)
[     8.757] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[     8.757] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[     8.757] (II) FBTURBO(0): processor: Unknown
[     8.757] (II) FBTURBO(0): checking modes against framebuffer device...
[     8.757] (II) FBTURBO(0): checking modes against monitor...
[     8.757] (--) FBTURBO(0): Virtual size is 1824x984 (pitch 1824)
[     8.757] (**) FBTURBO(0):  Built-in mode "current"
[     8.757] (==) FBTURBO(0): DPI set to (96, 96)
[     8.757] (II) Loading sub module "fb"
[     8.757] (II) LoadModule: "fb"
[     8.757] (II) Loading /usr/lib/xorg/modules/libfb.so
[     8.763] (II) Module fb: vendor="X.Org Foundation"
[     8.763]    compiled for 1.19.2, module version = 1.0.0
[     8.763]    ABI class: X.Org ANSI C Emulation, version 0.4
[     8.764] (==) Depth 24 pixmap format is 32 bpp
[     8.784] (II) FBTURBO(0): using backing store heuristics
[     8.788] (II) FBTURBO(0): can't load 'g2d_23' kernel module
[     8.788] (II) FBTURBO(0): failed to enable the use of sunxi display controller
[     8.788] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[     8.788] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
[     8.788] (II) FBTURBO(0): enabled fbdev copyarea acceleration
[     8.788] (==) FBTURBO(0): Backing store enabled
[     8.797] (==) FBTURBO(0): DPMS enabled
[     8.797] (II) FBTURBO(0): failed to enable hardware cursor
[     8.797] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP
[     8.797] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log
[     8.799] (==) RandR enabled
[     8.822] (II) SELinux: Disabled on system
[     8.827] (II) AIGLX: Screen 0 is not DRI2 capable
[     8.827] (EE) AIGLX: reverting to software rendering
[    10.111] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    10.116] (II) IGLX: Loaded and initialized swrast
[    10.116] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    10.363] (II) config/udev: Adding input device Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) (/dev/input/event0)
[    10.363] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Applying InputClass "libinput pointer catchall"
[    10.363] (II) LoadModule: "libinput"
[    10.363] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    10.389] (II) Module libinput: vendor="X.Org Foundation"
[    10.389]    compiled for 1.19.0, module version = 0.23.0
[    10.389]    Module class: X.Org XInput Driver
[    10.389]    ABI class: X.Org XInput driver, version 24.1
[    10.389] (II) Using input driver 'libinput' for 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)'
[    10.390] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): always reports core events
[    10.390] (**) Option "Device" "/dev/input/event0"
[    10.390] (**) Option "_source" "server/udev"
[    10.392] (II) input device 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)', /dev/input/event0 is tagged by udev as: Mouse
[    10.392] (II) input device 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)', /dev/input/event0 is a pointer caps
[    10.450] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/0003:045E:0040.0002/input/input0/event0"
[    10.450] (II) XINPUT: Adding extended input device "Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)" (type: MOUSE, id 6)
[    10.451] (**) Option "AccelerationScheme" "none"
[    10.451] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): (accel) selected scheme none/0
[    10.451] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): (accel) acceleration factor: 2.000
[    10.451] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): (accel) acceleration threshold: 4
[    10.452] (II) input device 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)', /dev/input/event0 is tagged by udev as: Mouse
[    10.452] (II) input device 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)', /dev/input/event0 is a pointer caps
[    10.455] (II) config/udev: Adding input device Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) (/dev/input/mouse0)
[    10.455] (II) No input driver specified, ignoring this device.
[    10.455] (II) This device may have been added with another device file.
[    10.457] (II) config/udev: Adding input device DELL Dell USB Entry Keyboard (/dev/input/event1)
[    10.457] (**) DELL Dell USB Entry Keyboard: Applying InputClass "libinput keyboard catchall"
[    10.457] (II) Using input driver 'libinput' for 'DELL Dell USB Entry Keyboard'
[    10.457] (**) DELL Dell USB Entry Keyboard: always reports core events
[    10.457] (**) Option "Device" "/dev/input/event1"
[    10.457] (**) Option "_source" "server/udev"
[    10.459] (II) input device 'DELL Dell USB Entry Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
[    10.459] (II) input device 'DELL Dell USB Entry Keyboard', /dev/input/event1 is a keyboard
[    10.490] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/0003:413C:2107.0003/input/input1/event1"
[    10.490] (II) XINPUT: Adding extended input device "DELL Dell USB Entry Keyboard" (type: KEYBOARD, id 7)
[    10.490] (**) Option "xkb_model" "pc105"
[    10.490] (**) Option "xkb_layout" "gb"
[    10.554] (II) input device 'DELL Dell USB Entry Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
[    10.554] (II) input device 'DELL Dell USB Entry Keyboard', /dev/input/event1 is a keyboard
[    10.557] (II) config/udev: Adding input device Quanta OpticalTouchScreen (/dev/input/event2)
[    10.557] (**) Quanta OpticalTouchScreen: Applying InputClass "libinput touchscreen catchall"
[    10.557] (II) Using input driver 'libinput' for 'Quanta OpticalTouchScreen'
[    10.557] (**) Quanta OpticalTouchScreen: always reports core events
[    10.557] (**) Option "Device" "/dev/input/event2"
[    10.557] (**) Option "_source" "server/udev"
[    10.558] (II) input device 'Quanta OpticalTouchScreen', /dev/input/event2 is tagged by udev as: Touchscreen
[    10.558] (II) input device 'Quanta OpticalTouchScreen', /dev/input/event2 is a touch device
[    10.600] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0408:3008.0001/input/input3/event2"
[    10.600] (II) XINPUT: Adding extended input device "Quanta OpticalTouchScreen" (type: TOUCHSCREEN, id 8)
[    10.600] (**) Option "AccelerationScheme" "none"
[    10.600] (**) Quanta OpticalTouchScreen: (accel) selected scheme none/0
[    10.600] (**) Quanta OpticalTouchScreen: (accel) acceleration factor: 2.000
[    10.600] (**) Quanta OpticalTouchScreen: (accel) acceleration threshold: 4
[    10.602] (II) input device 'Quanta OpticalTouchScreen', /dev/input/event2 is tagged by udev as: Touchscreen
[    10.602] (II) input device 'Quanta OpticalTouchScreen', /dev/input/event2 is a touch device
[    10.604] (II) config/udev: Adding input device Quanta OpticalTouchScreen (/dev/input/mouse1)
[    10.604] (II) No input driver specified, ignoring this device.
[    10.604] (II) This device may have been added with another device file.
root@raspberrypi:~# cat /proc/bus/input/devices
I: Bus=0003 Vendor=045e Product=0040 Version=0110
N: Name="Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)"
P: Phys=usb-3f980000.usb-1.1.2/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/0003:045E:0040.0002/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=413c Product=2107 Version=0110
N: Name="DELL Dell USB Entry Keyboard"
P: Phys=usb-3f980000.usb-1.1.3/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/0003:413C:2107.0003/input/input1
U: Uniq=
H: Handlers=sysrq kbd leds event1
B: PROP=0
B: EV=120013
B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=0408 Product=3008 Version=0110
N: Name="Quanta OpticalTouchScreen"
P: Phys=usb-3f980000.usb-1.2/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0408:3008.0001/input/input3
U: Uniq=0000
H: Handlers=mouse1 event2
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=2608000 3
E3V3A commented 6 years ago

Is this a problem that suddenly appeared (e.g. after an update/upgrade) or something that has been around since first install? If it appeared after update, please provide more info about your OS version and try to pinpoint what was updated when it started.

thooge commented 6 years ago

Same problem here with Iiyama ProLite T2252MSC. Tried with fresh install of Raspbian, Raspi 3B and Raspi3 B+.

$uname -a
Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

$lsusb
Bus 001 Device 006: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 001 Device 004: ID 2575:0401  
Bus 001 Device 005: ID 046a:0011 Cherry GmbH G83 (RS 6000) Keyboard
Bus 001 Device 007: ID 0424:7800 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$cat /proc/bus/input/devices
I: Bus=0003 Vendor=2575 Product=0401 Version=0110
N: Name="Weida Hi-Tech                CoolTouchR System           "
P: Phys=usb-3f980000.usb-1.2/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:2575:0401.0001/input/input3
U: Uniq=
H: Handlers=mouse1 event2 
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=2608000 3

Tried on screen keyboard onboard. Unusable, seems not to send KeyUp events?

Same configuration with normal PC and Debian Stretch works as a charme.

JamesH65 commented 6 years ago

Reference : https://www.raspberrypi.org/forums/viewtopic.php?t=179663

JamesH65 commented 6 years ago

Been taking a quick look at this stuff. It's a bit confusing how a driver is chosen, looks like the Quanta device uses the standard hid-multitouch.c driver, but not sure about the Wieda device. I don't think its the same driver though.

In the Quanta case, this driver is used by a LOT of different screens, so I would think it unlikely that it has any bugs this obvious. Since its also a different driver to the Weida, that sort of implies the issue is elsewhere, and the only elsewhere that comes to mind is the USB stack.

@P33M Any suggests on USB tweaks that might help here?

lbenini commented 6 years ago

I come back late, but I've been able to conduct more test only today:

  1. The software is a raspbian stretch updated to today (it behaves exactly as described before)
  2. Using a powered USB HUB doesn't resolve the problem
  3. After the hang is it possible to recover the touchscreen by clicking with two fingers (as in the video) but also by removing and inserting again the hid-multitouch module
  4. The following boot options have NO effect on the problem:
    • hid.mousepool (various settings)
    • dwc_otg.speed (1/0)
  5. Same behaviour on RPI3 B+
thurban commented 6 years ago

I have the very same problem. The (2 tested) PROLITE T2252MSC monitors work fine on a Centos7/64 bit system, but shows the same issues on a Raspberry3 B.

trondjl commented 6 years ago

Hi, I have the same issue. I can trigger it by clicking with three fingers and fix it with two. It also seems to hang by itself sometimes when left alone, but also it might be the first click then is misinterpreted... Using evdev driver instead of libinput seems to be more stable in X, but still hangs with three fingers in my javafx app. Using rpi3b with updated Jessie and an 10 inch waveshare screen. Anyone found a good workaround or fix yet?

JamesH65 commented 5 years ago

This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested.

thooge commented 5 years ago

Still waiting for a fix...

thurban commented 5 years ago

I was able to fix it by adding the following text to the end of the /boot/cmdline.txt: usbhid.mousepoll=0 The PROLITE T2252MSC and PROLITE T2454MSC both work just fine afterwards.

JamesH65 commented 4 years ago

@thooge Did the above workaround fix your issue?

JamesH65 commented 4 years ago

Closing due to lack of activity. Please request to be reopened if you feel this issue is still relevant.