From: Denis Benato <denis.benato@linux.dev>
To: "Rebecca Mara Müller" <rebecca.mara@posteo.de>
Cc: Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <bentiss@kernel.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Luke Jones <luke@ljones.dev>,
Joshua Leivenzon <hacker1024@users.sourceforge.net>,
Ivan Levchenko <me@livan.pro>,
Nathan Chancellor <nathan@kernel.org>,
Paolo Pisati <p.pisati@gmail.com>
Subject: Re: [PATCH v3 7/7] HID: asus: Re-send the Zenbook Duo keyboard handshake after probe
Date: Sun, 18 Oct 2026 21:48:21 +0200 [thread overview]
Message-ID: <23dcbde2-26c3-4288-aa71-3bb3107e3f45@linux.dev> (raw)
In-Reply-To: <20261018191823.22123-1-rebecca.mara@posteo.de>
On 10/18/26 21:18, Rebecca Mara Müller wrote:
> On Sun, Oct 18, 2026 at 07:10:57PM +0200, Denis Benato wrote:
>> So this patch is based on an arbitrary wait that is based on the
>> assumption that some other device gets initialized...
>>
>> Can you try making this deterministic?
> Since this part came from my patch, I went back and measured it on my
> UX8407AA before trying to make it deterministic. The result: there is
> nothing to fix, so please drop 7/7.
That's good! The probe function is unfortunately a bit chaotic as it
is already... After all this driver must handle many different wildly
different devices so keeping it simpler benefits the addition of new
devices.
> I built v3 as an out-of-tree module against a 7.0.11-based distribution
> kernel, with only the schedule_delayed_work() call of 7/7 removed and my
> userspace workaround stopped, and checked whether the keyboard stays in
> hotkey mode (keyboard backlight key changing asus::kbd_backlight, plus
> usbmon on the keyboard's bus for part of the runs):
>
> - docking: 10 of 10
> - loading the module with the keyboard attached: 2 of 2
> - rebinding only the touchpad to hid-multitouch while docked: 4 of 4
> - s2idle suspend and resume: 3 of 3
> - reboot with the module loaded after hid-multitouch (rootfs only):
> 2 reboots, 1 cold boot, all fine
> - reboot with the module in the initramfs: 3 reboots, 1 cold boot,
> all fine
>
> usbmon shows hid-asus sending the 0x5a handshake on interface 4 and
> hid-multitouch sending feature reports 0x07, 0x03 and 0x05 to the
> touchpad on interface 5 some 10-20 ms later, and the hotkeys keep
> arriving as 0x5a reports on interface 4 afterwards. The same happens
> when hid-multitouch reconfigures the touchpad on resume or on a rebind.
>
> I also went back through my notes from August to see why I believed
> otherwise. The conclusion came from a test where I rebound the touchpad
> and the brightness keys then did nothing. At that point my test module
> had neither the descriptor fixup nor the forced hid-input binding yet,
> so the hotkey interface had no input device at all and the keys could
> not have worked in either mode; my userspace workaround was stopped.
> All later tests that day already included the re-send, so they showed
> that the whole patch works, but never whether the re-send is needed.
>
> I am really sorry for the extra work this caused, Paolo, for carrying
> and adapting the patch, and Denis and everyone else for reviewing it.
> This was my first time this deep into a driver, and I should have
> tested the re-send on its own before sending it.
Well you know how this things go... Only who does nothing can claim
to have made no mistakes. There's no problem for me, in fact it happened
to me too to do work based on assumptions that ended up being false...
It just happens and is nobody's fault!
I actually like reading these things so I know what was done and tested
and what to look for in case I find myself in similar situations (and what
to look for when bringing up new hardware in the fastest way possible).
> Unrelated, in case it is useful: with the series applied, the keyboard
> backlight stays on while the laptop is in s2idle suspend.
I haven't looked much at these models beside the wmi side so I don't
know if they are like ROGs/TUFs but ROGs and TUFs have the keyboard
backlight that can be configured in s2idle and/or hibernation, but even
if powered on usually the pattern changes... So I am concerned that
hardware isn't entering s2idle properly... Are you sure it is?
You can use the amd-s2idle tool even if the CPU is an intel one to check
that.
I don't want to speculate too much, but if it really is sleeping then we are
either missing a way to configure backlight enablement on power states
or a command to send while suspending.
> Thanks,
> Rebecca
next prev parent reply other threads:[~2026-10-18 19:48 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 10:39 [PATCH v3 0/7] HID: asus: ASUS Zenbook Duo keyboard support Paolo Pisati
2026-10-13 10:39 ` [PATCH v3 1/7] HID: asus: Fix up Zenbook Duo report descriptors Paolo Pisati
2026-10-18 15:50 ` Denis Benato
2026-10-18 16:18 ` Rebecca Mara Müller
2026-10-18 17:52 ` Denis Benato
2026-10-13 10:39 ` [PATCH v3 2/7] HID: asus: Add missing Zenbook Duo hotkeys Paolo Pisati
2026-10-18 15:55 ` Denis Benato
2026-10-18 21:38 ` Nathan Chancellor
2026-10-18 21:39 ` Denis Benato
2026-10-13 10:40 ` [PATCH v3 3/7] HID: asus: Force hid-input to bind to the Zenbook Duo hotkey interface Paolo Pisati
2026-10-18 16:06 ` Denis Benato
2026-10-13 10:40 ` [PATCH v3 4/7] HID: asus: Cycle the platform profile from the Zenbook Duo profile key Paolo Pisati
2026-10-18 16:27 ` Denis Benato
2026-10-13 10:40 ` [PATCH v3 5/7] HID: asus: Do not send feature reports larger than declared Paolo Pisati
2026-10-18 16:52 ` Denis Benato
2026-10-13 10:40 ` [PATCH v3 6/7] HID: asus: add prod-id, quirk for Zenbook Duo keyboard Paolo Pisati
2026-10-18 16:57 ` Denis Benato
2026-10-18 21:43 ` Nathan Chancellor
2026-10-18 21:46 ` Denis Benato
2026-10-13 10:40 ` [PATCH v3 7/7] HID: asus: Re-send the Zenbook Duo keyboard handshake after probe Paolo Pisati
2026-10-18 17:10 ` Denis Benato
2026-10-18 19:18 ` Rebecca Mara Müller
2026-10-18 19:48 ` Denis Benato [this message]
2026-10-19 6:12 ` Rebecca Mara Müller
2026-10-19 11:03 ` Denis Benato
2026-10-19 13:36 ` Rebecca Mara Müller
2026-10-13 11:45 ` [PATCH v3 0/7] HID: asus: ASUS Zenbook Duo keyboard support Rebecca Mara Müller
2026-10-13 13:56 ` Denis Benato
2026-10-14 13:21 ` Paolo Pisati
2026-10-18 17:21 ` Denis Benato
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23dcbde2-26c3-4288-aa71-3bb3107e3f45@linux.dev \
--to=denis.benato@linux.dev \
--cc=bentiss@kernel.org \
--cc=hacker1024@users.sourceforge.net \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luke@ljones.dev \
--cc=me@livan.pro \
--cc=nathan@kernel.org \
--cc=p.pisati@gmail.com \
--cc=rebecca.mara@posteo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®