Skip to content

Run the ThinkPad T14 Gen 2a (AMD) touchpad over RMI4/SMBus - #12055

Open
orospakr wants to merge 7 commits into
omacom:quattrofrom
orospakr:t14-gen2-amd-touchpad
Open

orospakr wants to merge 7 commits into
omacom:quattrofrom
orospakr:t14-gen2-amd-touchpad

Conversation

@orospakr

@orospakr orospakr commented Sep 16, 2026 •

Copy link
Copy Markdown

What

Installs thinkpad-t14-amd-touchpad-dkms on the ThinkPad T14 Gen 2a / P14s Gen 2 (AMD), so its Synaptics touchpad runs over RMI4/SMBus (InterTouch) instead of the PS/2 fallback the stock kernel leaves it on. On PS/2 two-finger reports come only about every 25 ms, so scrolls are chunky and fast flicks whiff into pointer motion. Over SMBus it gets proper RMI4 multitouch: two fingers report at the one-finger rate (14.9 ms), scrolls glide, flicks register as flicks, and the TrackPoint stays on its PS/2 pass-through. Single-finger is not faster (12.5 ms on PS/2, 14.9 ms on SMBus); the win is multitouch.

Companion package PR: omacom/omarchy-pkgs#472. Upstream: https://github.com/orospakr/thinkpad-t14-amd-touchpad.

Why a package rather than synaptics_intertouch=1

