首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有trackpoint Thinkpad T540p的中间按钮滚动

带有trackpoint Thinkpad T540p的中间按钮滚动
EN

Ask Ubuntu用户
提问于 2016-08-25 08:40:23
回答 2查看 3.5K关注 0票数 2

在我的Thinkpad T540p上,我不能通过按下点击盘的中间按钮区域并移动跟踪点来滚动。我的笔记本电脑正在运行Debian (a.k.a )。当前的测试版本)。

据了解,对于没有独立硬件按钮的Thinkpad笔记本电脑来说,这是一个常见的问题(比如T540s或其他只点击鼠标的系列)。

我已经尝试过按照指示的TrackPoint配置这里,但是我没有设法使它正常工作。

如何在T540p上解决这个问题?

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2016-09-03 14:09:01

不幸的是,在Debian扩展中,您将无法设置任何Wheel Emulation,因为这些选项根本不可用。您需要下载、修补、编译和安装来自ArchLinux发行版的evdev包。我遵循了这个答案中详细的说明。我已经把它们贴在下面了:

代码语言:javascript
复制
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

这些指令在Debian上没有开箱即用,因为我遇到了一些编译错误,因为xorg-server.h头没有包含在eventcomm.hsynproto.h头文件中。在加入#includes之后,它起了作用。

我安装了包,然后将90-evdev-trackpoint.conf复制到/etc/X11/xorg.conf.d。我将配置更改为:

代码语言:javascript
复制
Section "InputClass"
    Identifier "Clickpad"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    # Synaptics options come here.
    Option "TapButton1" "1"
    Option "TapButton2" "3"
    Option "TapButton3" "2"
    Option "SoftButtonAreas" "67% 0 0 30% 33% 67% 0 30%"
    Option "AreaTopEdge"          "40%"
    Option "AreaBottomEdge"       "0"
EndSection

Section "InputClass"
    Identifier "Trackpoint Wheel Emulation"
    MatchProduct "TPPS/2 IBM TrackPoint"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "EmulateWheel" "true"
    Option "EmulateWheelButton" "2"
    Option "Emulate3Buttons" "false"
    Option "EmulateWheelInertia" "40"
    Option "XAxisMapping" "6 7"
    Option "YAxisMapping" "4 5"
EndSection

希望这对其他人有用。

票数 0
EN

Ask Ubuntu用户

发布于 2016-09-23 13:21:36

根据bug report 中间按钮不适用于滚动。上的注释88号,这个问题可以通过安装以下软件包立即解决:

代码语言:javascript
复制
sudo apt-get install xserver-xorg-input-libinput

在Ubuntu16.04.1LTS的T440上为我工作

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/816608

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档