AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[libinput](ubuntu)

Martin Hope
Ubuntovative is here
Asked: 2020-09-15 20:24:10 +0800 CST

Fusuma 无法在 Ubuntu 18.04 上运行

  • 2

我在Dell Vostro 15 - 3546上有Ubuntu 18.04。

uname -api

Linux vaishnavi-laptop 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

我按照这个帖子安装fusuma。然后当我运行时sudo fusuma:

I, [2020-09-15T09:45:33.978824 #15466]  INFO -- : reload config: /home/vaishnavi/.config/fusuma/config.yml
I, [2020-09-15T09:45:34.051674 #15466]  INFO -- : ---------------------------------------------
I, [2020-09-15T09:45:34.051794 #15466]  INFO -- : Fusuma: 1.11.1
I, [2020-09-15T09:45:34.061094 #15466]  INFO -- : libinput: 1.10.4
I, [2020-09-15T09:45:34.143106 #15466]  INFO -- : OS: Linux 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020
I, [2020-09-15T09:45:34.145421 #15466]  INFO -- : Distribution: Ubuntu 18.04.4 LTS \n \l
I, [2020-09-15T09:45:34.147262 #15466]  INFO -- : Desktop session:
I, [2020-09-15T09:45:34.147340 #15466]  INFO -- : ---------------------------------------------
I, [2020-09-15T09:45:34.147393 #15466]  INFO -- : Enabled Plugins: 
I, [2020-09-15T09:45:34.147612 #15466]  INFO -- :   Fusuma::Plugin::Buffers::GestureBuffer
I, [2020-09-15T09:45:34.147659 #15466]  INFO -- :   Fusuma::Plugin::Detectors::PinchDetector
I, [2020-09-15T09:45:34.147692 #15466]  INFO -- :   Fusuma::Plugin::Detectors::RotateDetector
I, [2020-09-15T09:45:34.147729 #15466]  INFO -- :   Fusuma::Plugin::Detectors::SwipeDetector
I, [2020-09-15T09:45:34.147764 #15466]  INFO -- :   Fusuma::Plugin::Events::Records::GestureRecord
I, [2020-09-15T09:45:34.147804 #15466]  INFO -- :   Fusuma::Plugin::Events::Records::IndexRecord
I, [2020-09-15T09:45:34.147948 #15466]  INFO -- :   Fusuma::Plugin::Events::Records::TextRecord
I, [2020-09-15T09:45:34.147979 #15466]  INFO -- :   Fusuma::Plugin::Executors::CommandExecutor
I, [2020-09-15T09:45:34.148008 #15466]  INFO -- :   Fusuma::Plugin::Filters::LibinputDeviceFilter
I, [2020-09-15T09:45:34.148039 #15466]  INFO -- :   Fusuma::Plugin::Filters::LibinputTimeoutFilter
I, [2020-09-15T09:45:34.148081 #15466]  INFO -- :   Fusuma::Plugin::Inputs::LibinputCommandInput
I, [2020-09-15T09:45:34.148119 #15466]  INFO -- :   Fusuma::Plugin::Parsers::LibinputGestureParser
I, [2020-09-15T09:45:34.148177 #15466]  INFO -- : ---------------------------------------------

我没有错过任何步骤,也没有关闭终端,但触摸板手势仍然不起作用!
提前致谢。

编辑:
内容/home/vaishnavi/.config/fusuma/config.yml:

swipe:
  3:
    left:
      command: "xdotool key Alt+Right" # History forward 
    right:
      command: "xdotool key Alt+Left" # History back
    up:
      command: "xdotool key Super" # Activity
    down:
      command: "xdotool key Super" # Activity
  4:
    left:
      command: "xdotool key Ctrl+Alt+Down" # Switch to next workspace
    right:
      command: "xdotool key Ctrl+Alt+Up" # Switch to previous workspace
    up:
      command: "xdotool key Ctrl+Alt+Down" # Switch to next workspace
    down:
      command: "xdotool key Ctrl+Alt+Up" # Switch to previous workspace
pinch:
  in:
    command: "xdotool keydown Ctrl click 4 keyup Ctrl" # Zoom in
  out:
    command: "xdotool keydown Ctrl click 5 keyup Ctrl" # Zoom out
touchpad xdotool libinput
  • 3 个回答
  • 2859 Views
Martin Hope
Peter
Asked: 2020-09-15 05:23:40 +0800 CST

“坐标变换矩阵”和“libinput 校准矩阵”——它们有什么关系?

  • 2

“libinput Calibration Matrix”的确切格式是什么(即它的每个元素代表什么)以及它与“坐标变换矩阵”有什么关系?如果“坐标变换矩阵”负责将触摸屏点映射到显示点,为什么还不够,为什么还需要“libinput 校准矩阵”?每个矩阵负责校准过程的哪一部分?

我还没有找到一个参考站点来解释“libinput Calibration Matrix”代表什么元素(与“坐标变换矩阵”相反)。我设法找到的是相关系数的以下“定义”:

a = (screen_x * 6 / 8) / (c3_x - c0_x)
c = ((screen_x / 8) - (a * c0_x)) / screen_x
e = (screen_y * 6 / 8) / (c3_y - c0_y)
f = ((screen_y / 8) - (e * c0_y)) / screen_y

没有任何解释它们是如何派生的/它们应该代表什么。总结一下:“libinput校准矩阵”的“官方”定义是什么,它与“坐标变换矩阵”有什么不同?

xorg touchscreen xinput libinput
  • 1 个回答
  • 3417 Views
Martin Hope
Stefan Kamphausen
Asked: 2020-08-12 06:55:30 +0800 CST

Kubuntu 20.04 上是否有现代手势解决方案

  • 2

如今,多点触控触摸板已成为标准。我在现代 Ubuntu 上四处寻找良好的支持,最好是开箱即用。更具体地说:我在 Kubuntu 20.04 上没有任何相关的 PPA。

大多数解决方案似乎都涉及libinput-gestures,老实说,这是一个超级 hacky 的解决方案。它在后台调用libinput debug-events并读取其 STDOUT。我很高兴听到这适用于许多人,但我宁愿不必使用它。

我也找到了包xserver-xorg-input-multitouch,xserver-xorg-input-mtrack但它们都已经很多年没有被触及了,它们似乎依赖于突触,而不是更现代的 libinput。

我想知道是否有人知道任何现代(理想情况下基于 KDE)的解决方案,可以让滑动和捏合等工作。或者,如果有任何 KDE 票可以遵循该处理。

kde kubuntu touchpad libinput
  • 1 个回答
  • 5293 Views
Martin Hope
m0hhh
Asked: 2020-05-07 09:17:50 +0800 CST

安装了 libinput-gestures 以具有类似 mac 的手势,但由于某种原因它无法正常工作

  • 2

Ubuntu 和 Linux 的新手。我按照这些指令安装了 libinput-gestures 。一切都很顺利(我假设,因为我没有错误)并且 GUI 工作没有任何问题。我添加了教程中包含的手势并重新启动了我的 XPS13,但是当我执行手势时没有任何反应。我错过了什么?非常感谢您的帮助。

编辑以添加系统详细信息:使用 Dell XPS13 上安装的 Ubuntu Desktop 20.04 LTS

multi-touch touchpad xps gestures libinput
  • 1 个回答
  • 4557 Views
Martin Hope
D Songwriter
Asked: 2020-05-03 08:51:22 +0800 CST

如何在无线 USB 键盘的触摸板上禁用捏合、缩放和滑动?

  • 1

我正在使用带有 Ubuntu 20.04 的英特尔 NUC。它主要用作HTPC和浏览网页。我想使用带有内置触摸板的无线键盘。我试过两个,每个都有类似的问题。当我使用两指滚动时,罗技 K400+ 喜欢自动缩放。它通常可以正常工作,但会定期放大。1byOne 的类似键盘在不缩放方面做得更好,但它喜欢在滑动时输入鼠标光标移动......这会将我带到另一个应用程序或桌面。

我已经阅读了几天关于 xinput 和 libinput 的文章。设备列表道具不显示任何明显是缩放、捏合或滑动功能的东西。

我想找到它在 linux 中处理来自触摸板的输入的位置并让它忽略这些功能(我使用 ctrl-shift-+ 和 - 来放大和缩小..不希望触摸板这样做)。

我已经阅读了有关更改为突触的信息,但没有发现任何可以回答我的问题的文档。

我希望有人有一个好的解决方案,这让我发疯。

谢谢你。

multi-touch touchpad xinput libinput
  • 2 个回答
  • 3249 Views
Martin Hope
Killdashnein TV
Asked: 2020-04-26 15:39:49 +0800 CST

触摸板电源管理问题、“粘滞光标”、输入检测延迟(自动挂起)

  • 1

我在 Acer aspire v3 572g、任何发行版和任何“新”版本上都遇到了这个问题(在 ubuntu 10.04lts 上没有出现问题)。触摸板在启动后工作正常,但在使用后(如果不/几乎不使用它会继续工作)似乎触摸板进入了某种节能模式:如果几秒钟不使用它会有半秒延迟它检测到的第一个输入。无论是使用 nvidia 专有驱动程序还是开源驱动程序,无论是否使用 synaptics 驱动程序,甚至卸载 xserver-xorg-input-libinput 并使用 synaptics(键盘停止工作但问题仍然存在),问题都仍然存在。我在这里粘贴了一些来自 Ubuntu 19.10 的 xinput 和 synclient 输出,但我不确定这些与问题有什么关系:

输入列表

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SYN1B7E:01 06CB:2970 Touchpad             id=12   [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)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Video Bus                                 id=10   [slave  keyboard (3)]
    ↳ HD WebCam: HD WebCam                      id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]
    ↳ Acer WMI hotkeys                          id=14   [slave  keyboard (3)]

xinput --list-props "12"

Device 'SYN1B7E:01 06CB:2970 Touchpad':
    Device Enabled (197):   1
    Coordinate Transformation Matrix (199): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (326): 1
    Device Accel Constant Deceleration (327):   2.500000
    Device Accel Adaptive Deceleration (328):   1.000000
    Device Accel Velocity Scaling (329):    12.640978
    Synaptics Edges (330):  49, 1187, 48, 850
    Synaptics Finger (331): 25, 30, 0
    Synaptics Tap Time (332):   180
    Synaptics Tap Move (333):   67
    Synaptics Tap Durations (334):  180, 180, 100
    Synaptics ClickPad (335):   1
    Synaptics Middle Button Timeout (336):  0
    Synaptics Two-Finger Pressure (337):    282
    Synaptics Two-Finger Width (338):   7
    Synaptics Scrolling Distance (339): 30, 30
    Synaptics Edge Scrolling (340): 0, 0, 0
    Synaptics Two-Finger Scrolling (341):   1, 1
    Synaptics Move Speed (342): 1.000000, 1.750000, 0.130976, 0.000000
    Synaptics Off (343):    0
    Synaptics Locked Drags (344):   0
    Synaptics Locked Drags Timeout (345):   5000
    Synaptics Tap Action (346): 2, 3, 0, 0, 1, 3, 0
    Synaptics Click Action (347):   1, 3, 0
    Synaptics Circular Scrolling (348): 0
    Synaptics Circular Scrolling Distance (349):    0.100000
    Synaptics Circular Scrolling Trigger (350): 0
    Synaptics Circular Pad (351):   0
    Synaptics Palm Detection (352): 0
    Synaptics Palm Dimensions (353):    10, 200
    Synaptics Coasting Speed (354): 20.000000, 50.000000
    Synaptics Pressure Motion (355):    30, 160
    Synaptics Pressure Motion Factor (356): 1.000000, 1.000000
    Synaptics Resolution Detect (357):  1
    Synaptics Grab Event Device (358):  0
    Synaptics Gestures (359):   1
    Synaptics Capabilities (360):   1, 0, 0, 1, 1, 0, 0
    Synaptics Pad Resolution (361): 12, 12
    Synaptics Area (362):   0, 0, 0, 0
    Synaptics Soft Button Areas (363):  618, 0, 736, 0, 0, 0, 0, 0
    Synaptics Noise Cancellation (364): 7, 7
    Device Product ID (322):    1739, 10608
    Device Node (321):  "/dev/input/event6"

同步客户端 -l

Parameter settings:
    LeftEdge                = 49
    RightEdge               = 1187
    TopEdge                 = 48
    BottomEdge              = 850
    FingerLow               = 25
    FingerHigh              = 30
    MaxTapTime              = 180
    MaxTapMove              = 67
    MaxDoubleTapTime        = 180
    SingleTapTimeout        = 180
    ClickTime               = 100
    EmulateMidButtonTime    = 0
    EmulateTwoFingerMinZ    = 282
    EmulateTwoFingerMinW    = 7
    VertScrollDelta         = 30
    HorizScrollDelta        = 30
    VertEdgeScroll          = 0
    HorizEdgeScroll         = 0
    CornerCoasting          = 0
    VertTwoFingerScroll     = 1
    HorizTwoFingerScroll    = 1
    MinSpeed                = 1
    MaxSpeed                = 1.75
    AccelFactor             = 0.130976
    TouchpadOff             = 0
    LockedDrags             = 0
    LockedDragTimeout       = 5000
    RTCornerButton          = 2
    RBCornerButton          = 3
    LTCornerButton          = 0
    LBCornerButton          = 0
    TapButton1              = 1
    TapButton2              = 3
    TapButton3              = 0
    ClickFinger1            = 1
    ClickFinger2            = 3
    ClickFinger3            = 0
    CircularScrolling       = 0
    CircScrollDelta         = 0.1
    CircScrollTrigger       = 0
    CircularPad             = 0
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 200
    CoastingSpeed           = 20
    CoastingFriction        = 50
    PressureMotionMinZ      = 30
    PressureMotionMaxZ      = 160
    PressureMotionMinFactor = 1
    PressureMotionMaxFactor = 1
    ResolutionDetect        = 1
    GrabEventDevice         = 0
    TapAndDragGesture       = 1
    AreaLeftEdge            = 0
    AreaRightEdge           = 0
    AreaTopEdge             = 0
    AreaBottomEdge          = 0
    HorizHysteresis         = 7
    VertHysteresis          = 7
    ClickPad                = 1
    RightButtonAreaLeft     = 618
    RightButtonAreaRight    = 0
    RightButtonAreaTop      = 736
    RightButtonAreaBottom   = 0
    MiddleButtonAreaLeft    = 0
    MiddleButtonAreaRight   = 0
    MiddleButtonAreaTop     = 0
    MiddleButtonAreaBottom  = 0

这可能是电源管理问题,我试图按照此链接上的步骤操作,但我真的不知道我在这里做什么: https ://wiki.ubuntu.com/DebuggingTouchpadDetection

提前谢谢任何建议。

power-management input-devices touchpad libinput
  • 1 个回答
  • 1555 Views
Martin Hope
Marius Biegger
Asked: 2020-04-21 12:28:55 +0800 CST

udev 规则运行的脚本失败

  • 1

我正在运行Ubuntu 18.4,我遇到了一个脚本问题,该脚本在udev rule触发时拒绝运行。

这是情况:我在 Surface Pro 4 上运行。该设备有一个可拆卸的键盘。我运行一个名为libinput-gestures的软件。每当键盘分离并重新连接时,手势将不起作用。手动修复很容易:

libinput-gestures-setup restart

所以我尝试运行的脚本正是这样做的。这是它的全部荣耀:

#!/bin/sh

libinput-gestures-setup restart

我想在 udev 规则的add事件上运行它。这是 .rules 文件:

ACTION=="add", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="07e8", RUN+="/home/$myuser/.bin/gestures-restart"

并在连接键盘后找到脚本工作正常。但这是记录的内容:

Apr 20 22:20:51 mb-Surface-Pro-4 kernel: [ 2248.005043] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 20 22:20:51 mb-Surface-Pro-4 kernel: [ 2248.005047] usb 1-7: Product: Surface Type Cover
Apr 20 22:20:51 mb-Surface-Pro-4 kernel: [ 2248.005050] usb 1-7: Manufacturer: Microsoft
Apr 20 22:20:51 mb-Surface-Pro-4 kernel: [ 2248.013813] input: Microsoft Surface Type Cover Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:07E8.000D/input/input95
Apr 20 22:20:51 mb-Surface-Pro-4 kernel: [ 2248.072209] input: Microsoft Surface Type Cover Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:07E8.000D/input/input97
Apr 20 22:20:51 mb-Surface-Pro-4 kernel: [ 2248.072444] input: Microsoft Surface Type Cover Touchpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:07E8.000D/input/input99
Apr 20 22:20:51 mb-Surface-Pro-4 kernel: [ 2248.072881] hid-multitouch 0003:045E:07E8.000D: input,hiddev1,hidraw2: USB HID v1.11 Keyboard [Microsoft Surface Type Cover] on usb-0000:00:14.0-7/input0
Apr 20 22:20:51 mb-Surface-Pro-4 mtp-probe: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-7"
Apr 20 22:20:51 mb-Surface-Pro-4 mtp-probe: bus: 1, device: 11 was not an MTP device
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5965]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5965]: message repeated 2 times: [ Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.]
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5982]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5993]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5965]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5992]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5991]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5982]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[6011]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5965]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5992]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5993]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[5991]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 systemd-udevd[6015]: Process '/home/mariusb/.bin/gestures-restart' failed with exit code 1.
Apr 20 22:20:51 mb-Surface-Pro-4 upowerd[868]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:07E8.000D
Apr 20 22:20:51 mb-Surface-Pro-4 upowerd[868]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0
Apr 20 22:20:51 mb-Surface-Pro-4 upowerd[868]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7

所以看起来脚本是这里的问题。这就是我需要帮助的地方,因为我不明白出了什么问题。

作为附加信息:当我安装 libinput 时,我必须将我的用户添加到组libinput。也许与此有关

无论如何,非常感谢提前

编辑: 这似乎与用户未运行的脚本有关。journalctl -xe 打印以下内容:

-- Unit gestures-restart.service has begun starting up.
Apr 20 23:05:44 mb-Surface-Pro-4 gestures-restart[3550]: Non-installation commands must be run as your own user.
Apr 20 23:05:44 mb-Surface-Pro-4 systemd[1]: gestures-restart.service: Main process exited, code=exited, status=1/FAILURE
Apr 20 23:05:44 mb-Surface-Pro-4 systemd[1]: gestures-restart.service: Failed with result 'exit-code'.
Apr 20 23:05:44 mb-Surface-Pro-4 systemd[1]: Failed to start Restart gestures.
-- Subject: Unit gestures-restart.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit gestures-restart.service has failed.
-- 
-- The result is RESULT.

有人现在如何解决这个问题吗?


编辑/更新 2:


我得到了检测键盘连接的服务。它运行良好并根据需要执行重新启动脚本。所以要保持最新:这是我现在的服务:

[Unit]
Description=Service for restarting gestures
Requires=dev-input-by\x2dpath-pci\x2d0000:00:14.0\x2dusb\x2d0:7:1.0\x2devent\x2dmouse.device
After=dev-input-by\x2dpath-pci\x2d0000:00:14.0\x2dusb\x2d0:7:1.0\x2devent\x2dmouse.device

[Service]
Type=simple
User=$user
ExecStart=/home/$user/.bin/gestures-restart.sh

[Install]
WantedBy=dev-input-by\x2dpath-pci\x2d0000:00:14.0\x2dusb\x2d0:7:1.0\x2devent\x2dmouse.device

libinput-gestures -l 提供有关应用程序的一些信息,其中之一是:

libinput-gestures: device /dev/input/by-path/pci-0000:00:14.0-usb-0:7:1.0-event-mouse(event6): Microsoft Surface Type Cover Touchpad

据我了解,这是软件用作输入的设备。所以我使用systemctl list-units并找到了这个设备:

sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d7-1\x2d7:1.0-0003:045E:07E8.0004-input-input29-event6.device

(我通过 event6 属性识别它)并将其用于服务 REQUIRE/AFTER...

到目前为止,这一切看起来都很好。当我分离并重新连接键盘 journalctl -xe 时输出以下内容:

Apr 21 15:22:13 mb-Surface-Pro-4 systemd[1]: Found device Surface_Type_Cover.
-- Subject: Unit dev-input-by\x2dpath-pci\x2d0000:00:14.0\x2dusb\x2d0:7:1.0\x2devent\x2dmouse.device has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit dev-input-by\x2dpath-pci\x2d0000:00:14.0\x2dusb\x2d0:7:1.0\x2devent\x2dmouse.device has finished starting up.
-- 
-- The start-up result is RESULT.
Apr 21 15:22:13 mb-Surface-Pro-4 upowerd[886]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:07E8.0011
Apr 21 15:22:13 mb-Surface-Pro-4 systemd[1]: Started Service for restarting gestures.
-- Subject: Unit gestures-restart.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit gestures-restart.service has finished starting up.
-- 
-- The start-up result is RESULT.
Apr 21 15:22:13 mb-Surface-Pro-4 upowerd[886]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0
Apr 21 15:22:13 mb-Surface-Pro-4 upowerd[886]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7
Apr 21 15:22:13 mb-Surface-Pro-4 gestures-restart.sh[5532]: libinput-debug-events stopped.
Apr 21 15:22:13 mb-Surface-Pro-4 gestures-restart.sh[5532]: libinput-gestures stopped.

如图所示,服务识别连接并启动脚本。脚本然后运行它的停止功能,但它不会再次启动。我知道这可能超出了此问题的范围,但您是否看到明显的原因?谢谢 :)

最后更新

我联系了该实用程序的开发人员。启动操作很可能会失败,因为应用程序需要在实际的用户会话中运行。不是通过系统服务。谢谢你的时间。

scripts usb udev libinput 18.04
  • 2 个回答
  • 2157 Views
Martin Hope
Martin Aa S
Asked: 2020-03-05 02:07:00 +0800 CST

ubuntu 18.04禁用三指粘贴

  • 3

我正在使用 Libinput 手势在我的 ubuntu 系统中使用多指手势。但是,每当我用三个手指向下滑动时,它会做两件事;两者都更改工作区并将剪贴板上的任何内容粘贴到光标选择的任何程序中。

我曾尝试关注其他线程,但没有人给出关于如何从三指手势中删除粘贴功能的明确答案。

请提供一个简单的指南,因为我不是 ubuntu pro。

谢谢!

touchpad libinput 18.04
  • 2 个回答
  • 2952 Views
Martin Hope
Midder
Asked: 2020-03-02 01:45:13 +0800 CST

如何在 ubuntu 19.10 中将触摸板两指轻按配置为中键?使用 Libinput

  • 7

我希望我的触摸板两指轻敲在 ubuntu 19.10 上用作鼠标中键。Ubuntu 中的默认设置是三指轻敲,但我更喜欢使用两根手指。

这在我以前使用突触驱动程序选项的笔记本电脑中非常容易(如此处所述https://askubuntu.com/a/156545/1035668),但看起来这台新笔记本电脑正在使用不同的驱动程序,而我无法弄清楚如何按照我的意愿配置它。

在这里你有输出xinput list:

xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MSFT0001:02 06CB:CD3E Touchpad            id=10   [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)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=9    [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]

的输出xinput list-props 10:

Device 'MSFT0001:02 06CB:CD3E Touchpad':
    Device Enabled (145):   1
    Coordinate Transformation Matrix (147): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (282): 1
    libinput Tapping Enabled Default (283): 0
    libinput Tapping Drag Enabled (284):    1
    libinput Tapping Drag Enabled Default (285):    1
    libinput Tapping Drag Lock Enabled (286):   0
    libinput Tapping Drag Lock Enabled Default (287):   0
    libinput Tapping Button Mapping Enabled (288):  1, 0
    libinput Tapping Button Mapping Default (289):  1, 0
    libinput Natural Scrolling Enabled (290):   0
    libinput Natural Scrolling Enabled Default (291):   0
    libinput Disable While Typing Enabled (292):    1
    libinput Disable While Typing Enabled Default (293):    1
    libinput Scroll Methods Available (294):    1, 1, 0
    libinput Scroll Method Enabled (295):   1, 0, 0
    libinput Scroll Method Enabled Default (296):   1, 0, 0
    libinput Click Methods Available (297): 1, 1
    libinput Click Method Enabled (298):    1, 0
    libinput Click Method Enabled Default (299):    1, 0
    libinput Middle Emulation Enabled (300):    0
    libinput Middle Emulation Enabled Default (301):    0
    libinput Accel Speed (302): 0.000000
    libinput Accel Speed Default (303): 0.000000
    libinput Left Handed Enabled (304): 0
    libinput Left Handed Enabled Default (305): 0
    libinput Send Events Modes Available (267): 1, 1
    libinput Send Events Mode Enabled (268):    0, 0
    libinput Send Events Mode Enabled Default (269):    0, 0
    Device Node (270):  "/dev/input/event6"
    Device Product ID (271):    1739, 52542
    libinput Drag Lock Buttons (306):   <no items>
    libinput Horizontal Scroll Enabled (307):   1```
touchpad libinput
  • 1 个回答
  • 2002 Views
Martin Hope
Custard
Asked: 2020-01-01 09:23:29 +0800 CST

如何在 libinput 中禁用鼠标去抖动

  • 4

刚买了一只新鼠标(光荣模型o),我可以双击它(我点击一次,点击两次)但是我只能让它在窗口上注册两次点击。我已经做了一些研究,我很确定它libinput默认会阻止双击。有没有办法让它不会试图取消双击?我知道对于大多数人来说,防止双击很有用,但是我希望能够双击以在 Minecraft 中获得更高的 CPS,而且我从来没有设法意外地获得双击。

mouse libinput
  • 2 个回答
  • 5348 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve