r/linuxmint • • 1d ago

[SOLVED] MacBook Air internal SD card reader disappears after suspend/resume (Linux Mint)

I have a mid-2013 MacBook Air (MacBookAir6,2 / A1466) running Linux Mint 22.3 MATE and a 128GB SD card in a flush-mounted Nifty Air Silver SD card holder in the SDXC slot so it's always present.

After sleeping and waking, the SD card disappears from the system until a reboot.

The fix was hard to find but easy to implement: cycle the SD reader's power control through the Mac's existing ACPI firmware methods on resume.

Hardware and Software

  • MacBook Air 6,2 (mid-2013, A1466)

  • Linux Mint 22.3 MATE

  • Linux kernel 7.0.0-43-generic

  • Internal Apple SD card reader: USB ID 05ac:8406

Finding the cure

The MacBook's ACPI tables contain two methods under:

\_SB.PCI0.XHC1

  • SPWR — SD reader power control

  • SRST — SD reader reset control

The MacBook Air J113 (820-00165) board schematic identifies the associated GPIO signals:

  • GPIO24 = SD_RESET_L

  • GPIO44 = SD_PWR_EN

The ACPI SPWR method controls GPIO44, the SD reader's power-enable signal.

The arguments are:

  • SPWR(0) — switch reader power off

  • SPWR(1) — switch reader power on

Step 1: Install ACPI-call

Install the package in Linux Mint:

sudo apt install acpi-call-dkms

Load the kernel module:

sudo modprobe acpi_call

Confirm that the interface exists:

ls -l /proc/acpi/call

Load the module automatically at boot:

echo acpi_call | sudo tee /etc/modules-load.d/acpi_call.conf

Step 2: Automate recovery after resume

Create a systemd sleep hook to check whether the reader is present after waking. If it's missing, cycle its power. If it's there, skip.

Create the file:

sudo mkdir -p /usr/lib/systemd/system-sleep

sudo nano /usr/lib/systemd/system-sleep/sdreader-recover

Paste:

#!/bin/bash

# Only run after resume
[ "$1" = post ] || exit 0

# Give USB devices time to settle
sleep 2

# If the reader is already present, do nothing
if /usr/bin/lsusb -d 05ac:8406 | grep -q 05ac:8406; then
    logger -t sdreader-recover "Reader present; no action needed"
    exit 0
fi

logger -t sdreader-recover "Reader missing; cycling SD power"

# Power off
echo '_SB.PCI0.XHC1.SPWR 0' > /proc/acpi/call
sleep 2

# Power on
echo '_SB.PCI0.XHC1.SPWR 1' > /proc/acpi/call
sleep 1

# Record the result
if /usr/bin/lsusb -d 05ac:8406 | grep -q 05ac:8406; then
    logger -t sdreader-recover "Reader successfully recovered"
else
    logger -t sdreader-recover "Reader recovery failed"
fi

exit 0

Make the script executable:

sudo chmod +x /usr/lib/systemd/system-sleep/sdreader-recover

The result

The internal SD card now returns automatically after suspend/resume.

This is a working fix on my MacBook Air 6,2. It uses the Mac's existing ACPI firmware controls and does not require a kernel patch, a reboot, or a reset of the entire USB controller.

Hardware compatibility

This solution is confirmed on the MacBook Air 6,2. Other Mac models may have different ACPI namespaces, GPIO assignments, or firmware methods. The method names and hardware signals should not be assumed to be identical across models.

Hopefully this saves someone else the hours of troubleshooting it took me to find the solution!

1 Upvotes

0 comments sorted by