thedarkb / TPconfig

A configuration tool for ThinkPad TrackPoints.
BSD 2-Clause "Simplified" License
39 stars 3 forks source link

The serio device for the trackpoint no longer seem to exist in recent kernels #7

Open piledriver914 opened 5 months ago

piledriver914 commented 5 months ago

Seems to work once you find the TPPS device, later TPs like the T480 I'm currently using have TPPS on the PCI>I2C bus, the current device for example is /sys/devices/pci0000:00/0000:00:1f.4/i2c-7/7-002c/rmi4-00/rmi4-00.fn03/serio2/input/ ( /input15/ is the TPPS device , search for TPPS in /sys/devices/)

The old assumption is that the device is on /sys/bus/serio/devices/serio2 (udev does create a symlink there if you dont follow the obsolete tricks in thinkwiki)

SOLVED: udev works. turned on debug so I could see what it was doing, and at least on Mageia, built in udev rules automagically find/set the trackpoint up and create devices for it, the touchpad, and external mice.

udev creates a link in sysfs, at /sys/class/input/mouse1 on my T480, or mouse0 on my X201 or X300. The t480 "BIOS" apparently does not really turn off the touchpad, as I still have to turn it off in KDE system settings.

To access the speed/press_to_select etc settings, the path is /sys/class/input/mouseX/device/device/ (where X is 0-2 if you have a trackpoint, touchpad and external mouse, TP should always be the same device) The iffy aftermarket backlit keyboard I have does not appear to support press_to_select.

This gui doesn't support most of the actual settings, but could be fixed.

Project seems dead, anyone actually using it?

thedarkb commented 1 month ago

Hi Piledriver, I'm not currently working on it but I'm open to pull requests.