Compatibility of the new Touch Bar with Ubuntu
Matthew Martinez
I'm considering buying the MacBook Pro (Late 2016) with Touch Bar. As I'm a programmer and a Ubuntu user, could anyone tell me if the Touch Bar is compatible with Ubuntu?
2 Answers
It is not right now.
It is doubtful whether there will be meaningful compatibility in the next few years.
6Please, follow firstly this guide and then this one carefully or follow the following steps:
Install the MacBook12 SPI drivers:
apt install dkms
git clone /usr/src/applespi-0.1
dkms install -m applespi -v 0.1
printf "%s\n" "# applespi" "applespi" "intel_lpss_pci" "spi_pxa2xx_platform" >> /etc/initramfs-tools/modules
update-initramfs -uand reboot, then follow this second part (you can interchange apt with dnf):
sudo apt install git kernel-devel
git clone
pushd macbook12-spi-driver
git checkout touchbar-driver-hid-driver
make
sudo mkdir /lib/modules/`uname -r`/custom/
sudo cp applespi.ko appletb.ko /lib/modules/`uname -r`/custom/
sudo depmod
popdnow look for ** the attached 61-evdev-local.hwdb** (located in the directory of the cloned repo):
sudo cp ...the-attached-61-evdev-local.hwdb... /etc/udev/hwdb.d/61-evdev-local.hwdb
sudo modprobe intel_lpss_pci spi_pxa2xx_platform applespi appletbnow, if you using dracut follow this:
sudo mv /boot/initramfs-`uname -r`.img{,.orig}
sudo mv ...the-attached-keyboard.conf... /etc/dracut.conf.d/keyboard.conf
sudo dracutelse this:
- open following file
/etc/initramfs-tools/modules - append to the file only the missing words picked from:
{applespi, intel_lpss_pci, spi_pxa2xx_platform, appletb}(for example if the file the wordspplespiandappletbare already listed, append onlyintel_lpss_pciandspi_pxa2xx_platform) - save and close
finally reboot.
Those guides helped me to install drivers for the TouchBar (not only, TouchPad and some others) on my MacBook Pro Touch (late 2016).
The TouchBar works greatly without no problems.
The distro I used is Ubuntu 17.04 (I am using that to write this answer) dual booted alongside macOS Sierra.
2