I’ve been scouring the internet for hours trying to get this to work. I’ve followed point 5 from here: https://wiki.archlinux.org/title/Apple_Keyboard
The temporary fix works perfectly. However, the permanent change does not work at all. I am using “dracut --regenerate-all --force” to reset the initramfs.
I’ve also tried using xmodmap to do this. Strangely, it works for swapping my control and caps lock, but still will not work for command and alt. Can anyone help me diagnose what’s going wrong?
Here are my specs:
System:
Kernel: 6.5.5-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10
wm: kwin_x11 vt: 7 dm: 1: LightDM v: 1.32.0 2: SDDM note: stopped
Distro: EndeavourOS base: Arch Linux
Machine:
Type: Laptop System: Apple product: MacBookPro9,2 v: 1.0
serial: Chassis: type: 10 v: Mac-6F01561E16C75D06
serial:
Mobo: Apple model: Mac-6F01561E16C75D06 v: MacBookPro9,2
serial: UEFI: Apple v: 429.0.0.0.0 date: 03/18/2022
Battery:
ID-1: BAT0 charge: 27.7 Wh (45.1%) condition: 61.4/73.4 Wh (83.7%)
volts: 11.9 min: 10.8 model: Newer Tech A1322 type: Li-ion serial: N/A
status: full cycles: 262
CPU:
Info: dual core model: Intel Core i5-3210M bits: 64 type: MT MCP
smt: enabled arch: Ivy Bridge rev: 9 cache: L1: 128 KiB L2: 512 KiB
L3: 3 MiB
Speed (MHz): avg: 1224 high: 1304 min/max: 1200/3100 cores: 1: 1304
2: 1197 3: 1200 4: 1197 bogomips: 19960
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel 3rd Gen Core processor Graphics vendor: Apple driver: i915
v: kernel arch: Gen-7 ports: active: LVDS-1 empty: DP-1, DP-2, DP-3,
HDMI-A-1, HDMI-A-2, HDMI-A-3, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0166
class-ID: 0300
Device-2: Apple FaceTime HD Camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 bus-ID: 2-1.1:3 chip-ID: 05ac:8509 class-ID: 0e02
serial:
Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
loaded: modesetting alternate: fbdev,intel,vesa dri: crocus gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1280x800 s-dpi: 96 s-size: 338x211mm (13.31x8.31")
s-diag: 398mm (15.69")
Monitor-1: LVDS-1 model: Apple 0x9ccb serial: res: 1280x800
hz: 60 dpi: 114 size: 286x179mm (11.26x7.05") diag: 337mm (13.3")
modes: 1280x800
API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv: crocus
device: 1 drv: swrast surfaceless: drv: crocus x11: drv: crocus
inactive: gbm,wayland
API: OpenGL v: 4.5 compat-v: 4.2 vendor: intel mesa v: 23.2.1-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 4000 (IVB
GT2) device-ID: 8086:0166
API: Vulkan Message: No Vulkan data available.
Audio:
Device-1: Intel 7 Series/C216 Family High Definition Audio
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20
class-ID: 0403
API: ALSA v: k6.5.5-arch1-1 status: kernel-api
Server-1: PipeWire v: 0.3.80 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin
Network:
Device-1: Broadcom NetXtreme BCM57765 Gigabit Ethernet PCIe driver: tg3
v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 01:00.0
chip-ID: 14e4:16b4 class-ID: 0200
IF: enp1s0f0 state: down mac:
Device-2: Broadcom BCM4331 802.11a/b/g/n driver: wl v: kernel pcie:
speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 14e4:4331 class-ID: 0280
IF: wlan0 state: up mac:
Bluetooth:
Device-1: Apple Bluetooth Host Controller driver: btusb v: 0.8 type: USB
rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-1.8.1.3:9 chip-ID: 05ac:821a
class-ID: fe01
Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: disabled
rfk-block: hardware: no software: no address: N/A
Drives:
Local Storage: total: 476.94 GiB used: 12.6 GiB (2.6%)
ID-1: /dev/sda vendor: SanDisk model: SDSSDH3 512G size: 476.94 GiB
speed: 6.0 Gb/s tech: SSD serial: fw-rev: 1000 scheme: GPT
Partition:
ID-1: / size: 467.42 GiB used: 12.49 GiB (2.7%) fs: ext4 dev: /dev/sda2
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 58.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Processes: 227 Uptime: 24m wakeups: 2 Memory: total: 16 GiB
available: 15.53 GiB used: 3.7 GiB (23.8%) Init: systemd v: 254
default: graphical Compilers: gcc: 13.2.1 Packages: pm: pacman pkgs: 1167
Shell: Zsh v: 5.9 running-in: alacritty inxi: 3.3.30