Home

Awesome

hid-apple

A Linux HID Apple driver fixed for the early 2015 Apple MacBook Pro 12,1, for Linux kernel 3.19.

The patched driver is based on the fixes published here. The fixes made it into Kernel 4.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.

Hardcoded with the default Ubuntu 15.04 kernel parameters (DEBUG_FS=Y, HIDRAW=Y)

Manual Installation

make
sudo make install

Put the modules into the init ram fs

sudo update-initramfs -u

Reboot.

Normal module configuration options apply. For example if you want to invert the fn key function, i.e. use F1-F12 keys without pressing the Fn, then do

echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf

It will become active on the next reboot. For swapping alt and opt do:

echo options hid_apple swap_opt_cmd=1 | sudo tee -a /etc/modprobe.d/hid_apple.conf

If the tilde (~) key produces something else, like arrows (< >), try:

echo 0 > /sys/module/hid_apple/parameters/iso_layout

DKMS Installation

(not fully tested yet)

  1. Ensure DKMS is installed: sudo apt-get install dkms
  2. Add the module to DKMS: sudo dkms add .
  3. Build the module: sudo dkms build hid-apple/1.0
  4. Install the module: sudo dkms install hid-apple/1.0

This should ensure the module is automatically built remains built when newer version of the kernel packages are installed.