I tried below two patches, it could let my Yoga Gen5 works fine. I could find pen setting at gnome-control-center when the pen touch the screen.
I could customize the second button as right click. 056a:51b9 Wacom Co., Ltd Pen and multitouch sensor commit a864679083c035eb08a75cf084a6564d589c0b1c Author: Jason Gerecke <killert...@gmail.com> Date: Fri Nov 1 11:51:20 2019 -0700 Add multiple AES stylus definitions Adds definitions for many different AES styli. The precise information about supported features is hard to come by, but in general most pens have two buttons (one of which is treated as an eraser) and can only report pressure. A few exceptions are known or suspected and their data has been set accordingly. commit 8652aa3376bfb0e833af3704dc2ab7948958cd8f Author: Jason Gerecke <killert...@gmail.com> Date: Tue Oct 29 15:26:51 2019 -0700 Add isdv4-aes stylus group to all AES sensors AES sensors determined based on comments and HID descriptors available at the wacom-hid-descriptors repository, where available. Some pen/sensor combinations may not truly be compatible with each other, but it difficult to know a priori which are problematic. This ultimately doesn't matter *too* much, however, since the ID list is primarily used by tools like GNOME Control Center that just need a rough idea of what pens might work with a given tablet during configuration. ** Attachment added: "aes_pen.png" https://bugs.launchpad.net/ubuntu/+source/libwacom/+bug/1869059/+attachment/5444143/+files/aes_pen.png -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to libwacom in Ubuntu. https://bugs.launchpad.net/bugs/1869059 Title: Button 2 of my ThinkPad X1 Yoga's stylus is not detected To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libwacom/+bug/1869059/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp