我有一台新的联想 Yoga 2 11 英寸可转换笔记本电脑,据我所知,它有一个 Elantech 触摸板。双指滚动和双指点击在 Windows 和 Fedora 中运行良好,但在 Ubuntu 中不起作用。我该如何让它工作?
我注意到在 Fedora(一切正常)中,我的触摸板被报告为“ETPS/2 Elantech 触摸板”,而在 Ubuntu 中它被报告为通用的“PS/2 鼠标”,但事实并非如此。我感觉这与驱动程序、配置或其他东西有关,但我不确定如何正确设置它。
以下是 的输出cat /proc/bus/input/devices
:
I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
U: Uniq=
H: Handlers=event0
B: PROP=0
B: EV=21
B: SW=1
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=10000000000000 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=3
B: KEY=10000000000000 0
I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=sysrq kbd event3
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7
I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input6
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0
I: Bus=0003 Vendor=03eb Product=8c1d Version=0111
N: Name="Atmel Atmel maXTouch Digitizer"
P: Phys=usb-0000:00:14.0-7/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-7/2-7:1.0/0003:03EB:8C1D.0002/input/input7
U: Uniq=
H: Handlers=mouse1 event6
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0
B: ABS=260800000000003
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel HDMI HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input8
U: Uniq=
H: Handlers=event7
B: PROP=0
B: EV=21
B: SW=140
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel HDMI HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input9
U: Uniq=
H: Handlers=event8
B: PROP=0
B: EV=21
B: SW=140
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel HDMI HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input10
U: Uniq=
H: Handlers=event9
B: PROP=0
B: EV=21
B: SW=140
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card1/input11
U: Uniq=
H: Handlers=event10
B: PROP=0
B: EV=21
B: SW=10
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card1/input12
U: Uniq=
H: Handlers=event11
B: PROP=0
B: EV=21
B: SW=4
I: Bus=0003 Vendor=1bcf Product=2c66 Version=0003
N: Name="Lenovo EasyCamera"
P: Phys=usb-0000:00:14.0-1/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/input/input13
U: Uniq=
H: Handlers=kbd event12
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input15
U: Uniq=
H: Handlers=mouse0 event4
B: PROP=0
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3
答案1
我最近通过修补 psmouse 内核模块来识别触控板,从而使朋友的 Yoga 2 能够正常工作。以下是我操作的方法(根据内存和浏览器历史记录):
wget 'https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1166442/+attachment/3941591/+files/psmouse-elantech-x551c.tar.gz'
sudo dkms ldtarball --force psmouse-elantech-x551c.tar.gz
sudo dkms install -m psmouse -v elantech-x551c
sudo rmmod psmouse && sudo modprobe psmouse
之后您必须重新启动 X(或重启)。
资料来源:
- Ubuntu 错误报告特别是评论#137 和 #161
- 邪恶编码猴子
万一没有工作给我们输出:
cat /proc/bus/input/devices
答案2
Jon 如果 xinput -list 的输出 ->>>> ↳ ETPS/2 Elantech Touchpad 看到链接:
http://www.yourownlinux.com/2014/10/how-to-install-linux-kernel-3-18-rc1-in-linux.html 或者 http://linuxg.net/how-to-install-kernel-3-18-rc2-on-ubuntu-14-10-ubuntu-14-04-and-derivatives/
重新启动你的 Ubuntu:
1 - 单击“选项设置系统”(Ubuntu 启动栏上的齿轮图标)。您也可以通过单击 Ubuntu 顶部栏上时钟旁边的图标来访问相同的选项。
2 - 在“系统设置”中,单击“鼠标和触摸板选项”。
3 - 在打开的窗口中,找到“触摸板”选项。如果它未激活(“开启”),请单击右侧的“关闭”按钮以将其激活。
4 – 现在通过单击选项旁边的框来选择“用两根手指滚动选项”。
准备好了!现在您可以随时使用两根手指在 Ubuntu 中进行滚动。
答案3
安装
只需通过 apt-get 安装 synaptic 包
sudo apt-get update
sudo apt-get install synaptic
配置:(您可以通过“设置”>>“触摸板”中的 GUI 进行配置,但更多配置如下:
/etc/X11/xorg.conf.d/50-synaptics.conf
Section "InputClass"
Identifier "touchpad"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"
Option "HorizTwoFingerScroll" "on"
Option "CircularScrolling" "on"
Option "CircScrollTrigger" "2"
Option "EmulateTwoFingerMinZ" "40"
Option "EmulateTwoFingerMinW" "8"
Option "CoastingSpeed" "0"
Option "FingerLow" "35"
Option "FingerHigh" "40"
...
帮助:
TapButton1
(integer) configures which mouse-button is reported on a non-corner, one finger tap.
TapButton2
(integer) configures which mouse-button is reported on a non-corner, two finger tap
TapButton3
(integer) configures which mouse-button is reported on a non-corner, three finger tap
...
VertEdgeScroll
(boolean) enables vertical scrolling while dragging across the right edge of the touch pad.
HorizEdgeScroll
(boolean) enables horizontal scrolling while dragging across the bottom edge of the touch pad.
VertTwoFingerScroll
(boolean) enables vertical scrolling using two fingers.
HorizTwoFingerScroll
(boolean) enables horizontal scrolling using two fingers.
...
来源:https://wiki.archlinux.org/index.php/Touchpad_Synaptics#Installation
答案4
尝试以下方法此主题:
打开你的/etc/X11/xorg.conf.d/10-evdev.conf
并用#s注释掉此段:
#Section "InputClass"
# Identifier "evdev touchpad catchall"
# MatchIsTouchpad "on"
# MatchDevicePath "/dev/input/event*"
# Driver "evdev"
#EndSection
现在创建一个名为的文件,/etc/X11/xorg.conf.d/10-synaptics.conf
其中包含以下内容:
Section "Module"
Load "synaptics"
EndSection
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "VertEdgeScroll" "on"
EndSection
现在注销并重新登录。如果不介意的话,请重新启动。然后您可以尝试运行以下命令:
synclient VertTwoFingerScroll=1
synclient HorizTwoFingerScroll=0 #or 1 if you need it
synclient EmulateTwoFingerMinY=5
synclient EmulateTwoFingerMinZ=48
并检查两指滚动是否有效。
如果确实如此,您必须找到一种方法,在每次登录 GUI 时运行上述行。