The latest version of the MacBook support for Ubuntu (or vice versa?) Not very good, but except for suspend and resume features not found method use, others are OK, available.
1, Mac in OSX first install Refind boot, if the SPI is turned on, you also need to switch off the SPI in Safe Mode terminal. The Safe Mode terminal is command+r at boot time. Turn off SPI to Google.
2, the production of normal Ubuntu U disk installation disk, in the Mac with the DD command can be. Google can be specific.
3. When installing Ubuntu, an external keyboard is required.
4. After installation, use the following Web page to install the keyboard and touchpad driver.
https://nixaid.com/linux-on-macbookpro/
Because my MacBook WiFi, Bluetooth and so on are OK, in fact, as long as the following steps:
Dkms:keyboard, Touchpad and Touchbar
To avoid hassle with plugging the external keyboard/mouse, you can already build in the keyboard, touchpad and Touchbar Dr Ivers:
apt-get install git dkmscd ~echo -e "\n# macbook12-spi-drivers\napplespi\nappletb\nspi_pxa2xx_platform\nintel_lpss_pci" >> /etc/initramfs-tools/modulesgit clone https://github.com/roadrunner2/macbook12-spi-driver.gitcd ./macbook12-spi-drivergit checkout touchbar-driver-hid-driverdkms add .dkms install -m applespi -v 0.1# lsinitramfs /boot/initrd.img-4.13.0-36-generic | grep -iE "appletb|applespi"lib/modules/4.13.0-36-generic/updates/dkms/appletb.kolib/modules/4.13.0-36-generic/updates/dkms/applespi.ko
If you want the F-keys to is always on by default and the Fn button for switching from F-keys to special keys, then use th E following command:
echo ‘options appletb fnmode=2‘ | sudo tee /etc/modprobe.d/appletb.conf
Touchpad Configuration
Next, you need to set the proper DPI for the touchpad:
cat >/etc/udev/hwdb.d/61-evdev-local.hwdb << ' EOF ' # macbook8,1, macbook9,1, macbook10,1 ( Evdev:name:Apple SPI Touchpad:dmi:*:svnappleinc.:p nmacbook8,1:*evdev:name:apple SPI touchpad:dmi:*: Svnappleinc.:p nmacbook9,1:*evdev:name:apple SPI touchpad:dmi:*:svnappleinc.:p nmacbook10,1:* EVDEV_ABS_00=::95 evdev_abs_01=::90 evdev_abs_35=::95 evdev_abs_36=::90# macbookpro13,* (late), macbookpro14,* (Mid) evdev:name : Apple SPI touchpad:dmi:*:svnappleinc.:p nmacbookpro13,1:*evdev:name:apple SPI Touchpad:dmi:*:svnappleinc.: Pnmacbookpro13,2:*evdev:name:apple SPI Touchpad:dmi:*:svnappleinc.:p nmacbookpro14,1:*evdev:name:apple SPI Touchpad :d mi:*:svnappleinc.:p nmacbookpro14,2:* evdev_abs_00=::96 evdev_abs_01=::94 evdev_abs_35=::96 EVDEV_ABS_36=: : 94evdev:name:apple SPI touchpad:dmi:*:svnappleinc.:p nmacbookpro13,3:*evdev:name:apple SPI Touchpad:dmi:*: Svnappleinc.:p nmacbookpro14,3:* evdev_abs_00=::96 evdev_abs_01=::95 evdev_abs_35=::96 EVDEV_ABS_36=::95EOF
cat > /etc/udev/hwdb.d/61-libinput-local.hwdb << ‘EOF‘libinput:name:*Apple SPI Touchpad*:dmi:* LIBINPUT_MODEL_APPLE_TOUCHPAD=1 LIBINPUT_ATTR_KEYBOARD_INTEGRATION=internal LIBINPUT_ATTR_TOUCH_SIZE_RANGE=200:150 LIBINPUT_ATTR_PALM_SIZE_THRESHOLD=1200EOF
Macbook Pro "installs Ubuntu 18.04