Bug 192929 - ACPI suspend doesn't resume on macbook
Summary: ACPI suspend doesn't resume on macbook
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-acpi (Nobody)
Depends on:
Reported: 2014-08-22 19:14 UTC by Kate
Modified: 2015-03-12 04:22 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Kate 2014-08-22 19:14:52 UTC
I'm sure this is similar to a lot of existing bugs. I'm filing this separately to keep track of any macbook-specific tweaks which might need to be documented, if a solution is found.

This is for 11.0-CURRENT i386 -r270176 on a 13" Core 2 Duo macbook.
I'm using the nvidia binary driver, version 331.67. That's built from ports, with ACPI_PM enabled. All my testing is done at the console, without X running.

Supported states are:

    hw.acpi.supported_sleep_state: S3 S4 S5
    hw.acpi.sleep_button_state: S3
    hw.acpi.suspend_state: S3

Symptoms are as follows:

    1. acpiconf -s3; I see USB devices detach, and then the screen blanks and the fan turns off. The standby LED pulses a heartbeat. This all seems good to me.
    2. Press the standby button once
    3. The LED flashes once, brightly. Then turns off. The screen is still blank. The fan turns slowly, and gradually gets faster.

I'm using a USB wifi thing, and its LED does not come back on. Typing things appears to have no effect, but it's hard to tell. I presume the USB devices are still detached, in which case I wouldn't expect the keyboard to work anyway.

Modules loaded:

; kldstat
Id Refs Address    Size     Name
 1   39 0xc0400000 16704d0  kernel
 2    2 0xc1a71000 75144    linux.ko
 3    1 0xc1ae7000 3290     coretemp.ko
 4    1 0xc1aeb000 9ff3e8   nvidia.ko
 5    1 0xc9037000 11000    if_urtwn.ko
 6    1 0xc9051000 5000     wsp.ko
 7    1 0xc905b000 5000     ums.ko
 8    1 0xc9070000 7000     ng_ubt.ko
 9    5 0xc9079000 e000     netgraph.ko
10    1 0xc9096000 b000     ng_hci.ko
11    3 0xc90a7000 2000     ng_bluetooth.ko
12    1 0xc9238000 10000    ng_l2cap.ko
13    1 0xc924b000 23000    ng_btsocket.ko
14    1 0xc9283000 4000     ng_socket.ko
Comment 1 Kate 2014-08-22 23:24:01 UTC
# sysctl debug.acpi.suspend_bounce=1
debug.acpi.suspend_bounce: 0 -> 1
# acpiconf -s 3
uhub1: at usbus0, port 1, addr 1 (disconnected)
ugen0.2: <Apple Inc.> at usbus0 (disconnected)
ukbd1: at uhub1, port 6, addr 2 (disconnected)
wsp0: at uhub1, port 6, addr 2 (disconnected)
wsp_set_device_mode: Failed to read device mode (19)
ums1: at uhub1, port 6, addr 2 (disconnected)
... lots more usb things disconnected ...
urtwn0: at uhub2, port 2, addr 2 (disconnected)

now I can't type anything, of course. Pressing the suspend button once gives no response.

I'll try without wsp(4).
Comment 2 Kate 2014-08-22 23:29:44 UTC
Without wsp.ko loaded gives the same as above for suspend_bounce, obviously sans the wsp lines. All devices just say (disconnected); no errors given. I don't get the prompt back, and I can't type anything. Pressing the suspend button once still has no effect.
Comment 3 Kate 2014-08-22 23:35:21 UTC
Exactly the same without the nvidia module loaded, too.
Comment 4 Kate 2014-08-22 23:57:33 UTC
I booted with verbose mode, and now in addition to the above (disconnected) lines, I also get:

pci0:2:0:0: Transition from D0 to D3