Repository navigation
Reset elan_i2c touchpads in omarchy restart trackpad - #13539
stevederico wants to merge 2 commits into
Conversation
Automated AI review
Outcome: The
|
|
Thanks, good catch. Fixed in 8e4d112: the glob is now |
|
Reviewed at What was checked, on a disposable Omarchy worker VM:
The second opinion read this PR, #13600 and #9409 side by side and found no defect here. Where it agreed with this review, its independence is not guaranteed. It added one point this review had missed: #13600's test stub for Related pull requests:
@kianlabs, could you run the script from this exact commit on your GL752VL and say whether the touchpad is reset? It should print |
The reset only rebound devices on i2c_hid_acpi. A touchpad bound to elan_i2c, common on ASUS laptops, was skipped, and the command printed nothing and exited 0, so it looked like it had worked. Rebind devices on elan_i2c as well. Refs omacom#13398
Only I2C clients with an ACPI companion are named i2c-<name>. Others, like the ELAN SMBus companion psmouse creates, are named <bus>-<addr> (0-0015), so the i2c-* glob skipped them and the reset did nothing. Match any entry with a dash. The driver's own bind, unbind, and uevent entries have none.
8e4d112 to
85877ea
Compare
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryExtends
stevederico explicitly deferred reporting an error when no device is found to #9409. Review was based on code inspection. Tests and ELAN hardware checks were not run. Reviews (1) · Last reviewed commit: "Reset elan_i2c touchpads named by bus an..." · Reviewed by Greptile |
Refs #13398
omarchy restart trackpadonly rebound devices oni2c_hid_acpi. A touchpad bound toelan_i2c, common on ASUS laptops, was skipped, and the command printed nothing and exited 0.This rebinds touchpads on
elan_i2cas well, keeping the touchpad-only filter from #17284.elan_i2cputs its input device on the I2C device itself, not under a HID child, sois_touchpadnow checks there too. Devices without an ACPI companion, like the ELAN SMBus companion psmouse creates, are named<bus>-<addr>(0-0015), so the loop matches any entry with a dash. Failing loudly when no device is found is left to #9409, which edits the same loop.Test plan
bash test/shell.d/restart-trackpad-test.sh: the existing fixture now also has anelan_i2ctouchpad named0-0015. Only the two touchpads are unbound and rebound; the HID keyboard and touchscreen are left alone. Fails on quattro and with ani2c-*globOMARCHY_I2C_DRIVERS_PATH(the drivers root), since the script reads two drivers