Digital Ink Pad 平板电脑在 20.04 中无法使用,但在 16.04 中可以工作

Digital Ink Pad 平板电脑在 20.04 中无法使用,但在 16.04 中可以工作

我正在从 Ubuntu 16.04 升级到 20.04。我的电脑上连接了一个图形输入板,16.04 将笔识别为鼠标。但它在 20.04 中不起作用。输出来自usb 设备两个版本均相同:

T:  Bus=04 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=172f ProdID=0027 Rev=01.50
S:  Manufacturer=               
S:  Product=Digital Ink Pad
S:  SerialNumber=01.00.00
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid

但结果xinput 列表属性非常不同。16.04 版本中

Device '                Digital Ink Pad':
    Device Enabled (153):   1
    Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (281): 0
    Device Accel Constant Deceleration (282):   1.000000
    Device Accel Adaptive Deceleration (283):   1.000000
    Device Accel Velocity Scaling (284):    10.000000
    Device Product ID (272):    5935, 39
    Device Node (273):  "/dev/input/event3"
    Evdev Axis Inversion (285): 0, 0
    Evdev Axis Calibration (286):   <no items>
    Evdev Axes Swap (287):  0
    Axis Labels (288):  "Abs X" (278), "Abs Y" (279), "Abs Pressure" (280), "Rel Vert Wheel" (277)
    Button Labels (289):    "Button Left" (156), "Button Middle" (157), "Button Right" (158), "Button Wheel Up" (159), "Button Wheel Down" (160), "Button Horiz Wheel Left" (161), "Button Horiz Wheel Right" (162)
    Evdev Scrolling Distance (290): 1, 1, 1
    Evdev Middle Button Emulation (291):    1
    Evdev Middle Button Timeout (292):  50
    Evdev Third Button Emulation (293): 0
    Evdev Third Button Emulation Timeout (294): 1000
    Evdev Third Button Emulation Button (295):  3
    Evdev Third Button Emulation Threshold (296):   20
    Evdev Wheel Emulation (297):    0
    Evdev Wheel Emulation Axes (298):   0, 0, 4, 5
    Evdev Wheel Emulation Inertia (299):    10
    Evdev Wheel Emulation Timeout (300):    200
    Evdev Wheel Emulation Button (301): 4
    Evdev Drag Lock Buttons (302):  0

但在 20.04 中

Device '                Digital Ink Pad Mouse':
    Device Enabled (155):   1
    Coordinate Transformation Matrix (157): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Natural Scrolling Enabled (291):   0
    libinput Natural Scrolling Enabled Default (292):   0
    libinput Scroll Methods Available (293):    0, 0, 1
    libinput Scroll Method Enabled (294):   0, 0, 0
    libinput Scroll Method Enabled Default (295):   0, 0, 0
    libinput Button Scrolling Button (296): 2
    libinput Button Scrolling Button Default (297): 2
    libinput Middle Emulation Enabled (298):    1
    libinput Middle Emulation Enabled Default (299):    0
    libinput Accel Speed (300): 0.000000
    libinput Accel Speed Default (301): 0.000000
    libinput Accel Profiles Available (302):    1, 1
    libinput Accel Profile Enabled (303):   1, 0
    libinput Accel Profile Enabled Default (304):   1, 0
    libinput Left Handed Enabled (305): 0
    libinput Left Handed Enabled Default (306): 0
    libinput Send Events Modes Available (276): 1, 0
    libinput Send Events Mode Enabled (277):    0, 0
    libinput Send Events Mode Enabled Default (278):    0, 0
    Device Node (279):  "/dev/input/event3"
    Device Product ID (280):    5935, 39
    libinput Drag Lock Buttons (307):   <no items>
    libinput Horizontal Scroll Enabled (308):   1

答案1

根据xinput您提供的输出,驱动程序似乎从 更改evdevlibinput

  • 您可以尝试libinput通过添加以下内容强制将设备视为平板电脑/usr/share/X11/xorg.conf.d/40-libinput.conf

    “输入类”部分
        标识符“evdev tablet”
        MatchIsTablet“开启”
        MatchDevicePath“/dev/input/event3”
        驱动程序“evdev”
    结束部分

  • 您可以尝试恢复evdev

    1. 确保软件包xserver-xorg-input-evdev已安装。(这可能足够,也可能不够。)

      sudo apt 列表 xserver-xorg-input-evdev
      sudo apt 安装 xserver-xorg-input-evdev

    2. 您可能需要禁用libinput。您可能需要将Ignore选项添加到以下多个部分/usr/share/X11/xorg.conf.d/40-libinput.conf

      “输入类”部分
          标识符“libinput 指针 catchall”
          MatchIsPointer“开启”
          MatchDevicePath“/dev/input/event*”
          驱动程序“libinput”
          选项“忽略” “开启”
      结束部分

    3. 可能需要添加以下内容/usr/share/X11/xorg.conf.d/10-evdev.conf

      “输入类”部分
          标识符“evdev tablet”
          MatchIsTablet“开启”
          MatchDevicePath“/dev/input/event3”
          驱动程序“evdev”
      结束部分

相关内容