Ait*_*tch 7 ubuntu touchpad apple
我买了一个Apple Magic Trackpad2
,想在 Ubuntu 16.04 上使用它。实际上移动指针是有效的,但例如两根手指滚动或点击以单击无效。所以我想出了以下调查:
/dev/input/eventX
,而移动指针会synaptics
驱动程序,但是evdev
,请参阅 X11 日志Xorg.0.log
:
[ 1167.805] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/event13)
[ 1167.805] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "evdev pointer catchall"
[ 1167.805] (II) Using input driver 'evdev' for 'Apple Inc. Magic Trackpad 2'
[ 1167.805] (**) Apple Inc. Magic Trackpad 2: always reports core events
[ 1167.806] (**) evdev: Apple Inc. Magic Trackpad 2: Device: "/dev/input/event13"
[ 1167.860] (--) evdev: Apple Inc. Magic Trackpad 2: Vendor 0x5ac Product 0x265
[ 1167.860] (--) evdev: Apple Inc. Magic Trackpad 2: Found 3 mouse buttons
[ 1167.860] (--) evdev: Apple Inc. Magic Trackpad 2: Found relative axes
[ 1167.860] (--) evdev: Apple Inc. Magic Trackpad 2: Found x and y relative axes
[ 1167.860] (II) evdev: Apple Inc. Magic Trackpad 2: Configuring as mouse
[ 1167.860] (**) evdev: Apple Inc. Magic Trackpad 2: YAxisMapping: buttons 4 and 5
[ 1167.860] (**) evdev: Apple Inc. Magic Trackpad 2: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 1167.860] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.4/3-1.4.1/3-1.4.1:1.1/0003:05AC:0265.0005/input/input16/event13"
[ 1167.860] (II) XINPUT: Adding extended input device "Apple Inc. Magic Trackpad 2" (type: MOUSE, id 11)
[ 1167.860] (II) evdev: Apple Inc. Magic Trackpad 2: initialized for relative axes.
[ 1167.860] (**) Apple Inc. Magic Trackpad 2: (accel) keeping acceleration scheme 1
[ 1167.860] (**) Apple Inc. Magic Trackpad 2: (accel) acceleration profile 0
[ 1167.860] (**) Apple Inc. Magic Trackpad 2: (accel) acceleration factor: 2.000
[ 1167.860] (**) Apple Inc. Magic Trackpad 2: (accel) acceleration threshold: 4
[ 1167.860] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/mouse1)
Run Code Online (Sandbox Code Playgroud)
它拥有bcm5974
和hdi
使用补丁,注册苹果Magic trackpad2。只需编译它并从中创建一个deb
文件即可。安装后,您可以检查dkms status
:
...
bcm5974, 4.4+magictrackpad2, 4.4.0-116-generic, x86_64: installed
hid, 4.4+magictrackpad2, 4.4.0-116-generic, x86_64: installed
...
Run Code Online (Sandbox Code Playgroud)
还有一个新的 X11 conf 注册在/usr/share/X11/xorg.conf.d/49-synaptics-bcm5974.conf
. 问题是,在文件中定义了一个部分MatchDriver "synaptics"
,正如我所说,触控板没有注册为 ,touchpad
而是注册为mouse
,所以驱动程序是evdev
.
所以我正在调查为什么触控板被识别为鼠标。我不确定,但我觉得底层是这样做的,比如udev
甚至HAL
. 这对我来说真的很新鲜。
我的问题是是否有人可以帮助我解决这个问题,或者至少是哪个组件负责确定input
设备是鼠标还是触控板。
非常感谢,意义重大!
归档时间: |
|
查看次数: |
2740 次 |
最近记录: |