This gist is a note for:
- Macbook 12' 2015: Macbook8,1
- Macbook 12' 2016: Macbook9,1
- Macbook 12' 2017: Macbook10,1
Follwing https://learn.omacom.io/2/the-omarchy-manual/97/mac-support is needed.
A reference in hyprland monitor conf.
.config/hypr/monitors.conf
env = GDK_SCALE,1.75
monitor=,preferred,auto,1.6
- Make CapsLock as Ctrl
- Switch Ctrl(⌃) and Super(⌘) to maintain your muscle memory
To do that, append the kb_options
value with comma as spliter in input conf files of hyprland.
.config/hypr/input.conf
kb_options = compose:caps,caps:ctrl_modifier,ctrl:swap_lwin_lctl
- Make sure the driver is already in the system:
ref: https://wiki.archlinux.org/title/Laptop/Apple#MacBook9,1_Early_2016
sudo pacman -Syu
sudo pacman -S dkms
yay -S macbook12-spi-driver-dkms
2. Tell mkinitcpio to pack the needed modules early
Edit /etc/mkinitcpio.conf from
MODULES=(btrfs)
to
MODULES=(btrfs applespi intel_lpss_pci spi_pxa2xx_platform)
(The two helper modules are required because applespi sits on top of them.)
- Rebuild the initramfs
sudo mkinitcpio -P
ref:
- https://github.com/Dunedan/mbp-2016-linux?tab=readme-ov-file#suspend--hibernation
- https://bbs.archlinux.org/viewtopic.php?pid=2176149#p2176149
Just create a systemd service that performs echo 0 > /sys/bus/pci/devices/0000\:01\:00.0/d3cold_allowed
Following the first ref will do the job!
The audio didnt work perfectly.
- If you need the 3.5mm interface to work with your headphone only, it's out of box working
- If you need speaker work, install https://github.com/leifliddy/macbook12-audio-driver, while this will break your headphone, but, if you are using a dongle && a USB headphone, it works... NOTE: after install it, you cannot undo it clearly to have headphone working again...
update: