上个月的时候还好好的,但是最近一直在用无线鼠标用.今天无线鼠标的时候没电了,所以想直接用触控板来操作,发现触控板失灵了.在windows下是可以使用的,所以触控板是没有坏的,应该是ArchLinux的问题
更多的感觉是驱动的问题,这个是
/var/log/Xorg.0.log
的部分内容,其中ETPS/2 Elantech Touchpad就是我的触控板的设备编号
[ 5.870] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event12)
[ 5.871] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[ 5.871] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[ 5.871] (II) Using input driver 'libinput' for 'ETPS/2 Elantech Touchpad'
[ 5.871] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 5.871] (**) Option "Device" "/dev/input/event12"
[ 5.871] (**) Option "_source" "server/udev"
[ 5.888] (II) event12 - ETPS/2 Elantech Touchpad: is tagged by udev as: Touchpad
[ 5.902] (II) event12 - ETPS/2 Elantech Touchpad: device is a touchpad
[ 5.902] (II) event12 - ETPS/2 Elantech Touchpad: device removed
[ 6.001] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input10/event12"
[ 6.001] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 16)
[ 6.002] (**) Option "AccelerationScheme" "none"
[ 6.002] (**) ETPS/2 Elantech Touchpad: (accel) selected scheme none/0
[ 6.002] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[ 6.002] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[ 6.003] (II) event12 - ETPS/2 Elantech Touchpad: is tagged by udev as: Touchpad
[ 6.004] (II) event12 - ETPS/2 Elantech Touchpad: device is a touchpad
[ 6.004] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[ 6.004] (II) No input driver specified, ignoring this device.
[ 6.004] (II) This device may have been added with another device file.
[ 6.005] (II) config/udev: Adding input device PC Speaker (/dev/input/event8)
[ 6.005] (II) No input driver specified, ignoring this device.
[ 6.005] (II) This device may have been added with another device file.
最近编辑记录 LittleControl (2020-01-31 21:44:50)
Arch+i3
离线
xinput 看一下它的编号,然后 xinput list-props X 看一下它的属性。看看它是不是被禁用了。
离线
这个是xinput list-props的输出结果,看样子应该是没有被禁用的
~|⇒ xinput list-props 18
Device 'ETPS/2 Elantech Touchpad':
Device Enabled (169): 1
Coordinate Transformation Matrix (171): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (322): 1
libinput Tapping Enabled Default (323): 0
libinput Tapping Drag Enabled (324): 1
libinput Tapping Drag Enabled Default (325): 1
libinput Tapping Drag Lock Enabled (326): 0
libinput Tapping Drag Lock Enabled Default (327): 0
libinput Tapping Button Mapping Enabled (328): 1, 0
libinput Tapping Button Mapping Default (329): 1, 0
libinput Natural Scrolling Enabled (304): 0
libinput Natural Scrolling Enabled Default (305): 0
libinput Disable While Typing Enabled (330): 1
libinput Disable While Typing Enabled Default (331): 1
libinput Scroll Methods Available (306): 1, 1, 0
libinput Scroll Method Enabled (307): 1, 0, 0
libinput Scroll Method Enabled Default (308): 1, 0, 0
libinput Click Methods Available (332): 1, 1
libinput Click Method Enabled (333): 1, 0
libinput Click Method Enabled Default (334): 1, 0
libinput Middle Emulation Enabled (311): 0
libinput Middle Emulation Enabled Default (312): 0
libinput Accel Speed (313): 0.000000
libinput Accel Speed Default (314): 0.000000
libinput Left Handed Enabled (318): 0
libinput Left Handed Enabled Default (319): 0
libinput Send Events Modes Available (289): 1, 1
libinput Send Events Mode Enabled (290): 0, 0
libinput Send Events Mode Enabled Default (291): 0, 0
Device Node (292): "/dev/input/event13"
Device Product ID (293): 2, 14
libinput Drag Lock Buttons (320): <no items>
libinput Horizontal Scroll Enabled (321): 1
~|⇒
Arch+i3
离线
在日志里观察到有这边的输出内容,
[ 6.292] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[ 6.292] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[ 6.292] (II) Using input driver 'libinput' for 'ETPS/2 Elantech Touchpad'
[ 6.292] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 6.292] (**) Option "Device" "/dev/input/event13"
[ 6.292] (**) Option "_source" "server/udev"
[ 6.293] (II) event13 - ETPS/2 Elantech Touchpad: is tagged by udev as: Touchpad
[ 6.294] (II) event13 - ETPS/2 Elantech Touchpad: device is a touchpad
[ 6.294] (II) event13 - ETPS/2 Elantech Touchpad: device removed
最后不知道为什么又被removed了,会不会是驱动程序的原因
Arch+i3
离线
这。。。这块设备是/dev/input/event13吧,你看一下/dev下面还有这设备节点吗?看起来就像是这块设备突然断开了物理连接一样。。。
如果你没有什么奇怪的自定义udev rules的话,怀疑就是某种内核更新后的新BUG。
最近编辑记录 xtricman (2019-12-11 08:38:49)
反社会,精神极其不稳定,随时可能炸碎身边所有人
离线
这。。。这块设备是/dev/input/event13吧,你看一下/dev下面还有这设备节点吗?看起来就像是这块设备突然断开了物理连接一样。。。
如果你没有什么奇怪的自定义udev rules的话,怀疑就是某种内核更新后的新BUG。
/dev/input/event13是存在的,我是没有自定义udev 的,毕竟是菜鸟,还没有到那个程度感觉还是驱动的问题
在log里的最后还有这个东西
[ 6.338] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input12/event13"
[ 6.338] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 18)
[ 6.339] (**) Option "AccelerationScheme" "none"
[ 6.339] (**) ETPS/2 Elantech Touchpad: (accel) selected scheme none/0
[ 6.339] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[ 6.339] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[ 6.339] (II) event13 - ETPS/2 Elantech Touchpad: is tagged by udev as: Touchpad
[ 6.340] (II) event13 - ETPS/2 Elantech Touchpad: device is a touchpad
[ 6.341] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[ 6.341] (II) No input driver specified, ignoring this device.
[ 6.341] (II) This device may have been added with another device file.
[ 6.341] (II) config/udev: Adding input device PC Speaker (/dev/input/event9)
[ 6.341] (II) No input driver specified, ignoring this device.
[ 6.341] (II) This device may have been added with another device file.
No input driver specified, ignoring this device,感觉是这个原因
Arch+i3
离线
/dev/input/event13是存在的,我是没有自定义udev 的,毕竟是菜鸟,还没有到那个程度感觉还是驱动的问题
在log里的最后还有这个东西
那内核驱动应该是没问题的,你关掉桌面环境和display maanger,evtest一下/dev/input/event13、/dev/input/mouse1应该能读出东西的(在触摸板上动一动,应该就会有事件)。
至于Xorg下用不了,可能是libinput有BUG
最近编辑记录 xtricman (2019-12-11 08:52:08)
反社会,精神极其不稳定,随时可能炸碎身边所有人
离线
我在tty环境下发现这个event13下对于触摸板的事件是没有相应的,这个是evtest的log
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x2 product 0xe version 0x0
Input device name: "ETPS/2 Elantech Touchpad"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 272 (BTN_LEFT)
Event code 325 (BTN_TOOL_FINGER)
Event code 330 (BTN_TOUCH)
Event code 333 (BTN_TOOL_DOUBLETAP)
Event code 334 (BTN_TOOL_TRIPLETAP)
Event code 335 (BTN_TOOL_QUADTAP)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 0
Min 0
Max 3220
Resolution 31
Event code 1 (ABS_Y)
Value 0
Min 0
Max 2422
Resolution 31
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 255
Event code 28 (ABS_TOOL_WIDTH)
Value 0
Min 0
Max 15
Event code 47 (ABS_MT_SLOT)
Value 0
Min 0
Max 4
Event code 48 (ABS_MT_TOUCH_MAJOR)
Value 0
Min 0
Max 2415
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 3220
Resolution 31
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 2422
Resolution 31
Event code 57 (ABS_MT_TRACKING_ID)
Value 0
Min 0
Max 65535
Event code 58 (ABS_MT_PRESSURE)
Value 0
Min 0
Max 255
Properties:
Property type 0 (INPUT_PROP_POINTER)
Property type 2 (INPUT_PROP_BUTTONPAD)
Testing ... (interrupt to exit)
对于触摸板的所有事件都没有响应,不知道是哪里出了问题
Arch+i3
离线
LittleControl 说:/dev/input/event13是存在的,我是没有自定义udev 的,毕竟是菜鸟,还没有到那个程度感觉还是驱动的问题
在log里的最后还有这个东西那内核驱动应该是没问题的,你关掉桌面环境和display maanger,evtest一下/dev/input/event13、/dev/input/mouse1应该能读出东西的(在触摸板上动一动,应该就会有事件)。
至于Xorg下用不了,可能是libinput有BUG
对还有,用evtest /dev/input/mouse1的时候有一下的输出信息
evtest: can't get version: Inappropriate ioctl for device
Arch+i3
离线
你的Xorg或者wayland server之类的最好关掉,不然可能他们读了evtest就读不到
反社会,精神极其不稳定,随时可能炸碎身边所有人
离线
看起来是新的 5.4 bug: https://www.reddit.com/comments/e92wtl
离线
你的Xorg或者wayland server之类的最好关掉,不然可能他们读了evtest就读不到
当时就是在关闭xorg的情况下测试的,依然是读不到事件的
Arch+i3
离线
看起来是新的 5.4 bug: https://www.reddit.com/comments/e92wtl
感觉应该是这个,暂时先用鼠标凑活吧,就是感觉鼠标太占地方,哈哈
Arch+i3
离线
我的MSI GS60也是一样的问题,每次都要将触控板模块重新加载一下。
如果是从win10切换到arch,还特别容易触发这个BUG,5次以内吧。
虽然人菜菜的,但也想做个有趣的人。
离线
今天更新了内核以后,再看日志好像明白了为什么会这样了
应该是本来是已经是识别为触控板了,但是后来又识别为了鼠标,但是鼠标是没有这个驱动的,所以即后来就忽略了这个设备
这个是最新发现的日志,有关那个触控板
有没有小伙伴知道该怎么解决的
[ 6.119] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[ 6.119] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad"
[ 6.119] (II) Using input driver 'libinput' for 'ETPS/2 Elantech Touchpad'
[ 6.119] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 6.119] (**) Option "Device" "/dev/input/mouse1"
[ 6.119] (**) Option "_source" "server/udev"
[ 6.190] (II) mouse1 - failed to create input device '/dev/input/mouse1'.
[ 6.190] (EE) libinput: ETPS/2 Elantech Touchpad: Failed to create a device for /dev/input/mouse1
[ 6.190] (EE) PreInit returned 2 for "ETPS/2 Elantech Touchpad"
[ 6.190] (II) UnloadModule: "libinput"
Arch+i3
离线