install/hardware/fix-synaptic-touchpad.sh already tries InterTouch, and it cannot work here: psmouse needs an I2C adapter offering SMBus Host Notify, and i2c-piix4 on AMD offers none (Lenovo removed this machine's predecessor from the allowlist for exactly that reason in 2fd003ee8ade). Lenovo's Windows driver gets there through the ASF block of the same SMBus controller. The DKMS package rebuilds three in-tree modules (i2c-piix4, rmi_smbus, psmouse) from pristine kernel.org sources plus four patches intended for upstream but not yet posted to a kernel list; the package goes away once a shipped kernel contains them. The package README's "Carried patches" table names the tree, status and retirement condition for each.

Pieces

  • bin/omarchy-hw-thinkpad-t14-gen2-amd: DMI family T14 Gen 2a or P14s Gen 2a, plus /sys/bus/acpi/devices/SMB0001:00 (the FCH SMBus port the driver takes its ASF resources from) plus LEN2073 in a serio firmware_id. All three, or the package has nothing to do. The Intel T14 Gen 2 does not match.
  • install/hardware/lenovo/fix-t14-gen2-amd-touchpad.sh: omarchy-pkg-add thinkpad-t14-amd-touchpad-dkms, assuming matching headers per the base-system guarantee. Wired into hardware/all.sh next to the Yoga leaf.
  • install/omarchy-other.packages: the package, for the ISO.
  • migrations/1789531418.sh: installs on existing machines and sets reboot-required.
  • test/shell.d/t14-gen2-amd-touchpad-test.sh: detector (match, P14s, Intel sibling, no SMB0001, other pad), leaf (installs, no-ops elsewhere, failing install fails), migration (reboot-required only on success, no-op elsewhere).

Tested

  • The new test and test/shell pass (the two files that fail, omarchy-kernel-migration-test and snapper-test, fail identically on pristine quattro).
  • The detector matches my T14 Gen 2a (20XL); the package is installed and running here on both linux 7.2.3 and linux-omarchy 7.2.5-3 (Omarchy 4.0.4), thinkpad-t14-amd-touchpad-check all ok. Since 2026-10-18 it is 0.2.3-1 from the stable repository on linux-omarchy 7.2.8-9 (the BORE build, Omarchy 4.0.5): DKMS built it on the kernel upgrade, check all ok, pad on RMI4 and TrackPoint on the pass-through after boot and three s2idle resumes.
  • Suspend soak on linux-omarchy 7.2.5-3 done: three suspend/resume cycles, pad on RMI4 throughout, no first-touch jump after wake; evtest afterwards shows a steady 14.9 ms frame interval with one and two fingers (details in the package PR).
  • Independent confirmation from @echennells on a 20XLS0A300 (BIOS R1MET64W 1.34, linux-omarchy 7.2.5-3, Omarchy 4.0.4-1) with 0.2.2 built from Add thinkpad-t14-amd-touchpad-dkms: RMI4/SMBus touchpad on the ThinkPad T14 Gen 2a / P14s Gen 2 AMD omarchy-pkgs#472: detector matches, RMI4 attach, TrackPoint on the pass-through, S3 resume clean, 15.0 ms one- and two-finger intervals against 13.0 / 25.0 ms on PS/2 (comment). In a second run they exercised this PR at 350a9b4 on the same machine: the shell test passes there, the detector matches on PS/2 and on RMI4, the migration is a no-op with the package installed, and from a clean state it installs the package, rebuilds the UKIs, sets reboot-required, and the pad is on RMI4 after the reboot (package from a local repo built from Omarchy start / restart with save option for opened apps #472, since it is not in the channel yet).
  • Ordering, Omarchy side: resolved. On RMI4 the pad is named synaptics-tm3471-030, which the old touchpad|trackpad name match did not find. Converge omarchy-mac and omarchy-mx-mac into upstream Omarchy #14431 (e1b0e5e) added a udev ID_INPUT_TOUCHPAD fallback to omarchy-hw-touchpad on quattro, and Detect touchpads by udev type when the name has no touchpad in it #8281 was closed in its favour. Run on the T14 Gen 2a with the pad on RMI4, quattro's script (c582e1d) prints synaptics-tm3471-030 and exits 0, and does not pick the TrackPoint (tpps/2-elan-trackpoint).
  • Ordering, package: thinkpad-t14-amd-touchpad-dkms must be published to the channel repository before this lands, not just merged in Add thinkpad-t14-amd-touchpad-dkms: RMI4/SMBus touchpad on the ThinkPad T14 Gen 2a / P14s Gen 2 AMD omarchy-pkgs#472. Status 2026-10-18: published. Omarchy start / restart with save option for opened apps #472 is merged at 0.2.3 and thinkpad-t14-amd-touchpad-dkms 0.2.3-1 is in both the stable and edge repositories. install/omarchy-other.packages feeds the ISO builder's pacman -Syw, so a missing package fails that channel's ISO build for all hardware; on matching installs the migration's omarchy-pkg-add fails and holds every later migration. Edge follows quattro every two hours, so the gap would reach edge with no manual step.

🤖 Generated with Claude Code

The Synaptics touchpad in the ThinkPad T14 Gen 2a and P14s Gen 2 AMD is
left on its PS/2 fallback by the stock kernel: 80 Hz single-finger, about
40 Hz two-finger, fast flicks that turn into pointer motion. The pad speaks
RMI4 over SMBus, but psmouse's InterTouch needs SMBus Host Notify and the
AMD FCH SMBus driver offers none. thinkpad-t14-amd-touchpad-dkms rebuilds
i2c-piix4, rmi_smbus and psmouse from pristine kernel sources plus four
patches on their way upstream, and goes away once the shipped kernel has
them.

A detector matches the DMI family, the ACPI SMB0001 node the driver takes
its ASF resources from, and the LEN2073 touchpad; the hardware leaf
installs the package; a migration does the same on existing installs and
asks for a reboot.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QMoJtbVrnbn1excdwv9YEW
@llstrk

llstrk commented Sep 27, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Verified: the Omarchy side (detector, hardware leaf, all.sh entry, ISO list entry, migration and test) follows the existing Dell XPS 13 sidecar-amps pattern and was checked in isolated command-only runs. Two points concern how this PR couples to the companion package omacom/omarchy-pkgs#472: the order in which the two ship, and a psmouse fix the package drops on linux-omarchy.

A missing package affects more than the target machines

The description notes that #472 has to be merged first. The effect if the package is not yet published in the channel repository reaches further than the T14/P14s:

omarchy-other.packages lists thinkpad-t14-amd-touchpad-dkms
  └─ ISO builder (omarchy-iso builder/build-iso.sh, set -e)
       pacman -Syw <all list entries>   -> "target not found"
       retry once                       -> fails again, unguarded
       => ISO build aborts (all hardware, not only ThinkPads)

matching existing install, omarchy-migrate
  └─ migrations/1789531418.sh -> fix-t14-...-touchpad.sh -> omarchy-pkg-add fails
       => migration stays pending, no reboot-required,
          every later migration waits behind it

matching fresh install
  └─ run_logged fix-t14-...-touchpad.sh under set -euo pipefail
       => leaf exits 1, hardware setup stops

The migration and leaf paths were reproduced in an isolated sandbox with a pacman stand-in that reports "target not found"; the ISO path is from source. Per the omarchy-pkgs README, the edge channel follows quattro automatically every two hours, so the gap between this PR landing and the package being published would reach edge without a manual step.

Impact: while a channel ships an Omarchy runtime containing this PR but its repository lacks the package, ISO builds for that channel fail and T14/P14s Gen 2a machines on it hold all later migrations. Edge is first in line, since it follows quattro.

Suggested change: sequence this PR after thinkpad-t14-amd-touchpad-dkms is built and published to the edge repository, not only after #472 is merged, and state the wider effect in the description so the two can be ordered deliberately.

On linux-omarchy, the package drops a psmouse use-after-free fix

linux-omarchy 7.2.5 carries 0560-input.patch, which backports mainline 761c2040a7d4 "Input: psmouse - fix use-after-free during protocol disconnect". The DKMS package rebuilds psmouse from pristine v7.2.3 sources and installs it under /updates, so it replaces the patched module. Excerpt, with - from the package's v7.2.3 source and + from linux-omarchy's patch (the matching psmouse_disconnect() half is not shown):

 static int psmouse_handle_byte(struct psmouse *psmouse)
 {
-	psmouse_ret_t rc = psmouse->protocol_handler(psmouse);
+	psmouse_ret_t rc;
+	/* protocol_handler is NULL when device is being disconnected */
+	if (unlikely(!psmouse->protocol_handler)) {
+		psmouse->pktcnt = 0;
+		return 0;
+	}
+	rc = psmouse->protocol_handler(psmouse);

The upstream README documents this "Known gap". #472's description adds that the dropped hunks do not touch the Synaptics path, but the mainline commit message names synaptics_disconnect() as an example of the racing vendor disconnect handlers.

Impact: on T14/P14s Gen 2a machines booting linux-omarchy, the automatic install removes this fix until the package refreshes to a 7.3 series. This is a source-level comparison; no crash was reproduced.

Suggested change: carry 761c2040a7d4 as an extra patch in the package until the 7.3 refresh (the commit is in v7.3-rc1). Otherwise, correct the #472 description so the trade-off is stated accurately.

Optional: the migration sets reboot-required even when the package is already installed (for example for a second user on the same machine), which was observed in the sandbox run. Setting it only when omarchy-pkg-missing thinkpad-t14-amd-touchpad-dkms was true before the install would avoid the extra prompt. migrations/1787666837.sh behaves the same way today.

Documentation note: the leaf comment says the four patches are "on their way upstream", while the upstream README lists all four as "Not yet posted". Also, by #472's own measurements single-finger reports are 12.5 ms on PS/2 and 14.9 ms on SMBus, so the measured gain is in two-finger reporting (about 25 ms to 14.9 ms) rather than in the single-finger 80 Hz rate the comment cites.

Verified:

Check Result
Detector with omarchy-hw-match's own matching logic (DMI path redirected), synthetic DMI/sysfs trees matches T14 Gen 2a, P14s Gen 2a, lowercase family; rejects T14 Gen 2i, T14s Gen 2a, T14 Gen 1 AMD, L14 Gen 1 AMD, no serio devices, no product_family
Failure handling a failing install fails the leaf; the migration sets reboot-required only after success and stays pending on failure
New test on head, and on head merged with quattro 387fcf5 14 of 14 pass
New test copied onto the base and onto the quattro tip fails (exit 1)
Deliberate breakages of the detector, leaf, migration and registrations 11 of 11 caught
Full test/shell, head vs base and merged vs tip same failing files and not ok lines on each pair; the PR adds none

Review information

Test scope: Source review of the PR at 84cedaf, #472 at 2df0d549, the upstream package at v0.2.1, linux-omarchy 7.2.5 and the ISO builder. Command-only runs in an isolated sandbox with stubbed pacman and synthetic DMI/sysfs trees. No hardware, DKMS build, module load or real package installation. The P14s Gen 2a product_family string was inferred from public inventories, not observed directly.

AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

@omarchybot omarchybot added bug Something isn't working compatibility Make Omarchy work better on everything! labels Sep 27, 2026
reboot-required is per user, so a second user on the same machine was asked to reboot for a driver another user had already installed and booted into. Migrations must no-op when a machine-wide repair is already in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

I reviewed this, ran it on a disposable Omarchy worker VM, and pushed one fix to your branch (479aa3a).

What I fixed: migrations/1789531418.sh set reboot-required whenever the detector matched, including when the package was already installed. reboot-required is stored per user, so a second user on the same machine was asked to reboot for a driver that was already installed and in use. Omarchy's agents/skills/migrations.md requires a migration to do nothing for other users once a machine-wide repair is in place. The migration now also checks omarchy-pkg-missing thinkpad-t14-amd-touchpad-dkms, and the test has a new case for a machine where the package is already installed. That case fails with the guard removed.

What ran, on the worker: test/shell.d/t14-gen2-amd-touchpad-test.sh passes on the new head (15 of 15) and fails on quattro without this PR. I also ran the full ./test/shell and ./test/cli with this branch merged into the current quattro (8b4eae6). Every test that failed there also fails on quattro alone, so this PR adds no failures. The detector, leaf and migration were checked against the Dell XPS 13 sidecar-amps pattern they follow. The older migration timestamp is fine: omarchy-migrate checks each migration's own marker, so it still runs on machines that have already applied newer migrations.

Second opinion: Codex Medium reviewed the diff and found the second-user reboot problem above. It then re-reviewed the fix and found nothing more. It found no false positives in the detector: it rejects the T14s Gen 2a and the Intel T14 Gen 2, and the DMI families ThinkPad T14 Gen 2a and ThinkPad P14s Gen 2a match what Lenovo reports for these models.

What it is waiting on:

  • thinkpad-t14-amd-touchpad-dkms has to be published before this can land. It is not in the Omarchy package repository yet (pacman -Si on the worker finds nothing). Until it is, omarchy-pkg-add fails on a matching machine. That stops hardware setup on a fresh install, and on an existing install it leaves this migration pending, which holds back every migration after it. This depends on Add thinkpad-t14-amd-touchpad-dkms: RMI4/SMBus touchpad on the ThinkPad T14 Gen 2a / P14s Gen 2 AMD omarchy-pkgs#472 being merged and built.
  • The touchpad behaviour itself can't be reproduced on a VM, so nothing here proves the RMI4/SMBus switch. Your measurements are on your own machine, and the review rules need a confirmation on the target hardware from someone other than the PR's author. That needs a maintainer.

Both of those are the maintainer's to decide; nothing is waiting on you.

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Adds hardware-gated installation of thinkpad-t14-amd-touchpad-dkms for supported AMD ThinkPads.

  • Matching AMD ThinkPads get smoother two-finger touchpad input.

Reviews (5) · Last reviewed commit: "Drop the quotes around the variable in t..." · Reviewed by Greptile

Comment thread install/omarchy-other.packages Resolved
@omarchybot

Copy link
Copy Markdown
Collaborator

Greptile's P1 above ("DKMS installs on every machine") does not hold, so nothing here needs to change for it.

The ISO installs only omarchy-base.packages onto the target: _runtime_package_list() in omarchy-iso's configs/airootfs/usr/share/omarchy-iso/orchestrator/phases_impl.py reads that one file, and installer.add_additional_packages() installs what it returns. omarchy-other.packages is read only by builder/build-iso.sh, which downloads its entries into the ISO's offline mirror with pacman -Syw and installs nothing. The file's own header says the same, and the nvidia-dkms, broadcom-wl-dkms and yt6801-dkms entries beside this one rely on it. So thinkpad-t14-amd-touchpad-dkms reaches a machine only through the detector-gated fix-t14-gen2-amd-touchpad.sh and the migration, which is the arrangement Greptile suggests. Its confusion is understandable: docs/file-layout.md says the ISO pacstraps both lists, which is wrong, and that is a separate fix.

Checked by Claude Opus 5.5 against omarchy-iso quattro (86c0778), and separately by Codex Medium, which came to the same conclusion and found nothing else in the diff at 479aa3a. Neither the head nor quattro (8b4eae6) has moved since the worker run in my previous comment, so those results still stand.

This is still waiting on the same two things as before, both for the maintainer: thinkpad-t14-amd-touchpad-dkms being published (omacom/omarchy-pkgs#472 is still open), and a confirmation on T14 Gen 2a / P14s Gen 2a hardware from someone other than the PR's author.

The comment claimed the four carried kernel patches were on their way
upstream, but none has been posted to a kernel list yet, so it now says
they are meant for upstream but not yet posted. It also implied the
SMBus path raises the single-finger report rate, which the measurements
do not support (12.5 ms on PS/2, 14.9 ms on SMBus); it now claims only
the real win, RMI4 multitouch reporting two fingers at the one-finger
rate so scrolls glide and fast flicks stop whiffing into pointer motion.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QMoJtbVrnbn1excdwv9YEW
@orospakr

orospakr commented Oct 1, 2026 •

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

Thanks for the careful look. Taking the points in order:

Sequencing. Agreed, and the description now says it the stronger way: the package has to be published to the channel repository before this lands, not just have omacom/omarchy-pkgs#472 merged, because omarchy-other.packages feeds the ISO builder's pacman -Syw and the migration's omarchy-pkg-add would otherwise hold later migrations on matching machines.

psmouse on linux-omarchy. Correct, and the "do not touch the Synaptics path" line in #472 was wrong: the commit message for 761c2040a7d4 names synaptics_disconnect() as a racing handler. The package now carries both hunks of 0560-input.patch as backports (761c2040a7d4 and 7f9c8c6716a9, verbatim from mainline) in release 0.2.2, which #472 has been bumped to. They drop out at the 7.3 source refresh.

Documentation. The leaf comment no longer claims the patches are "on their way upstream" (they are intended for upstream, not yet posted), and the rate wording now describes the actual gain: two-finger reporting at the one-finger rate rather than a faster single-finger rate.

The per-user reboot-required point was fixed by the maintainers' bot in 479aa3a.

@orospakr

orospakr commented Oct 1, 2026 •

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

@omarchybot a design question before more review effort goes into the DKMS route.

The package replaces i2c-piix4, rmi_smbus and psmouse wholesale because a DKMS build has to bring its own copy of every source file in those modules (the headers package ships none). That is why 0.2.2 had to grow backports of linux-omarchy's own 0560-input.patch hunks, and why any future linux-omarchy change in those files is dropped on that kernel until the package carries it too.

linux-omarchy already carries a patch series, so the cleaner Omarchy-side alternative is to add the four patches to that series: https://github.com/orospakr/thinkpad-t14-amd-touchpad/tree/v0.2.2/patches (i2c-piix4 SMBus Host Notify via the ASF block, rmi_smbus resume settle, psmouse doze interval, LEN2073 in the InterTouch allowlist). Then there is no DKMS and no module replacement on Omarchy's kernels, nothing of yours gets dropped, and this PR shrinks to the detector or goes away; omacom/omarchy-pkgs#472 would still serve people running stock linux. The trade-offs: the fixes ride the kernel cadence, the series grows by four patches that are intended for linux-i2c / linux-input but not posted yet, and it applies to every linux-omarchy user rather than only matched hardware (the i2c-piix4 change only activates when ACPI SMB0001 is present, and the psmouse hunks only for the listed PnP IDs).

Would the maintainers prefer that route over #472 plus this PR, or want both? I am happy to open the linux-omarchy PR if so.

@omarchybot

Copy link
Copy Markdown
Collaborator

I re-reviewed this at 350a9b4. The new commit only changes the comment at the top of install/hardware/lenovo/fix-t14-gen2-amd-touchpad.sh, and nothing outside it. The comment now matches the measurements in the description: the gain is two-finger reporting going from about 25 ms to 14.9 ms, not the single-finger rate. It also says the four patches have not been posted upstream yet. Both corrections are accurate.

What ran, on a disposable Omarchy worker VM: test/shell.d/t14-gen2-amd-touchpad-test.sh passes at the new head (15 of 15) and fails on quattro without this PR. I also ran the full ./test/shell and ./test/cli with this branch merged into the current quattro (8b4eae6), and they fail in exactly the same places as quattro alone, so this PR adds no failures.

Second opinion: Codex Medium reviewed the new commit and the full diff again. It found nothing: the commit changes only comment text, and the detector still needs the DMI family, SMB0001 and LEN2073 together before anything is installed. It reviewed after my own conclusion was written down, so its agreement is not guaranteed to be independent.

What it is waiting on is the same as before, and both are the maintainer's call:

Nothing is waiting on you.

@echennells

echennells commented Oct 5, 2026 •

Copy link
Copy Markdown

Independent confirmation on a second T14 Gen 2a: 20XLS0A300, BIOS R1MET64W (1.34), touchpad LEN2073 fw 10.32 board 3471, linux-omarchy 7.2.5-3, Omarchy 4.0.4-1.

Setup:

It works:

  • DKMS built for 7.2.5-3-omarchy, and thinkpad-t14-amd-touchpad-check passes every line.
  • SMBus Host Notify enabled via ASF (IRQ 7), rmi4_smbus bound, and the device appears as "Synaptics TM3471-030". The TrackPoint works through the RMI4 pass-through.
  • Report intervals (median, raw evdev, same gestures):
one finger two fingers
PS/2 (stock) 13.0 ms (~73 Hz) 25.0 ms (~39 Hz)
RMI4/SMBus (this PR) 15.0 ms (~67 Hz) 15.0 ms (~66 Hz)
  • S3 (deep) suspend, 10 s via rtcwake: it resumed with identical rates and no rmi4/psmouse errors.

One regression from the rename: the touchpad changes from "SynPS/2 Synaptics TouchPad" to "Synaptics TM3471-030". omarchy-hw-touchpad matches touchpad|trackpad in the Hyprland device name, so it now finds nothing:

  • omarchy-toggle-touchpad toggle fails with "No touchpad device found" (exit 1)
  • the menu's Touchpad entry is gated on omarchy-hw-touchpad, so it isn't offered
  • the XF86TouchpadOn/Off binds do nothing
  • any user hl.device rule keyed on the old name stops applying

Detecting by ID_INPUT_TOUCHPAD / libinput capability instead of the name would fix it (related: #12029).

Notes:

  • Installing the package rebuilds the initramfs/UKI, because mkinitcpio's hook matches usr/src/*/dkms.conf.
  • The kernel logs a taint for the unsigned out-of-tree module. That's expected for DKMS, but worth a line in the docs for anyone enforcing module signatures.

Addendum on the DKMS-vs-linux-omarchy question above: the rename regression happens with either route. The RMI4 driver names the device after the sensor ("Synaptics TM3471-030"), not "TouchPad", so omarchy-hw-touchpad needs a capability-based check regardless. The initramfs/UKI rebuild and the module taint are DKMS-only; carrying the patches in linux-omarchy would avoid both.

Tested with help from Claude Code; every run was on my machine.

orospakr added a commit to orospakr/thinkpad-t14-amd-touchpad that referenced this pull request Oct 6, 2026
An independent confirmation on a 20XLS0A300 (BIOS R1MET64W 1.34,
linux-omarchy 7.2.5-3, S3 resume clean) from omacom/omarchy#12055 joins
the hardware table, which now also names the machine type and the
suspend mode of each unit (the first unit's resume work was all S3, the
second board is s2idle only).

The same report found that the RMI4 name, Synaptics TM3471-030, breaks
Omarchy's name-matched omarchy-hw-touchpad and with it the touchpad
toggle; reproduced here on both units, fixed by omacom/omarchy#8281
(udev ID_INPUT_TOUCHPAD lookup, verified to print the pad on this
machine). Noted under Install together with two verified side effects of
the DKMS route: the initramfs rebuild (mkinitcpio's install hook triggers
on usr/src/*/dkms.conf) and the OE taint from unsigned modules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QMoJtbVrnbn1excdwv9YEW
@orospakr

orospakr commented Oct 6, 2026 •

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

Thanks @echennells, that is the hardware confirmation the bot asked for, from a different SKU (20XLS0A300, BIOS 1.34) than my two 20XLS08R00 units, and with S3 where the board I am on now only has s2idle. Recorded in the package README's hardware table (orospakr/thinkpad-t14-amd-touchpad@e0329b1) and in the description here. One cell is blank, if you have a moment: the RMI4 firmware id,

cat /sys/devices/pci0000:00/0000:00:14.0/i2c-*/*-002c/rmi4-00/firmware_id

My two pads report 3942087 and 3418235 there while both log the same PS/2 string, so that number is what tells pads apart if a report ever differs.

The rename regression is real, and this PR should wait for the fix. omarchy-hw-touchpad exits 1 on both of my units with the package installed, so the toggle, the menu entry and the XF86Touchpad* binds are dead on every machine this PR targets. It is the open #8376 / #12029 defect (and the closed #9252 / #9805: synaptics-tm3053-004 and synaptics-tm3096-006 are the same RMI4 naming on ThinkPads the stock kernel already runs over InterTouch). #8281 is the fix: when the name match finds nothing it maps udev ID_INPUT_TOUCHPAD=1, minus pointing sticks, onto the Hyprland name. I ran that PR's bin/omarchy-hw-touchpad (26b3b17) on this machine and it prints synaptics-tm3471-030; udev tags the pad ID_INPUT_TOUCHPAD=1, ID_BUS=rmi, ID_INPUT_TOUCHPAD_INTEGRATION=internal and the TrackPoint ID_INPUT_POINTINGSTICK=1, so the lookup is unambiguous on this hardware. The description now lists #8281 (or another udev-based detector) as a prerequisite next to the package publication. Agreed that this holds for the linux-omarchy route as well: the name comes from the RMI4 driver, not from how the modules get there.

Initramfs rebuild and taint: both confirmed here (mkinitcpio's 90-mkinitcpio-install.hook triggers on usr/src/*/dkms.conf, so the UKI was rebuilt at install; the modules carry OE). Both are now in the README under Install, next to the rename.

@echennells

Copy link
Copy Markdown

firmware_id reads 3942087 here, the same as your first pad, so this 20XLS0A300 / BIOS 1.34 unit carries the same pad firmware as one of your 20XLS08R00s.

orospakr added a commit to orospakr/thinkpad-t14-amd-touchpad that referenced this pull request Oct 6, 2026
Reported in omacom/omarchy#12055 after the table went in: the 20XLS0A300
has the same pad firmware as the first 20XLS08R00, so the PS/2 string is
the same on all three and only the RMI4 id tells pads apart.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QMoJtbVrnbn1excdwv9YEW
@orospakr

orospakr commented Oct 6, 2026 •

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

Thanks, table updated: orospakr/thinkpad-t14-amd-touchpad@c1d2f1d. So the 20XLS0A300 carries the same pad firmware (3942087) as my first unit, and all three log the same PS/2 string, which makes the RMI4 id the only thing that tells pads apart.

@omarchybot

Copy link
Copy Markdown
Collaborator

The head has not moved since my last comment (still 350a9b4), so the worker results there still stand. This one is about what was posted since.

The hardware report. @echennells's run on a 20XLS0A300 is a second owner's confirmation that the driver works on this machine: the PR's detector matches, the pad attaches over RMI4, and two-finger reports come at about 15 ms instead of 25 ms. It tested package 0.2.2 built from omacom/omarchy-pkgs#472, and does not name the commit of this PR it used or run the migration. So it confirms the package rather than this PR's installer and migration at 350a9b4.

The rename regression is real, and it blocks this PR. On quattro (d9b970d), bin/omarchy-hw-touchpad only finds a Hyprland device whose name contains touchpad or trackpad. Over RMI4 the pad is synaptics-tm3471-030, so on every machine this PR targets omarchy-toggle-touchpad fails, the menu hides its Touchpad entry, and the XF86TouchpadOn/Off binds do nothing. The version in #8281 falls back to udev's ID_INPUT_TOUCHPAD=1, skips pointing sticks, and maps the kernel name onto the Hyprland one, which covers this pad. That matches what the author ran on their own unit.

Checked by Claude Opus 5.5 against quattro and #8281's head (26b3b17), and separately by Codex Medium. Codex confirmed the regression and that #8281 fixes it, and found nothing new wrong in the diff. It could not fetch the new comments itself, so on the hardware report it worked from my summary. The branch still merges cleanly into the current quattro.

What it is waiting on, all for the maintainer:

Nothing is waiting on the author.

@echennells

Copy link
Copy Markdown

Follow-up on the gap noted above. This time I ran the PR itself at 350a9b45 (its detector, install step and migration), not just the package, on the same ThinkPad T14 Gen 2a (20XLS0A300, kernel 7.2.5-3-omarchy, Omarchy 4.0.4).

  • Tests: test/shell.d/t14-gen2-amd-touchpad-test.sh from 350a9b45 passes on this machine.

  • Detector on real hardware: omarchy-hw-thinkpad-t14-gen2-amd exits 0 in both states:

    • on stock PS/2 (SynPS/2 Synaptics TouchPad);
    • with the driver active (Synaptics TM3471-030).

    LEN2073 stays on serio1's firmware_id either way, SMB0001:00 is present, and the DMI family reads ThinkPad T14 Gen 2a.

  • Package already installed: the migration is a no-op (exit 0, no reboot-required).

  • From a clean state: I removed the package and rebooted, which put the pad back on stock psmouse/PS/2. Then I ran migrations/1789531418.sh the way omarchy-migrate does (bash -euo pipefail, with OMARCHY_PATH pointing at the PR checkout).

    • It installed thinkpad-t14-amd-touchpad-dkms through omarchy-pkg-add.
    • DKMS built the modules for 7.2.5-3-omarchy.
    • The limine-mkinitcpio hook rebuilt both UKIs.
    • It exited 0 and set reboot-required.
  • After the reboot:

    • The pad is Synaptics TM3471-030 on RMI4.
    • psmouse, i2c_piix4 and rmi_smbus load from updates/dkms.
    • thinkpad-t14-amd-touchpad-check passes every line.
    • The kernel logs SMBus Host Notify enabled via ASF (IRQ 7).

One deviation: the package isn't in the channel repository yet (omarchy-pkgs#472). For the install step, pacman pulled the same 0.2.2-1 build (from #472's PKGBUILD) from a temporary local repo. Once #472 is published, the only difference should be where pacman fetches it from.

Tested with help from Claude Code; every run was on my machine.

@omarchybot

Copy link
Copy Markdown
Collaborator

@echennells's follow-up closes the gap my last comment named: it runs this PR's own detector and migration at 350a9b4 on a T14 Gen 2a, not just the package. Read against the diff, it matches. The detector's three checks (DMI family ThinkPad T14 Gen 2a, SMB0001:00, LEN2073 on serio) hold on real hardware both before and after the switch to RMI4, since none of them depend on the pad's name. The migration is a no-op with the package already installed, and from a clean state it installs the package, sets reboot-required and leaves the pad on RMI4 after the reboot. Nothing in the report contradicts the code. Two limits: the package came from a local repository built from omacom/omarchy-pkgs#472 rather than the channel, and the fresh-install path through install/hardware/all.sh was not run.

The review rules let a hardware confirmation stand in for a worker reproduction only when it comes from the person who reported the bug in an issue, or from a maintainer. This PR has no linked issue and @echennells is neither, so I have not marked it verified on that basis. That is a limit on what the bot can certify, not doubt about the report, which is the most complete hardware evidence on this PR. Whether it is enough is the maintainer's call.

Checked by Claude Opus 5.5 against the diff at 350a9b4, and separately by Codex Medium, which read the same diff and the report and came to the same conclusions on all three points. It reviewed after my previous conclusions were already posted here, so its agreement is not guaranteed to be independent. The head has not moved, so the earlier worker results still stand.

What it is waiting on, all for the maintainer:

Nothing is waiting on the author.

@orospakr

orospakr commented Oct 8, 2026 •

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

Thanks @echennells, the clean-state migration run through reboot was the one path nobody else had exercised on hardware, and it is now in the description's Tested section. Nothing from the report needs a change here: the detector was designed not to depend on the pad's name for exactly the reason your two states show, and the rest matches what the bot's worker saw. From my side this PR is now waiting only on the maintainers: #8281 or another udev-based omarchy-hw-touchpad, omacom/omarchy-pkgs#472 being published, and the DKMS-versus-linux-omarchy question.

@omarchybot

Copy link
Copy Markdown
Collaborator

The head has not moved (still 350a9b4). This comment is about two things that changed around it.

The touchpad rename blocker is resolved on quattro. #8281 was closed without merging because #14431 (e1b0e5e) rewrote bin/omarchy-hw-touchpad with its own udev fallback. When no device name contains touchpad or trackpad, it converts each input device's kernel name to Hyprland's form and accepts only a device that udev tags ID_INPUT_TOUCHPAD=1. "Synaptics TM3471-030" becomes synaptics-tm3471-030, the name both hardware reports show Hyprland using, and the TrackPoint is tagged as a pointing stick, so it is not picked. On matching machines, the toggle, the menu entry and the XF86TouchpadOn/Off binds no longer depend on #8281. This was checked by reading the code. A VM has no RMI4 pad to run it against.

The package PR has merged. omacom/omarchy-pkgs#472 merged at 0.2.3. According to the description, it is in edge but not yet in stable. I could not check the channel myself. Until it is in a channel, install/omarchy-other.packages fails that channel's ISO build, and on a matching machine the migration fails and blocks every later migration.

What ran, on a disposable Omarchy worker VM, with this branch merged into current quattro (c582e1d): test/shell.d/t14-gen2-amd-touchpad-test.sh passes, 15 of 15, and fails on quattro alone. ./test/cli passes. ./test/shell fails in the same 13 tests as on quattro alone, so this branch adds no failures. The merge is clean. The migration's older timestamp is fine: omarchy-migrate runs every migration without a completion marker, whatever its timestamp.

Second opinion: Codex Medium reviewed the branch against current quattro. It agreed that the rename blocker is resolved and that nothing on quattro conflicts with or duplicates this change, and it found no new defect. Its review came after my conclusions were already written down, so its agreement may not be independent. Like me, it could not confirm whether the package is in stable.

What it is waiting on is the maintainer, for two decisions:

  • Land it only after thinkpad-t14-amd-touchpad-dkms is published to every channel this ships to.
  • Choose between DKMS plus this PR and carrying the four patches in linux-omarchy, as raised earlier in this thread.

It is still not labelled verified. The hardware runs by @echennells and the author are thorough. But the review rules let only an issue's reporter or a maintainer stand in for a worker reproduction on hardware, so whether that evidence is enough is the maintainer's call.

@orospakr

orospakr commented Oct 15, 2026 •

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

Hardware check of the rename fix, since the worker VM has no RMI4 pad: on the T14 Gen 2a (20XL, pad on RMI4 with thinkpad-t14-amd-touchpad-dkms 0.2.3), bin/omarchy-hw-touchpad from quattro at c582e1d prints synaptics-tm3471-030 and exits 0. Hyprland's mice here are synaptics-tm3471-030 and tpps/2-elan-trackpoint, so the fallback picks the pad and not the TrackPoint. For comparison, the pre-#14431 script exits 1 on this machine. I've updated the ordering note in the description to match.

The package is in edge as 0.2.3-1 and not yet in stable, so the remaining items are the two you listed: publication to every channel this ships to, and the DKMS versus linux-omarchy decision.

@orospakr

orospakr commented Oct 19, 2026 •

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

Status update: thinkpad-t14-amd-touchpad-dkms 0.2.3-1 is now published in both the stable and edge repositories, so the package-ordering condition in the description is met. I've updated the description to match.

Also tested on the current release: on the T14 Gen 2a, Omarchy 4.0.5 with linux-omarchy 7.2.8-9 (the BORE build). DKMS rebuilt the package on the kernel upgrade, thinkpad-t14-amd-touchpad-check is all ok, and the pad is on RMI4 with the TrackPoint on the pass-through across three s2idle resumes. The touchpad toggle still needs #14431, which is on quattro but not in 4.0.5.

The remaining open question is the one above: DKMS, or carrying the patches in linux-omarchy.

quattro added the Yoga Slim 7x and ThinkPad T14s camera leaves on the line this branch added the T14 Gen 2a touchpad leaf to, in install/hardware/all.sh. All three leaves are kept, each gated on its own machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch had stopped merging into quattro, so I pushed a merge of current quattro (087f73d) to it as 98009ff. The only conflict was in install/hardware/all.sh: quattro added the Yoga Slim 7x and ThinkPad T14s camera leaves on the same line this branch adds fix-t14-gen2-amd-touchpad.sh to. All three are kept, and none of your files changed. GitHub now reports the PR as mergeable.

The package is published. thinkpad-t14-amd-touchpad-dkms 0.2.3-1 is in the stable, rc and edge repository databases. On a disposable Omarchy worker VM running linux-omarchy 7.2.8-9, pacman -S installed it from the channel, and DKMS built and installed the modules for that kernel. So the ISO mirror and migration ordering concern from earlier in this thread no longer applies.

Rules added on quattro since the last review. In an image build, every hardware leaf now runs on the machine's first boot, possibly offline and before any user exists, so leaves have to be idempotent. This leaf meets that. It only calls omarchy-pkg-add, which skips a package that is already installed and fails if the install fails, the same as the existing tuxedo and broadcom DKMS leaves. The detector and migration still fit the helpers that changed on quattro: omarchy-hw-match, omarchy-pkg-add, omarchy-pkg-missing and omarchy-state.

What ran on the worker, at 98009ff: test/shell.d/t14-gen2-amd-touchpad-test.sh passes 15 of 15 and fails on quattro alone. ./test/cli passes. ./test/shell has one failure more than quattro alone: background-intro-lifecycle-test.sh. That test is intermittent, failing two of three reruns on each tree, and this PR touches nothing it covers. Every other failure appears on both trees.

Second opinion: Codex Medium reviewed the merged tree. It confirmed the conflict resolution, found nothing in the newer quattro rules that this change breaks, and found no defect. It could not read this thread itself, and earlier conclusions here were already public, so its agreement is not guaranteed to be independent.

What it is waiting on: the maintainer. The open question is still whether to ship DKMS plus this PR or carry the four patches in linux-omarchy. This PR is still not labelled verified. A VM cannot reproduce the touchpad, and the review rules accept a hardware confirmation only from an issue's reporter or a maintainer, so whether the hardware runs in this thread are enough is also the maintainer's call. Nothing is waiting on you.

omarchybot and others added 2 commits November 17, 2026 00:59
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Omarchy's testing rules now say a hardware leaf is tested in the area's existing file, migrations get no test, and a test neither greps for the lines it adds nor tests its own stubs. The leaf's cases move into the hardware-quirks table, where omarchy-hw-match reads a fake DMI tree rather than a stub, and the separate file with its migration and grep checks goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

I pushed two commits to your branch: a merge of current quattro (3b36b9e) as 9e8555b, and bc1ed7d, which moves the touchpad leaf's test cases into test/shell.d/hardware-quirks-test.sh and deletes test/shell.d/t14-gen2-amd-touchpad-test.sh. None of the detector, leaf or migration changed.

Why the test moved. Since this PR was opened, quattro has added testing rules to its AGENTS.md (#16229) and removed every migration test (#16302). Under those rules a hardware leaf is tested in the area's existing file, a migration gets no test, and a test neither greps for the lines it adds nor tests its own stubs. The old file did all three: it grepped all.sh and omarchy-other.packages for the new lines, ran the migration, and stubbed omarchy-hw-match. hardware-quirks-test.sh is where every other hardware leaf is tested, and the merge was needed because that file only reached quattro after this branch's last merge. There the detector runs for real: omarchy-hw-match reads a fake DMI tree, and the ACPI and serio checks read fake sysfs directories. Six rows cover the T14 Gen 2a and P14s Gen 2a installing the package, a failed install failing the leaf, and three machines that must be left alone: the Intel T14 Gen 2, a Gen 2a without SMB0001:00, and a Gen 2a with another touchpad. The leaf is also on the list that must do nothing on unrelated machines and machines without DMI.

What ran, on a disposable Omarchy worker VM: hardware-quirks-test.sh passes at bc1ed7d, and goes red when the detector's SMB0001:00 check is removed. ./test/cli passes on bc1ed7d and on quattro alone. ./test/shell fails in the same five files on both trees. One more file, remote-session-service-test.sh, failed on bc1ed7d, but the same files copied to another directory on the worker pass it, so that failure comes from the worker's state, not from this change. The touchpad itself still can't be reproduced on a VM.

Second opinion: Codex Medium and muse-wonder (via pi, thinking high) reviewed the merged tree and the test move. Neither found a defect. Each traced every one of the detector's three checks to a row that would fail without it, and both found that the merge leaves the leaf and migration consistent with what quattro now expects of hardware leaves. They reviewed after I had described the change to them, so their agreement is not guaranteed to be independent.

What it is waiting on: the maintainer, as before. They still need to decide between DKMS plus this PR and carrying the four patches in linux-omarchy. It is still not labelled verified: the review rules accept a hardware confirmation only from an issue's reporter or a maintainer, so whether @echennells's runs and yours are enough is also the maintainer's call. Nothing is waiting on you.

Comment thread bin/omarchy-hw-thinkpad-t14-gen2-amd Resolved
AGENTS.md asks for unquoted variables inside [[ ]], where Bash neither splits nor globs them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

I pushed 8873410 to your branch. It answers Greptile's comment on bin/omarchy-hw-thinkpad-t14-gen2-amd line 12 by dropping the quotes in [[ -e "$acpi_devices/SMB0001:00" ]]. quattro's AGENTS.md says not to quote variables inside [[ ]], and Bash doesn't split or glob them there, so the check behaves exactly as before. Nothing else changed.

What ran, on a disposable Omarchy worker VM: at 8873410, test/shell.d/hardware-quirks-test.sh passes all 7 of its tests. That includes the Gen 2a rows that install the package and the Gen 2a without SMB0001:00 that must be left alone. ./test/cli passes too.

Second opinion: Codex Medium and muse-wonder (via pi, thinking high) reviewed the commit against quattro's AGENTS.md. Both agreed the comment was valid, that the unquoted form is equivalent for any value of $acpi_devices (spaces and glob characters included), and that nothing else in the file or commit is wrong. They saw how I described the change, so their agreement isn't guaranteed to be independent.

What it is waiting on: the maintainer, as in my last comment: the choice between DKMS plus this PR and carrying the patches in linux-omarchy, and whether the hardware runs so far are enough confirmation. Nothing is waiting on you.

@orospakr

Copy link
Copy Markdown
Author

(written by Claude Code 🤖)

Thanks for the merge, the test move and the quoting fix. I ran the detector from 8873410 on the real T14 Gen 2a (Omarchy 4.5.0, 7.2.15-1-omarchy), outside the test harness, and it exits 0, so the unquoted SMB0001:00 check still finds the node on hardware. The machine reports the family ThinkPad T14 Gen 2a, has /sys/bus/acpi/devices/SMB0001:00, and serio1's firmware_id reads PNP: LEN2073 PNP0f13. That is the same layout the new thinkpad_14_amd rows fake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working compatibility Make Omarchy work better on everything!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants