我想用这个
像这样:
具体来说,我尝试使用 TrackPoint 启用滚轮模拟,当点击板被按下。
我检查了xev
使用 TrackPoint 专用按钮进行滚动时的输出(按钮 4 被识别为向上滚动操作,按钮 5 被识别为向下滚动操作),但使用点击板按钮时的行为有所不同(按钮 2 被单独识别)。看来需要修改驱动程序才能使用点击板的中间按钮进行滚动。
此类驱动程序似乎可在此处获得:
https://aur.archlinux.org/packages/xf86-input-evdev-trackpoint/
如何在 Ubuntu 中安装该驱动程序?
答案1
我最近买了 ThinkPad W540(高端型号),新一代 ClickPad 一直在我脑海中萦绕... 新 14.04 总是出问题。 但我终于让它正常工作了!
对于 Ubuntu(14.04 LTS 及更早版本),您需要较新的 evdev 和 synaptics(直到它不会被实现),才能使其与 AUR 的 arch pkg 一起工作。我在脚本中做了一些修复和增强 - 下面您可以看到它的内容。
为了使其工作,以普通用户身份打开终端,转到某些工作目录并输入:
touch install.sh
chmod +x install.sh
gedit install.sh
然后复制/粘贴脚本,保存并关闭 gedit。返回终端并以普通用户身份运行它:
./install.sh
脚本:
#!/bin/bash
echo --------------------------------------------------------------------
echo If you miss some dependances or packages, than install them first...
echo --------------------------------------------------------------------
sudo apt-get install libevdev-dev libevdev2
sudo apt-get build-dep xserver-xorg-input-evdev xserver-xorg-input-synaptics
wget https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-evdev_2.9.0.orig.tar.gz
wget https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-evdev_2.9.0-1ubuntu1.diff.gz
wget https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-evdev_2.9.0-1ubuntu1.dsc
wget https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-synaptics_1.8.0.orig.tar.gz
wget https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-synaptics_1.8.0-1~exp2ubuntu2.diff.gz
wget https://launchpad.net/ubuntu/+archive/primary/+files/xserver-xorg-input-synaptics_1.8.0-1~exp2ubuntu2.dsc
dpkg-source -x --no-check xserver-xorg-input-evdev_2.9.0-1ubuntu1.dsc
dpkg-source -x --no-check xserver-xorg-input-synaptics_1.8.0-1~exp2ubuntu2.dsc
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
mv xf86-input-evdev-trackpoint arch
mv xserver-xorg-input-evdev-2.9.0 evdev
mv xserver-xorg-input-synaptics-1.8.0 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 0004-disable-clickpad_guess_clickfingers.patch
patch -p1 -i 0006-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
echo If everything was OK, than logout/reboot and enjoy fully working ThinkPad Trackpoint/ClickPad
echo If you want to deactivate touch area of ClickPad for pure TrackPoint usage
echo edit /etc/X11/xorg.conf.d/90-evdev-trackpoint.conf and change "0" to "1" at line
echo Option "AreaBottomEdge" "0"
echo Regards, T_Send
答案2
根据建议迈克, 这司机为 Arch 创建Taegil Bae (裴泰吉)可以针对 Ubuntu 进行打包并使用程序描述达尔克德. 该程序由faf0,因为 tar.gz 文件来自达尔克德2015年12月起不再提供。流程如下:
#!/bin/bash
sudo apt-get install git
sudo apt-get build-dep xserver-xorg-input-evdev xserver-xorg-input-synaptics
mkdir tmp-trackpoint
cd tmp-trackpoint
git clone https://aur.archlinux.org/xf86-input-evdev-trackpoint.git
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 0004-disable-clickpad_guess_clickfingers.patch
patch -p1 -i 0006-add-synatics-files-into-Makefile.am.patch
dpkg-buildpackage -d
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
上述过程适用于 Ubuntu 14.04。
答案3
升级到 Ubuntu 15.10 或更高版本并安装xserver-xorg-输入-libinput
默认情况下不安装。请参阅: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/1246683