所以本文主要介绍如何配置libinput-gestures。 libinput 安装 install basic libinput and xf86-input-libinput sudo gpasswd -a $USER input sudo pacman -S libinput xf86-input-libinput 配置 libinput有两种配置方式: 使用配置文件的永久配置方式 使用xinput命令行工具,针对运行时(runtime)进行实时配置,主要用来调试 libinput-gestures安装后会有默认的配置,位置在/etc/libinput-gestures.conf,用户可以在~/libinput-gestures.conf配置自己的配置。 相关参考 GitHub: libinput-gestures arch wiki: libinput libinput official doc: related pages libinput man
libinput 使用 libinput 驱动时需要将 xinput_calibrator 输出的数据进行计算才可使用,计算方法参见: Libinput breaks xinput_calibrator screen_y * 6 / 8) / (c3_y - c0_y) f = ((screen_y / 8) - (e * c0_y)) / screen_y print("Try set 'libinput /touchscreen_calibration_convert.py 344 193 382 246 376 1761 Try set 'libinput Calibration Matrix' to '-43.0, 0.0, 47.9, 0.0, 0.1, 0.0, 0.0, 0.0, 1.0' 执行命令 xinput set-prop 11 libinput Calibration Matrix 参考文档 man 4 evdev : 需要安装 xserver-xorg-input-evdev man 4 libinput : 需要安装 xserver-xorg-input-libinput
#SUBSYSTEM=="input",KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1",ENV{LIBINPUT_CALIBRATION_MATRIX 一般无须校准,重启后可以直接使用;如使用电阻屏则需要通过如下命令修改weston-touch-calibrator,执行该命令前,需要修改/etc/xdg/weston/weston.ini文件,找到[libinput [libinput]# Uncomment below toenable touch screen calibrator(weston-touch-calibrator)touchscreen_calibrator touchscreen.rules文件中,修改如下:SUBSYSTEM=="input",KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1",ENV{LIBINPUT_CALIBRATION_MATRIX
源码与模块结构 wayland/weston/libinput等项目源码位于http://cgit.freedesktop.org/wayland下。 • libinput:输入处理,依赖于mtdev, libudev, libevdev等库。 • libxkbcommon:主要用于键盘处理。 libinput更像是一个框架,它将几个更底层的库的功能整合起来。 从事件处理模型上来看,libinput的主循环监听udev monitor fd,它主要用于监听设备的添加删除事件。如果有设备添加,会打开该设备并把fd加入到libinput的主循环上。 另一方面,Weston中会将libinput的epoll fd加入主循环。
源码与模块结构 wayland/weston/libinput等项目源码位于http://cgit.freedesktop.org/wayland下。 • libinput:输入处理,依赖于mtdev, libudev, libevdev等库。 • libxkbcommon:主要用于键盘处理。 libinput更像是一个框架,它将几个更底层的库的功能整合起来。 从事件处理模型上来看,libinput的主循环监听udev monitor fd,它主要用于监听设备的添加删除事件。如果有设备添加,会打开该设备并把fd加入到libinput的主循环上。 另一方面,Weston中会将libinput的epoll fd加入主循环。
packages have unmet dependencies: deepin.com.wechat:i386 : Depends: deepin-wine:i386 (>= 2.18-19) libinput-tools
- 所以manjaro官方把触控板驱动换成了支持wayland的libinput,但是默认情况下xorg(我目前用的)中的plasma桌面的设置中触控板管理工具无法完成libinput触控板驱动的实时配置 ,所以根据arch wiki的指示下安装了支持实时配置libinput的图形化工具kcm-pointing-devices-git(aur中,其他桌面就智者见智吧), ?
install rustup gcc clang \libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev \libwayland-dev libinput-dev
此外,它还将默认网络连接管理器换成了 NetWorkManager 1.8、切换至使用 libinput 库(作为一个在 Wayland 合成器中处理输入设备的通用 X.Org 输入驱动)、部署全新的
ttf-joypixels 接着安装一下驱动 sudo pacman -S alsa-utils sof-firmware alsa-ucm-conf xf86-video-intel mesa xf86-input-libinput xf86-video-intel: Intel核显的渠道,这里我只安装了核心显卡的驱动,如果你有另外的独立显卡,请参考官方文档中的相关内容 mesa: 用來配合显卡的另一种上层驱动 xf86-input-libinput
-no-xkbcommon-evdev 当编译libinput支持时,不使用X-less xkbcommon. * -xkbcommon-evdev 当编译libinput支持时,使用X-less xkbcommon 使用 es2 的<api>将替代自动检测 -no-libinput 禁用libinput支持. * -libinput 启用libinput 支持. yes (in QtGui, using bundled copy) PNG .................. yes (in QtGui, using bundled copy) libinput
sudo apt install libinput-tools sudo apt install xdotool sudo apt install ruby 2.3.
notification-daemon 硬件兼容性说明 硬件类型 配置要求 推荐驱动 显卡 Vulkan 1.3兼容 AMD: amdvlk NVIDIA: nvidia-dkms 输入设备 libinput
手写笔按钮移动画布/功能不正常:确保已安装并加载了xf86-input-wacom(X11驱动)、libinput(Wayland)和libwacom。
⑤ APP 对输入事件的处理: APP 获得数据的方法有 2 种:直接访问设备节点(比如/dev/input/event0,1,2,…),或者通过 tslib、 libinput 这类库来间接访问设备节点
weston-touch-calibrator.rules udev规则文件内容如下: ATTRS{name}=="ADS7846 Touchscreen",ENV{WL_OUTPUT}="LVDS-1",ENV{LIBINPUT_CALIBRATION_MATRIX
# services.libinput.enable = true; # Define a user account.
⑤ APP 对输入事件的处理: APP 获得数据的方法有 2 种:直接访问设备节点(比如/dev/input/event0,1,2,…),或者通过 tslib、 libinput 这类库来间接访问设备节点
mesa-libGLES tigervnc-server wayland-protocols-devel xorg-x11-drv-keyboard xorg-x11-drv-libinput
libgmp.so 基础系统 一个GNU的任意精度库 libgnutls.so 基础系统 TLS协议实现库 libinput.so 基础系统 输入设备控制库 liboil-0.3.so 基础系统 对CPU libgmp.so 基础系统 一个GNU的任意精度库 libgnutls.so 基础系统 TLS协议实现库 libinput.so 基础系统 输入设备控制库 liboil-0.3.so 基础系统 对CPU libgmp.so 基础系统 一个GNU的任意精度库 libgnutls.so 基础系统 TLS协议实现库 libinput.so 基础系统 输入设备控制库 liboil-0.3.so 基础系统 对CPU