我正在运行 evdev 的一个变体,目的是使用现代 ThinkPad 上的 TrackPoint 和点击板进行滚轮模拟滚动。驱动程序运行良好,但滚动模拟在暂停事件后停止工作。为了尝试在恢复后使其工作(而不是必须重新启动计算机),我该如何重新启动 evdev?
司机 (https://aur.archlinux.org/packages/xf86-input-evdev-trackpoint/) 的 Arch 由 Taegil Bae (esrevinu) 创建 (https://bitbucket.org/esrevinu/xf86-input-evdev-trackpoint) 和程序 (https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/1246683/comments/40) 由 dalcde (https://launchpad.net/~dalcde)来打包 Ubuntu 的驱动程序并进行更新。步骤如下:
sudo apt-get install git
sudo apt-get build-dep xserver-xorg-input-evdev xserver-xorg-input-synaptics
wget https://aur.archlinux.org/packages/xf/xf86-input-evdev-trackpoint/xf86-input-evdev-trackpoint.tar.gz
tar -xzf xf86-input-evdev-trackpoint.tar.gz
git clone git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-input-evdev
git clone git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-input-synaptics
mv xf86-input-evdev-trackpoint arch
mv xserver-xorg-input-evdev evdev
mv xserver-xorg-input-synaptics synaptics
cp synaptics/src/{eventcomm.c,eventcomm.h,properties.c,synaptics.c,synapticsstr.h,synproto.c,synproto.h} evdev/src
cp synaptics/include/synaptics-properties.h evdev/src
cp arch/*.patch evdev
cd evdev
patch -p1 -i 0001-implement-trackpoint-wheel-emulation.patch
patch -p1 -i 0008-disable-clickpad_guess_clickfingers.patch
patch -p1 -i 0010-add-synatics-files-into-Makefile.am.patch
dpkg-buildpackage
cd ..
sudo dpkg -i xserver-xorg-input-evdev_*.deb
sudo apt-get remove xserver-xorg-input-synaptics
sudo mkdir /etc/X11/xorg.conf.d/
sudo cp arch/90-evdev-trackpoint.conf /etc/X11/xorg.conf.d