更新:我刚刚从17.10升级到18.04。因为我当时正在做一个大项目,所以我不想冒任何风险,所以不能早些时候这么做。Elan触控板现在由xinput正确地报告。现在我只需要试着关掉三指水龙头.
我想改变我的触屏的默认行为。我经常不小心用三个手指(如滚动时)碰触触控板,这会导致在我的剪贴板上粘贴任何碰巧的东西.
我在xorg.dconf中尝试了一些选项,但没有效果。我的怀疑是,我没有提到触屏,因为我在识别它方面有困难。
华硕UX310 Ubuntu 17.10
$ uname -a
Linux UX310 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:13 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:13 id=7 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:13 id=8 [slave keyboard (3)]
$ cat /proc/bus/input/devices
I: Bus=0018 Vendor=04f3 Product=3022 Version=0100
N: Name="ELAN1200:00 04F3:3022 Touchpad"
P: Phys=i2c-ELAN1200:00
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-6/i2c-ELAN1200:00/0018:04F3:3022.0001/input/input15
U: Uniq=
H: Handlers=mouse0 event14
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=260800000000003
$ dmesg
i2c_hid i2c-ELAN1200:00: i2c-ELAN1200:00 supply vdd not found, using dummy regulator
hid-multitouch 0018:04F3:3022.0001: Ignoring the extra HID_DG_INPUTMODE
input: ELAN1200:00 04F3:3022 Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-6/i2c-ELAN1200:00/0018:04F3:3022.0001/input/input15
hid-multitouch 0018:04F3:3022.0001: input,hidraw0: I2C HID v1.00 Mouse [ELAN1200:00 04F3:3022] on i2c-ELAN1200:00
$ udevadm info --query=property --name=/dev/input/event14
DEVLINKS=/dev/input/by-path/pci-0000:00:15.1-platform-i2c_designware.1-event-mouse
DEVNAME=/dev/input/event14
DEVPATH=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-6/i2c-ELAN1200:00/0018:04F3:3022.0001/input/input15/event14
ID_INPUT=1
ID_INPUT_HEIGHT_MM=70
ID_INPUT_TOUCHPAD=1
ID_INPUT_WIDTH_MM=103
ID_PATH=pci-0000:00:15.1-platform-i2c_designware.1
ID_PATH_TAG=pci-0000_00_15_1-platform-i2c_designware_1
ID_SERIAL=noserial
LIBINPUT_DEVICE_GROUP=18/4f3/3022:i2c-ELAN1200:00
MAJOR=13
MINOR=78
SUBSYSTEM=input
USEC_INITIALIZED=3437217当我运行xinput test 6时,当我触摸、点击或单击触摸屏时,活动就会显示在屏幕上。
$ xinput --list-props 6
Device 'xwayland-pointer:13':
Device Enabled (119): 1
Coordinate Transformation Matrix (121): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (244): 0
Device Accel Constant Deceleration (245): 1.000000
Device Accel Adaptive Deceleration (246): 1.000000
Device Accel Velocity Scaling (247): 10.000000我试图覆盖触摸屏的默认行为。
$ ls /usr/share/X11/xorg.conf.d/
10-amdgpu.conf 10-quirks.conf 11-evdev-quirks.conf 40-libinput.conf 70-synaptics.conf
10-evdev.conf 10-radeon.conf 11-evdev-trackpoint.conf 51-synaptics-quirks.conf 70-wacom.conf并创建了71-touchpad-disable3touch.conf。
我试过的例子:
Section "InputClass"
Identifier "touchpad disable 3finger touch paste"
MatchIsPointer "true"
Option "Emulate3Buttons" "false"
Option "TapButton2" "3"
Option "ClickFinger2" "3"
Option "SwapAxes" "true"
EndSection添加SwapAxes是为了非常清楚的是,触摸屏配置是否被选中。但没有交换斧头,也没有重新映射按钮:
$ xmodmap -pp
There are 10 pointer buttons defined.
Physical Button
Button Code
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10每次编辑.conf之后,我就重新启动我的系统。
我怎么才能改变我的触控板的行为?
发布于 2018-07-25 12:04:00
解决了。
我第一次从Ubuntu17.10升级到18.04。Elan触控板现在由xinput正确地报告。
我仍然对xorg.conf没有任何进展,所以我尝试了GNOME工具。
$ sudo apt install gnome-tweak-tool然后运行刚刚安装的‘微调’应用程序,转到‘键盘和鼠标’部分,并设置‘中间点击粘贴=关闭’和‘鼠标点击仿真=手指’。
https://askubuntu.com/questions/1056313
复制相似问题