You are not logged in.

#1 2015-06-02 09:34:02

MartiniMoe
Member
Registered: 2015-06-02
Posts: 10

MacBook problems when suspending

Hi there,

Im running arch on my MacBook Air 13" Mid 2013.
Suspending works finde on first try after a fresh boot. I close the lid, see the display brightness turning to zero.
From second lid close on it goes to sleep and wakes up again after ~2 secs with lid still closed. I can only tell because the display lights up again

I got the journal of the first and second lid close uncluding the opening of the lid:
First, correct suspend: http://pastebin.com/DGR3hRTE
Second, faulty suspend: http://pastebin.com/zcJewPdz

I cant really tell any differnce. But Im curious why a wake up is requested in both times by the wifi chip.

// Im using powertop and tlp, if that matters.

Last edited by MartiniMoe (2015-06-02 09:34:58)

Offline

#2 2015-06-02 11:32:41

Pitmairen
Member
Registered: 2007-08-02
Posts: 37

Re: MacBook problems when suspending

Hi, I have a MacBook Air 11 Mid 2013, and I have the same problem. It has been working perfectly until maybe one or two weeks ago.

First I was using powerdown-git, but then it would not suspend after the first suspend. Then I switched to tlp, and at first it seemed to work, but after a day or so it started happending again. Now I have removed both powerdown and tlp and suspend is working, but I have only been testing it for a few hours.

Another observation i have made when suspend is not working is that when running this command:
udevadm info -a -p /sys/class/power_supply/ADP1

The "online" attribute is not updated when i unplug the power cable.


Edit:
It happened again so removing tlp did not help. But i noticed that I can suspend as root. If I type systemctl suspend as root it suspends without waking up.

Edit:
I'm able to suspend as a regular user if i do "modprobe -r wl" before i suspend.

Last edited by Pitmairen (2015-06-02 13:49:39)

Offline

#3 2015-06-02 17:40:04

MartiniMoe
Member
Registered: 2015-06-02
Posts: 10

Re: MacBook problems when suspending

Thank you for your response.
I will try suspending with "modprobe -r wl" soon.

Im having some heat issues right now. I compiled something huge and now Im watching a stream and the MBA gets quite hot.

+++ Temperatures
CPU temp               =    70 [°C]
Fan speed (fan1)       =  1464 [/min]

How can I get it to power up the fan at these temperatures?

Offline

#4 2015-06-02 17:51:43

Pitmairen
Member
Registered: 2007-08-02
Posts: 37

Re: MacBook problems when suspending

I was also having head problems and the fan not spinning up. Mine reached 90 °C with the fan still at low speed.

Then I installed macfanctld and it now works a lot better.

Last edited by Pitmairen (2015-06-02 17:52:03)

Offline

#5 2015-06-02 18:11:21

MartiniMoe
Member
Registered: 2015-06-02
Posts: 10

Re: MacBook problems when suspending

Wow thats great, thank you! Fans are now spinning up.

I also saw the battery state and load percentage freeze. Thought it was a bug of i3pystatus, did not investigate further.

I will now try to see if unloading wl fixes my suspending problems too. If thats the case I would try to automatically unload and reload it like explaned here: https://wiki.archlinux.org/index.php/Po … leep_hooks

// Hmm, Im not able to reconnect the wifi after "modprobe wl". Also it did not suspend after "modprobe -r wl" but was waking up again :-\

Last edited by MartiniMoe (2015-06-02 18:20:46)

Offline

#6 2015-06-02 19:43:15

Pitmairen
Member
Registered: 2007-08-02
Posts: 37

Re: MacBook problems when suspending

Are you able to reconnect if you run the following command?: systemctl restart wpa_supplicant

Does it suspend if you run: systemctl suspend ?

Offline

#7 2015-06-03 06:43:02

MartiniMoe
Member
Registered: 2015-06-02
Posts: 10

Re: MacBook problems when suspending

Im able to reconnect after restarting wpa_supplicant.
But suspending doesnt work after "modprobe -r wl". Not even with "systemctl suspend". It wakes up few seconds later sad

Where you able to fix the stuck battery state and percentage?

// lsmod also shows a module named "cfg80211", do you also have this loaded?

Last edited by MartiniMoe (2015-06-03 06:47:32)

Offline

#8 2015-06-03 13:44:14

Pitmairen
Member
Registered: 2007-08-02
Posts: 37

Re: MacBook problems when suspending

Ok, so maybe the wl module is not the problem after all.

Suspend has been working for me since yesterday after i disabled tlp. I tried to enable tlp just now and then it would not suspend again, and removing wl did not work this time.  But I was able to suspend as root, and after suspending as root once I was able to suspend as a regular user again. But the battery state is still stuck until next reboot.

At least the problem seems to happen less frequently without tlp or powerdown-git.

Offline

Board footer

Powered by FluxBB