在fedora37中,因为要是用cuda,故不能使用wayland,导致gesture不能用,不是很方便。今天稍微弄一下,很简单
一共就两步:
1.安装touchegg
2.在extension中安装x11gestures
搞定
如果有问题的话,可以使用下面的命令进行初步debug:
sudo libinput debug-events --verbose
命令运行以后,进行3指滑动测试。
出现类似下面的信息说明系统能够收到3指滑动信息:
... event5 - gesture state GESTURE_STATE_NONE → GESTURE_EVENT_FINGER_DETECTED → GESTURE_STATE_UNKNOWN
5: event5 - button state: touch 0 from BUTTON_STATE_BOTTOM event BUTTON_EVENT_IN_AREA to BUTTON_STATE_AREA
... event5 - gesture state GESTURE_STATE_UNKNOWN → GESTURE_EVENT_RESET → GESTURE_STATE_NONE
... event5 - gesture state GESTURE_STATE_NONE → GESTURE_EVENT_FINGER_DETECTED → GESTURE_STATE_UNKNOWN
11: event5 - gesture state GESTURE_STATE_UNKNOWN → GESTURE_EVENT_SWIPE → GESTURE_STATE_SWIPE
-event5 GESTURE_SWIPE_BEGIN +0.060s 3
event5 GESTURE_SWIPE_UPDATE +0.060s 3 -0.29/-6.85 (-0.33/-7.70 unaccelerated)
。。。
142: event5 - button state: touch 0 from BUTTON_STATE_AREA event BUTTON_EVENT_UP to BUTTON_STATE_NONE
... event5 - button state: touch 1 from BUTTON_STATE_AREA event BUTTON_EVENT_UP to BUTTON_STATE_NONE
... event5 - button state: touch 2 from BUTTON_STATE_AREA event BUTTON_EVENT_UP to BUTTON_STATE_NONE
... event5 - gesture state GESTURE_STATE_SWIPE → GESTURE_EVENT_RESET → GESTURE_STATE_NONE
event5 GESTURE_SWIPE_END +0.983s 3
阅读(369) | 评论(0) | 转发(0) |