thc_wot_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to thc_wot_config(9) from the Kernel API Manual β€” this is the wake-on-touch config page and she is iconic πŸ’…

✨ NAME ✨

thc_wot_config β€” query and configure the wake-on-touch feature. That's the whole vibe: query it, configure it, slay ✨

πŸ’… SYNOPSIS πŸ’…

void thc_wot_config (struct thc_device *thc_dev , const struct acpi_gpio_mapping *gpio_map );

πŸŽ€ ARGUMENTS πŸŽ€

  • thc_dev β€” points to the thc_device structure πŸ’–
  • gpio_map β€” points to the ACPI GPIO resource mapping structure πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the situation, bestie: the THC ACPI device only provides _CRS with GpioInt resources. It doesn't contain _DSD to map this GPIO resource. So this function first registers the wake GPIO mapping manually. Then it queries the wake-on-touch GPIO resource from ACPI. If that resource exists and is wake-able, it configures the driver to enable it. Otherwise, it returns immediately β€” no lingering, no drama πŸ’…

And because this whole thing doesn't impact major function, this function will not return error. It's giving side-quest energy, not main-plot energy 😌

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/hid/intel-thc-hid/intel-thc/intel-thc-wot.c β€” go read the source, iykyk 🌸
  • thc_wot_unconfig(9) β€” also check out this one πŸ’œ

xoxo, your footer bestie 🫢 β€” source/version is ./drivers/hid/intel-thc-hid/in..., the date is October 2026, and the page is thc_wot_config(9) πŸ’–

πŸ“¦ where this page comes from