You are not logged in.

#1 2024-01-18 11:55:03

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,989
Website

[WORKAROUND] Ghost inputs on Elan TrackPoint

On my laptop I get ghost inputs from my Elan TrackPoint:

~> sudo evtest                                                                                                                                                                                                                                                                                                                                                        -1 2024-01-18T12:45:29
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:	Lid Switch
/dev/input/event1:	Sleep Button
/dev/input/event10:	Logitech Zone Wired
/dev/input/event11:	Generic PHL 34B1U5600 Consumer Control
/dev/input/event12:	Generic PHL 34B1U5600
/dev/input/event13:	Generic PHL 34B1U5600
/dev/input/event14:	HD-Audio Generic HDMI/DP,pcm=3
/dev/input/event15:	HD-Audio Generic HDMI/DP,pcm=7
/dev/input/event16:	PC Speaker
/dev/input/event17:	ELAN06A1:00 04F3:3232 Mouse
/dev/input/event18:	HD-Audio Generic HDMI/DP,pcm=8
/dev/input/event19:	ELAN06A1:00 04F3:3232 Touchpad
/dev/input/event2:	Power Button
/dev/input/event20:	TPPS/2 Elan TrackPoint
/dev/input/event21:	Wacom HID 52F5 Pen
/dev/input/event22:	HD-Audio Generic HDMI/DP,pcm=9
/dev/input/event23:	Wacom HID 52F5 Finger
/dev/input/event24:	HD-Audio Generic Mic
/dev/input/event25:	HD-Audio Generic Headphone
/dev/input/event26:	MX Keys Keyboard
/dev/input/event27:	MX Keys Mouse
/dev/input/event28:	Logitech MX Master 3S
/dev/input/event3:	Video Bus
/dev/input/event4:	AT Translated Set 2 keyboard
/dev/input/event5:	ThinkPad Extra Buttons
/dev/input/event6:	Logitech Zone Wired Consumer Control
/dev/input/event7:	Logitech Zone Wired
/dev/input/event8:	Logitech Zone Wired
/dev/input/event9:	Logitech Zone Wired
Select the device event number [0-28]: 20
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x2 product 0xa version 0x63
Input device name: "TPPS/2 Elan TrackPoint"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 272 (BTN_LEFT)
    Event code 273 (BTN_RIGHT)
    Event code 274 (BTN_MIDDLE)
  Event type 2 (EV_REL)
    Event code 0 (REL_X)
    Event code 1 (REL_Y)
Properties:
  Property type 0 (INPUT_PROP_POINTER)
  Property type 5 (INPUT_PROP_POINTING_STICK)
Testing ... (interrupt to exit)
Event: time 1705578336.198450, type 1 (EV_KEY), code 274 (BTN_MIDDLE), value 1
Event: time 1705578336.198450, type 2 (EV_REL), code 0 (REL_X), value -6
Event: time 1705578336.198450, type 2 (EV_REL), code 1 (REL_Y), value 2
Event: time 1705578336.198450, -------------- SYN_REPORT ------------
Event: time 1705578341.210264, type 1 (EV_KEY), code 274 (BTN_MIDDLE), value 0
Event: time 1705578341.210264, type 2 (EV_REL), code 0 (REL_X), value -6
Event: time 1705578341.210264, type 2 (EV_REL), code 1 (REL_Y), value 4
Event: time 1705578341.210264, -------------- SYN_REPORT ------------
Event: time 1705578346.204463, type 1 (EV_KEY), code 274 (BTN_MIDDLE), value 1
Event: time 1705578346.204463, type 2 (EV_REL), code 0 (REL_X), value -2
Event: time 1705578346.204463, type 2 (EV_REL), code 1 (REL_Y), value 6
Event: time 1705578346.204463, -------------- SYN_REPORT ------------
^C

This is a big issue because it f*s up my cursor behavior.
Sometimes, I can no longer right click, sometimes no longer left click.
Currently, it periodically scrolls down my screen a few millimeters, which is annoying.
What may cause these inputs?
The laptop is basically brand new (ThinkPad Z16) and the touchpad or track point aren't dirty.
The issue appears to arise when the lid is closed only, which suggest that maybe the display slightly presses on the trackpoint when closed.
What I find confusing is, that the trackpoint seems to not only move the cursor when I press it in different directions, but to also issue click events.

How can I disable the clicks of the trackpoint?
Since I'm not using it, (I only ever use the touchpad) I'd also be happy to disable it entirely.

PS
I forgot to mention, that this behavior is pretty recent.
I suspect one of the last kernel upgrades to have introduced this behavior.

Workaround
I deactivated the trackpoint using evtest:

~> cat /etc/systemd/system/disable-input-device@.service                                                                                                                                                                                                                                                                           2024-02-05T08:27:43
[Unit]
Description=Disable input device %I
After=systemd-udevd.service
ConditionPathExists=%I

[Service]
ExecStart=/usr/bin/evtest --grab %I
StandardOutput=null

[Install]
WantedBy=multi-user.target
~> systemctl status disable-input-device@-dev-input-by\x2dpath-platform\x2di8042\x2dserio\x2d1\x2devent\x2dmouse.service                                                                                                                                                                                                           2024-02-05T08:27:50
● disable-input-device@-dev-input-by\x2dpath-platform\x2di8042\x2dserio\x2d1\x2devent\x2dmouse.service - Disable input device /dev/input/by-path/platform-i8042-serio-1-event-mouse
     Loaded: loaded (/etc/systemd/system/disable-input-device@.service; enabled; preset: disabled)
     Active: active (running) since Mon 2024-02-05 08:26:01 CET; 1min 49s ago
   Main PID: 825 (evtest)
      Tasks: 1 (limit: 37412)
     Memory: 240.0K (peak: 1.4M)
        CPU: 4ms
     CGroup: /system.slice/system-disable\x2dinput\x2ddevice.slice/disable-input-device@-dev-input-by\x2dpath-platform\x2di8042\x2dserio\x2d1\x2devent\x2dmouse.service
             └─825 /usr/bin/evtest --grab /dev/input/by-path/platform-i8042-serio-1-event-mouse

Feb 05 08:26:01 der-geraet systemd[1]: Started Disable input device /dev/input/by-path/platform-i8042-serio-1-event-mouse.
~>                                                                                                                                                                                                                                                                                                                                 2024-02-05T08:27:51

So far, so good.

Last edited by schard (2024-02-05 07:29:02)


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

Board footer

Powered by FluxBB