[ASUS Zenbook UX303UB] Multi touch broken on lunar (23.04) (xorg + wayland) for Focaltech touchpad

Bug #2017337 reported by peeweek
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libinput
New
Unknown
Ubuntu
Fix Released
Undecided
Unassigned

Bug Description

Multi touch broken on lunar (23.04) (xorg + wayland) for Focaltech touchpad

Since the upgrade of my laptop (ASUS Zenbook UX303UB), multi touch has been acting erraticly in the following situations:

- two finger scrolling
- one finger clicks left mouse, other finger drags

when two fingers are moving onto the surface, the cursor is fleeing to the right/top of the screen. (See attached screencast)

The issue happens regardless of xorg/wayland.

I enclosed a screencast video that demonstrates the issue. In this scenario, I am moving a window downwards using two methods:

- Click and drag with one finger : working
- Click the left click area with one finger, and drag using the other : not working, cursor is fleeing

- When two fingers are present, and one of them is moving, I am experiencing the "fleeing cursor" issue

Workaround : using left edge scrolling works as temporary workaround for scrolling, but click drag using a single finger is really cumbersome.

Here is the output of the `xinput` command on Xorg:

```
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ FocalTechPS/2 FocalTech Touchpad id=14 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Asus Wireless Radio Control id=7 [slave keyboard (3)]
    ↳ Video Bus id=8 [slave keyboard (3)]
    ↳ Video Bus id=9 [slave keyboard (3)]
    ↳ Sleep Button id=10 [slave keyboard (3)]
    ↳ USB2.0 HD UVC WebCam: USB2.0 HD id=11 [slave keyboard (3)]
    ↳ Asus WMI hotkeys id=12 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
```

Here is the output of the `xinput` command on wayland:

```
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:15 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:15 id=7 [slave pointer (2)]
⎜ ↳ xwayland-pointer-gestures:15 id=8 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ xwayland-keyboard:15 id=9 [slave keyboard (3)]
```

Revision history for this message
peeweek (peeweek) wrote :
Revision history for this message
peeweek (peeweek) wrote :

Adding more info from `lshw`

```
 *-input:2
       product: FocalTechPS/2 FocalTech Touchpad
       physical id: 3
       logical name: input11
       logical name: /dev/input/event4
       logical name: /dev/input/mouse0
       capabilities: i8042
```

Revision history for this message
peeweek (peeweek) wrote :

More info from `lsinput`

```
/dev/input/event4
   bustype : BUS_I8042
   vendor : 0x2
   product : 0x12
   version : 0
   name : "FocalTechPS/2 FocalTech Touchpad"
   phys : "isa0060/serio4/input0"
   bits ev : (null) (null) (null)
```

Revision history for this message
peeweek (peeweek) wrote :

I have made some more testing in case the issue would be an upgrade-only issue, the problem is also present on live iso.

Revision history for this message
peeweek (peeweek) wrote :

Adding logs from Xorg.log

```
...
[ 7.229] (II) event3 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[ 7.229] (II) event3 - AT Translated Set 2 keyboard: device is a keyboard
[ 7.230] (II) config/udev: Adding input device FocalTechPS/2 FocalTech Touchpad (/dev/input/event4)
[ 7.230] (**) FocalTechPS/2 FocalTech Touchpad: Applying InputClass "libinput touchpad catchall"
[ 7.230] (II) Using input driver 'libinput' for 'FocalTechPS/2 FocalTech Touchpad'
[ 7.231] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 53 paused 0
[ 7.231] (**) FocalTechPS/2 FocalTech Touchpad: always reports core events
[ 7.231] (**) Option "Device" "/dev/input/event4"
[ 7.233] (II) event4 - FocalTechPS/2 FocalTech Touchpad: is tagged by udev as: Touchpad
[ 7.233] (II) event4 - FocalTechPS/2 FocalTech Touchpad: no resolution or size hints, assuming a size of 69x50mm
[ 7.235] (II) event4 - FocalTechPS/2 FocalTech Touchpad: device is a touchpad
[ 7.235] (II) event4 - FocalTechPS/2 FocalTech Touchpad: device removed
[ 7.236] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio4/input/input11/event4"
[ 7.236] (II) XINPUT: Adding extended input device "FocalTechPS/2 FocalTech Touchpad" (type: TOUCHPAD, id 14)
[ 7.238] (**) Option "AccelerationScheme" "none"
[ 7.238] (**) FocalTechPS/2 FocalTech Touchpad: (accel) selected scheme none/0
[ 7.238] (**) FocalTechPS/2 FocalTech Touchpad: (accel) acceleration factor: 2.000
[ 7.238] (**) FocalTechPS/2 FocalTech Touchpad: (accel) acceleration threshold: 4
[ 7.239] (II) event4 - FocalTechPS/2 FocalTech Touchpad: is tagged by udev as: Touchpad
[ 7.240] (II) event4 - FocalTechPS/2 FocalTech Touchpad: no resolution or size hints, assuming a size of 69x50mm
[ 7.241] (II) event4 - FocalTechPS/2 FocalTech Touchpad: device is a touchpad
[ 7.242] (II) config/udev: Adding input device FocalTechPS/2 FocalTech Touchpad (/dev/input/mouse0)
[ 7.243] (II) No input driver specified, ignoring this device.
[ 7.243] (II) This device may have been added with another device file.
[ 7.353] (II) modeset(0): EDID vendor "CMN", prod id 4961
[ 7.353] (II) modeset(0): Printing DDC gathered Modelines:
[ 7.353] (II) modeset(0): Modeline "1920x1080"x0.0 138.78 1920 1966 1996 2080 1080 1082 1086 1112 -hsync -vsync (66.7 kHz eP)
[ 7.353] (II) modeset(0): Modeline "1920x1080"x0.0 92.52 1920
...
```

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2017337/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
peeweek (peeweek)
affects: ubuntu → libinput (Ubuntu)
Revision history for this message
Chris (technical0) wrote :

