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 <[email protected]> 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 <[email protected]> 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 Desktop Packages, 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 Status in libwacom package in Ubuntu: New Bug description: This also happened on Eoan, but I never had the chance to report the problem. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: libwacom2 1.1-2build3 ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24 Uname: Linux 5.4.0-18-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.20.11-0ubuntu21 Architecture: amd64 BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log' CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' CompositorRunning: None CurrentDesktop: KDE Date: Wed Mar 25 13:12:20 2020 DistUpgraded: 2020-03-21 19:59:50,804 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py' DistroCodename: focal DistroVariant: ubuntu DkmsStatus: backport-iwlwifi, 8324, 5.3.0-42-generic, x86_64: installed backport-iwlwifi, 8324, 5.4.0-18-generic, x86_64: installed GraphicsCard: Intel Corporation UHD Graphics [8086:9b41] (rev 02) (prog-if 00 [VGA controller]) Subsystem: Lenovo UHD Graphics [17aa:2292] InstallationDate: Installed on 2020-01-19 (66 days ago) InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017) MachineType: LENOVO 20SA0002US ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-18-generic root=UUID=8644acd5-759a-4daa-a34c-75ad3f4c5c12 ro quiet splash vt.handoff=7 SourcePackage: libwacom UpgradeStatus: Upgraded to focal on 2020-03-21 (3 days ago) dmi.bios.date: 01/15/2020 dmi.bios.vendor: LENOVO dmi.bios.version: N2QET19W (1.13 ) dmi.board.asset.tag: Not Available dmi.board.name: 20SA0002US dmi.board.vendor: LENOVO dmi.board.version: SDK0J40697 WIN dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 31 dmi.chassis.vendor: LENOVO dmi.chassis.version: None dmi.modalias: dmi:bvnLENOVO:bvrN2QET19W(1.13):bd01/15/2020:svnLENOVO:pn20SA0002US:pvrThinkPadX1Yoga4th:rvnLENOVO:rn20SA0002US:rvrSDK0J40697WIN:cvnLENOVO:ct31:cvrNone: dmi.product.family: ThinkPad X1 Yoga 4th dmi.product.name: 20SA0002US dmi.product.sku: LENOVO_MT_20SA_BU_Think_FM_ThinkPad X1 Yoga 4th dmi.product.version: ThinkPad X1 Yoga 4th dmi.sys.vendor: LENOVO version.compiz: compiz N/A version.libdrm2: libdrm2 2.4.100-4 version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.0-1ubuntu1 version.libgl1-mesa-glx: libgl1-mesa-glx N/A version.xserver-xorg-core: xserver-xorg-core 2:1.20.7-2ubuntu2 version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1 version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20190815-1 version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libwacom/+bug/1869059/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

