Button 2 of my ThinkPad X1 Yoga's stylus is not detected

Bug #1869059 reported by Jonas Gamao
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Triaged
High
Bin Li
libwacom (Ubuntu)
New
Medium
Unassigned

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

Revision history for this message
Jonas Gamao (yamiyukisenpai) wrote :
Revision history for this message
Jonas Gamao (yamiyukisenpai) wrote :

Dunno if this helps, but the pen is called ThinkPad Pen Pro

Revision history for this message
Bin Li (binli) wrote :

https://www.lenovo.com/us/en/pdf/lenovo-pen-button-config-guide.pdf

• Top barrel button:
Hold the top barrel button and tap the screen: Right-click
• Bottom barrel button:
Hold the bottom barrel button to erase the object in supported applications: Erase

And I tested on ubuntu 20.04.1 on X1 Yoga G5 with latest libwacom2(1.3-2ubuntu1), it don't support these two buttons.

Revision history for this message
Sebastien Bacher (seb128) wrote :

It might be worth reporting upstream https://github.com/linuxwacom/libwacom

Changed in libwacom (Ubuntu):
importance: Undecided → Low
Revision history for this message
Bin Li (binli) wrote :

The pen from Yoga is not Pen Pro, it's just a two button pen, while the Pen Pro has extra button on top.

Revision history for this message
Bin Li (binli) wrote :

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 address hidden>
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 address hidden>
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.

Revision history for this message
Bin Li (binli) wrote :

Here is the patch used for libwacom 1.3-2ubuntu1.

commit a864679083c035eb08a75cf084a6564d589c0b1c
Author: Jason Gerecke <email address hidden>
Date: Fri Nov 1 11:51:20 2019 -0700

    Add multiple AES stylus definitions

Revision history for this message
Bin Li (binli) wrote :

Here is the patch used for 1.3-2ubuntu1, I removed the errors of merging.

commit 8652aa3376bfb0e833af3704dc2ab7948958cd8f
Author: Jason Gerecke <email address hidden>
Date: Tue Oct 29 15:26:51 2019 -0700

    Add isdv4-aes stylus group to all AES sensors

Revision history for this message
Bin Li (binli) wrote :

Jonas,

 I built the debug packages with these two patches for testing, would you like to help test them? Thanks!

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

The attachment "multiple_AES_stylus.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Mathew Hodson (mhodson)
Changed in libwacom (Ubuntu):
importance: Low → Medium
Rex Tsai (chihchun)
tags: added: oem-priority
Bin Li (binli)
Changed in oem-priority:
importance: Undecided → High
assignee: nobody → Bin Li (binli)
status: New → Triaged
Revision history for this message
Bin Li (binli) wrote :

On ThinkPad P1 Gen 3, I upgraded the 1.3-2ubuntu3 in proposed, there are 'AES pen' at 'Wacom Tablet', and I tried set the 'Top barrel button' to 'Right Mouse Button Click', then 'Middle Mouse Button Click', it works fine.

The second button, 'Bottom barrel button', is not supported yet.

I tried the 21.04 with libwacom2:1.8-2ubuntu1, the second button is still not supported, I will open a bug to upstream later.

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.