Confirming this is also a problem for me.
Asus UX303AL, both after the upgrade and on the live CD.
It also affects the 3-finger swipe between desktops gesture, whereby you can swipe left but not right.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libinput (Ubuntu):
status: New → Confirmed
summary: - Multi touch broken on lunar (23.04) (xorg + wayland) for Focaltech
- touchpad
+ [ASUS Zenbook UX303UB] Multi touch broken on lunar (23.04) (xorg +
+ wayland) for Focaltech touchpad
tags: added: lunar
Revision history for this message
peeweek (peeweek) wrote :

More info from libinput debug :

peeweek@HESPERIDIUM:~$ sudo libinput debug-gui
[sudo] password for peeweek:
Sorry, try again.
[sudo] password for peeweek:

(libinput-debug-gui:4309): Gtk-CRITICAL **: 14:12:33.485: gtk_widget_set_events: assertion '!_gtk_widget_get_realized (widget)' failed
info: event2 Power Button added
info: event5 Asus Wireless Radio Control added
info: event8 Video Bus added
info: event9 Video Bus added
info: event0 Lid Switch added
info: event1 Sleep Button added
info: event7 USB2.0 HD UVC WebCam: USB2.0 HD added
info: event6 Asus WMI hotkeys added
info: event3 AT Translated Set 2 keyboard added
info: event4 FocalTechPS/2 FocalTech Touchpad added
event4 - FocalTechPS/2 FocalTech Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.22.1/touchpad-jumping-cursors.html for details
event4 - FocalTechPS/2 FocalTech Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.22.1/touchpad-jumping-cursors.html for details
event4 - FocalTechPS/2 FocalTech Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.22.1/touchpad-jumping-cursors.html for details
event4 - FocalTechPS/2 FocalTech Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.22.1/touchpad-jumping-cursors.html for details
event4 - FocalTechPS/2 FocalTech Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.22.1/touchpad-jumping-cursors.html for details
event4 - FocalTechPS/2 FocalTech Touchpad: WARNING: log rate limit exceeded (5 msgs per 24h). Discarding future messages.

Weird thing is that url is a 404. I'm wondering if that bug is related to libinput or kernel.

I have tested on a fedora live USB, which is using libinput 1.23.0 and a newer kernel. the issue is not present.

Revision history for this message
peeweek (peeweek) wrote :

Adding a screencast to illustrate previous logs.

Revision history for this message
peeweek (peeweek) wrote :

https://gitlab.freedesktop.org/libinput/libinput/-/issues/893

I have also logged the issue on libinput repo. They expect that the issue is already fixed in 1.23.0 (still have to build it and test, but I'm deeply concerned about breaking my system as it's my daily driver and I'm not sure how to handle things if it breaks)

Are there some plans to upgrade the package to 1.23.0 in lunar ?

Revision history for this message
peeweek (peeweek) wrote :

https://gitlab.freedesktop.org/libinput/libinput/-/issues/893

I have also logged the issue on libinput repo. They expect that the issue is already fixed in 1.23.0.

It doesn´t seem that easy, as I tried building libinput myself and ugprading to 1.23.0. The issue is still present, but only when scrolling down using two fingers.

It is probable that the issue involves both kernel and libinput to be at newer versions to fix the issue.

Changed in libinput:
status: Unknown → New
Revision history for this message
Chris (technical0) wrote :

It's fixed with the latest updates.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

peeweek: Please confirm Chris' comment.

Revision history for this message
peeweek (peeweek) wrote :

Hello! I'm not sure how to proceed to confirm, I've got my laptop reinstalled with fedora since it's my daily driver and the issue was too painful for daily use.

Is there a way to generate a live iso of ubuntu desktop 23.04 with latest apt packages?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Doesn't matter. Chris has almost the same hardware so let's go with that.

affects: libinput (Ubuntu) → ubuntu
Changed in ubuntu:
status: Confirmed → Fix Released
Revision history for this message
peeweek (peeweek) wrote :

Yes, I think this should be fine, thanks for the work !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.