A Linux HID Apple driver fixed for the early 2015 Apple MacBook Pro 12,1, for Linux kernel 4.1.2.
Enables the "fn" key that does not work on a bundled hid-apple driver, because it's not recognizing new USB driver.
Fixes the non-functioning touchpad right click and the multitouch.
The patched driver is based on the fixes published here. The fixes made it into Kernel 4.2
Hardcoded with the default Ubuntu 15.04 kernel parameters (DEBUG_FS=Y, HIDRAW=Y)
make
sudo make install
Put the modules into the init ram fs
sudo update-initramfs -u
Normal options apply. For example if you want to down-priority on Fn action on boot do
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
For swapping alt and opt do:
echo options hid_apple swap_opt_cmd=1 | sudo tee -a /etc/modprobe.d/hid_apple.conf