Re: [PATCH v3] Input: synaptics - support the touchpad LED on RMI function $30
From: Dmitry Torokhov
Date: Mon Nov 23 2026 - 20:28:32 EST
Hi Ahmad,
On Mon, Nov 16, 2026 at 10:49:06AM +0330, ahmad baghereslami wrote:
...
> The reason I kept it on PS/2 is a side effect on this laptop: the
> embedded controller turns the keyboard backlight back on when it sees
> PS/2 input after the backlight has timed out. Over SMBus the touchpad's
> traffic no longer passes through the EC, so touching the touchpad no
> longer wakes the keyboard backlight; only typing does. Nothing else
> differed in daily use.
>
> If you still prefer the RMI4 route, I can send a series that adds
> "SYN3040" to smbus_pnp_ids[] and implements LED class support in
> rmi_f30.c, and drop the PS/2 backdoor. Or, if the backlight behaviour
> is a reason to keep this touchpad on PS/2, I would keep the current
> approach. Which would you prefer?
I would definitely prefer the RMI4 route: adding "SYN3040" to
smbus_pnp_ids[] and implementing LED class support in rmi_f30.c.
We already enable InterTouch on several other HP laptops in
smbus_pnp_ids[], and implementing F30 LED support in rmi_f30.c benefits
all RMI4 touchpads (over SMBus, I2C, SPI, or HID) without duplicating
RMI4 PDT scanning and register access over the PS/2 command backdoor or
having to deactivate the PS/2 stream and export psmouse_mutex on every
LED update.
Keyboard backlight management should be handled separately from the
touchpad transport: relying on the EC snooping legacy PS/2 traffic is
just an incidental side effect (an external USB/Bluetooth mouse or an
I2C-HID touchpad already bypasses the EC in the same way). Ideally the
keyboard backlight is exposed as a standard LED class device by the HP
platform driver (hp-wmi) and managed by userspace policy monitoring
input activity, or (if an in-kernel mechanism is desired) driven by
ledtrig-input-events (the "input-events" LED trigger) or an input
observer in the platform driver.
Thanks.
--
Dmitry