TPconfig icon indicating copy to clipboard operation
TPconfig copied to clipboard

building and running on Arch Linux

Open bikubi opened this issue 1 year ago • 0 comments

Changes for Arch

Kernel 5.19.11, systemd 251.4-1

The sysfs file has a different path for me, not
/sys/devices/platform/i8042/serio1/serio2/, but /sys/devices/platform/i8042/serio1/driver/serio2/.

So I changed devpath1 at https://github.com/thedarkb/TPconfig/blob/master/unit1.pas#L40

Dependencies / setup

I had installed the lazarus packages, but make TPconfig would fail, about missing directories

directory lcl not found

when you stupidly try to mkdir it,

Warning: directory packager/globallinks not found

I had to additionally install the IDE/GUI part, too, e.g. lazarus-gtk2, and, I think, run it at least once.

Building

I then opened tpconfig.lpi as a project in the IDE, and could compile/build it there.

Now, make TPConfig works as expected.

Running

Running is another issue: First I got runtime errors (203 and 216), so I started the compiled binary via IDE (running the IDE as root, yikes).

Now, I can start it from the command line, but I must specify the path...

Finally

I can change the settings, but it looks like my Trackpoint is either broken, or bad from the start :( Speed/sensitivity varies based on direction: it seems to be way faster to the right (positive x/horizontal, I guess), and way slower vertically...

I have a lenovo T450s.

I don't think I can fashion a PR, being too unfamiliar with Lazarus, and probably it's not worth it, but maybe this will help someone? Maybe something for the README...

bikubi avatar Sep 26 '22 06:09 bikubi