Linux Input/HID development
 help / color / mirror / Atom feed
* Re: [PATCH RESEND 5/5] HID: multitouch: add device ID for Apple Touch Bar
@ 2025-03-25 17:01 Aditya Garg
  2025-03-25 17:05 ` Aditya Garg
  2025-03-25 17:29 ` Benjamin Tissoires
  0 siblings, 2 replies; 11+ messages in thread
From: Aditya Garg @ 2025-03-25 17:01 UTC (permalink / raw)
  To: bentiss
  Cc: admin, benjamin.tissoires, gargaditya08, jikos, jkosina, kekrby,
	linux-input, linux-kernel, orlandoch.dev

Yes I can move hid_find_field to the original location as well. But, I would not want to devm_kzalloc as well unnecessarily if the touchbar is in the basic mode instead of drm mode which will cause this -ENODEV to be executed right?

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH RESEND 0/5] HID: multitouch: Add support for Touch Bars on x86 MacBook Pros
@ 2025-03-10  9:10 Aditya Garg
  2025-03-10  9:14 ` [PATCH RESEND 5/5] HID: multitouch: add device ID for Apple Touch Bar Aditya Garg
  0 siblings, 1 reply; 11+ messages in thread
From: Aditya Garg @ 2025-03-10  9:10 UTC (permalink / raw)
  To: Jiri Kosina, Jiri Kosina, Benjamin Tissoires, bentiss@kernel.org
  Cc: Kerem Karabay, Orlando Chamberlain, Aun-Ali Zaidi,
	Linux Kernel Mailing List, linux-input@vger.kernel.org

Hi all!

This patch series aims to improve the Touch Bar support for x86 Macs.

Recently, the hid-appletb-kbd and hid-appletb-bl drivers were upstreamed
into the Linux kernel [1]. They enabled the Touch Bar to display a
predefined set of media and function keys, exactly the same it does on
Windows Bootcamp.

Now we are about to get support added for the DRM mode of the Touch Bar
as well [2].

The DRM mode enables the Touch Bar to act as a second display,
just like macOS. So now you can add a widget, put a clock or anything
else on the Touch Bar as long as you can develop a daemon.

Now via these patches, in the DRM mode, we can use the Touch Bar as a
touch screen. The Touch Bar seems to be not compliant with the HID spec,
thus via these patches several tweaks have been done under the cover of
a single quirk, MT_QUIRK_APPLE_TOUCHBAR.

For the case of T2 Macs, apple-bce [3], the driver for the T2 Security
Chip is also needed for all the peripherals, including the Touch Bar
to work. It is still WIP, and will be subsequently sent later to the
appropriate tree. Till then, I'll suggest for get the driver from [3],
or more preferably, get Linux support from https://t2linux.org/.

Cheers
Aditya

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/log/?h=for-6.15/apple
[2]: https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/0670c2f56e45b3f4541985a9ebe06d04308e43b0
[3]: https://github.com/t2linux/apple-bce-drv

Kerem Karabay (5):
  HID: multitouch: Get the contact ID from HID_DG_TRANSDUCER_INDEX
    fields in case of Apple Touch Bar
  HID: multitouch: support getting the tip state from HID_DG_TOUCH
    fields in Apple Touch Bar
  HID: multitouch: take cls->maxcontacts into account for Apple Touch
    Bar even without a HID_DG_CONTACTMAX field
  HID: multitouch: specify that Apple Touch Bar is direct
  HID: multitouch: add device ID for Apple Touch Bar

 drivers/hid/Kconfig          |  1 +
 drivers/hid/hid-multitouch.c | 70 +++++++++++++++++++++++++++++++-----
 2 files changed, 62 insertions(+), 9 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-03-26 13:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 17:01 [PATCH RESEND 5/5] HID: multitouch: add device ID for Apple Touch Bar Aditya Garg
2025-03-25 17:05 ` Aditya Garg
2025-03-25 17:29 ` Benjamin Tissoires
2025-03-25 17:31   ` Aditya Garg
2025-03-25 18:05     ` Aditya Garg
2025-03-26  9:54       ` Jiri Kosina
2025-03-26 13:39         ` Aditya Garg
  -- strict thread matches above, loose matches on Subject: below --
2025-03-10  9:10 [PATCH RESEND 0/5] HID: multitouch: Add support for Touch Bars on x86 MacBook Pros Aditya Garg
2025-03-10  9:14 ` [PATCH RESEND 5/5] HID: multitouch: add device ID for Apple Touch Bar Aditya Garg
2025-03-25 13:13   ` Benjamin Tissoires
2025-03-25 13:38     ` Aditya Garg
2025-03-25 16:11       ` Benjamin Tissoires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox