winesapOS icon indicating copy to clipboard operation
winesapOS copied to clipboard

Remove dependency on touchbar driver once it is upstreamed

Open LukeShortCloud opened this issue 3 years ago • 1 comments

The Macbook Pro touchbar driver is under review for being upstreamed into the kernel. This is something to keep an eye on.

https://www.phoronix.com/scan.php?page=news_item&px=Apple-Touch-Bar-For-Linux

LukeShortCloud avatar Feb 28 '21 14:02 LukeShortCloud

The driver reported in the article above was never upstreamed. It was sent it, the kernel developers gave a lot of feedback, and the downstream driver was seemingly never approved on.

As it is right now, we install a custom "applespi" driver (from the macbook12-spi-driver-dkms package in the AUR) that allows the keyboard, mouse, and touchbar to work. All of that has been upstreamed into the Linux kernel since Linux 5.3 except the touchbar driver.

Linux 5.18 may finally have the changes we need to drop the macbook12-spi-driver-dkms package and instead rely on the upstream kernel. Here are relevant fixes for MacBook Pros:

- Support for the keyboard backlight control on various Apple T2-chipped Macs. There are also various IDs added for handling the keyboard with other Macs relying on the T2 security chip.

- Fn key mapping support for MacBook Pros that have a Touch Bar.

"""

We should test with 5.18 as soon as it comes out to see if it works as expected but we will only ship LTS or SteamOS kernels.

LukeShortCloud avatar Feb 21 '22 18:02 LukeShortCloud

The touchbar driver was attempted to be upstreamed again.

https://www.phoronix.com/news/Apple-Touch-Bar-Linux-2023

LukeShortCloud avatar Apr 02 '23 19:04 LukeShortCloud

Once the touchbar driver is upstreamed, the apple-bce-drv driver is still required for it to work.

https://lore.kernel.org/lkml/[email protected]/

LukeShortCloud avatar May 18 '23 21:05 LukeShortCloud

This is no longer relevant since we switched to the t2linux kernel.

https://github.com/LukeShortCloud/winesapOS/issues/641

LukeShortCloud avatar Aug 24 '23 03:08 LukeShortCloud