You are not logged in.

#301 2015-06-13 00:20:29

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

Re: Macbook Air 2013

Some days ago I opened a thread about suspending problems:
https://bbs.archlinux.org/viewtopic.php?id=198159

I didnt know a MBA thread already existed. Of course this belongs here smile

Pitmairen tried to help me as he seems to have the same problems, but we were not able to figure out, what the issue is sad

Any ideas?

Offline

#302 2015-06-13 11:00:39

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

Re: Macbook Air 2013

It seems like some others are also having the same problem: https://bugs.launchpad.net/ubuntu/+sour … ug/1460393

I don't know what the problem is, but it is possible this problem started after I booted into os x and installed the latest updates. I don't remember when i did the update, but I think it was just before the problem started.

Have you installed the latest updates to osx?

Offline

#303 2015-06-14 10:51:08

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

Re: Macbook Air 2013

I have arch only on my MBA. Installed it like 2 weeks ago. At that time OSX was up to date.

Offline

#304 2015-06-18 22:51:08

stratosmacker
Member
Registered: 2013-10-15
Posts: 13

Re: Macbook Air 2013

MartiniMoe wrote:

I have arch only on my MBA. Installed it like 2 weeks ago. At that time OSX was up to date.

I am having the same problem, but my firmware hasn't been updated since March

Offline

#305 2015-06-19 10:21:06

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

Re: Macbook Air 2013

Ok, so then its probably has nothing to do with the firmware.

This seems to be something similar: https://bbs.archlinux.org/viewtopic.php?id=197568

Offline

#306 2015-06-20 23:02:31

stratosmacker
Member
Registered: 2013-10-15
Posts: 13

Re: Macbook Air 2013

Pitmairen wrote:

Ok, so then its probably has nothing to do with the firmware.

This seems to be something similar: https://bbs.archlinux.org/viewtopic.php?id=197568

Unfortunately that only points us in the fairly general direction of acpi. I'll try building a kernel from the mainline and see if it has been fixed upstream

Offline

#307 2015-06-20 23:53:01

stratosmacker
Member
Registered: 2013-10-15
Posts: 13

Re: Macbook Air 2013

The last part of my klog on a suspend+immediate resume is here. It seems to be executing an early resume because of a device. Me thinks it is related to xhci_hcd see the source here, http://lxr.free-electrons.com/source/dr … wer/main.c

Jun 20 19:48:20 jesse-air kernel: smpboot: CPU 3 is now offline
Jun 20 19:48:20 jesse-air kernel: ACPI: Low-level resume complete
Jun 20 19:48:20 jesse-air kernel: PM: Restoring platform NVS memory
Jun 20 19:48:20 jesse-air kernel: Enabling non-boot CPUs ...
Jun 20 19:48:20 jesse-air kernel: x86: Booting SMP configuration:
Jun 20 19:48:20 jesse-air kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Jun 20 19:48:20 jesse-air kernel: kvm: enabling virtualization on CPU1
Jun 20 19:48:20 jesse-air kernel: CPU1 is up
Jun 20 19:48:20 jesse-air kernel: smpboot: Booting Node 0 Processor 2 APIC 0x1
Jun 20 19:48:20 jesse-air kernel: kvm: enabling virtualization on CPU2
Jun 20 19:48:20 jesse-air kernel: CPU2 is up
Jun 20 19:48:20 jesse-air kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Jun 20 19:48:20 jesse-air kernel: kvm: enabling virtualization on CPU3
Jun 20 19:48:20 jesse-air kernel: CPU3 is up
Jun 20 19:48:20 jesse-air kernel: ACPI: Waking up from system sleep state S3
Jun 20 19:48:20 jesse-air kernel: xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
Jun 20 19:48:20 jesse-air kernel: PM: noirq resume of devices complete after 19.444 msecs
Jun 20 19:48:20 jesse-air kernel: PM: early resume of devices complete after 20.185 msecs

Offline

#308 2015-06-21 00:01:44

stratosmacker
Member
Registered: 2013-10-15
Posts: 13

Re: Macbook Air 2013

stratosmacker wrote:

The last part of my klog on a suspend+immediate resume is here. It seems to be executing an early resume because of a device. Me thinks it is related to xhci_hcd see the source here, http://lxr.free-electrons.com/source/dr … wer/main.c

Jun 20 19:48:20 jesse-air kernel: smpboot: CPU 3 is now offline
Jun 20 19:48:20 jesse-air kernel: ACPI: Low-level resume complete
Jun 20 19:48:20 jesse-air kernel: PM: Restoring platform NVS memory
Jun 20 19:48:20 jesse-air kernel: Enabling non-boot CPUs ...
Jun 20 19:48:20 jesse-air kernel: x86: Booting SMP configuration:
Jun 20 19:48:20 jesse-air kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Jun 20 19:48:20 jesse-air kernel: kvm: enabling virtualization on CPU1
Jun 20 19:48:20 jesse-air kernel: CPU1 is up
Jun 20 19:48:20 jesse-air kernel: smpboot: Booting Node 0 Processor 2 APIC 0x1
Jun 20 19:48:20 jesse-air kernel: kvm: enabling virtualization on CPU2
Jun 20 19:48:20 jesse-air kernel: CPU2 is up
Jun 20 19:48:20 jesse-air kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Jun 20 19:48:20 jesse-air kernel: kvm: enabling virtualization on CPU3
Jun 20 19:48:20 jesse-air kernel: CPU3 is up
Jun 20 19:48:20 jesse-air kernel: ACPI: Waking up from system sleep state S3
Jun 20 19:48:20 jesse-air kernel: xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
Jun 20 19:48:20 jesse-air kernel: PM: noirq resume of devices complete after 19.444 msecs
Jun 20 19:48:20 jesse-air kernel: PM: early resume of devices complete after 20.185 msecs

Adding

 echo XHC1 > /proc/acpi/wakeup 

into the mix (to disable wake on XHC1) did nothing. I thought xhci_hcd was waking up the air, but the log is more or less the same without the line for xhci_hcd

Jun 20 19:57:24 jesse-air kernel: smpboot: CPU 3 is now offline
Jun 20 19:57:24 jesse-air kernel: ACPI: Low-level resume complete
Jun 20 19:57:24 jesse-air kernel: PM: Restoring platform NVS memory
Jun 20 19:57:24 jesse-air kernel: Enabling non-boot CPUs ...
Jun 20 19:57:24 jesse-air kernel: x86: Booting SMP configuration:
Jun 20 19:57:24 jesse-air kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Jun 20 19:57:24 jesse-air kernel: kvm: enabling virtualization on CPU1
Jun 20 19:57:24 jesse-air kernel: CPU1 is up
Jun 20 19:57:24 jesse-air kernel: smpboot: Booting Node 0 Processor 2 APIC 0x1
Jun 20 19:57:24 jesse-air kernel: kvm: enabling virtualization on CPU2
Jun 20 19:57:24 jesse-air kernel: CPU2 is up
Jun 20 19:57:24 jesse-air kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Jun 20 19:57:24 jesse-air kernel: kvm: enabling virtualization on CPU3
Jun 20 19:57:24 jesse-air kernel: CPU3 is up
Jun 20 19:57:24 jesse-air kernel: ACPI: Waking up from system sleep state S3
Jun 20 19:57:24 jesse-air kernel: PM: noirq resume of devices complete after 19.487 msecs
Jun 20 19:57:24 jesse-air kernel: PM: early resume of devices complete after 20.077 msecs
Jun 20 19:57:24 jesse-air kernel: wl_resume: PCI Resume handler
Jun 20 19:57:24 jesse-air kernel: sd 0:0:0:0: [sda] Starting disk
Jun 20 19:57:24 jesse-air kernel: rtc_cmos 00:02: System wakeup disabled by ACPI
Jun 20 19:57:24 jesse-air kernel: wl0: link down (wlp3s0)
Jun 20 19:57:24 jesse-air kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 20 19:57:24 jesse-air kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Jun 20 19:57:24 jesse-air kernel: ata1.00: unexpected _GTF length (8)

Offline

#309 2015-06-21 03:09:51

stratosmacker
Member
Registered: 2013-10-15
Posts: 13

Re: Macbook Air 2013

Got it!

Enable tlp-sleep.service. Without it tlp seems to wake up the system for no reason. With it I can get sleep!

Offline

#310 2015-06-22 14:35:18

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

Re: Macbook Air 2013

Maybe, but i have had it happen even when not using tlp, it just seems to happens less frequently.

Offline

#311 2015-06-23 14:28:22

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

Re: Macbook Air 2013

My suspend doesnt work with or without tlp. Even when I enable tlp-sleep it doesnt work.
Has anyone tried kernel 4.1 yet?

Last edited by MartiniMoe (2015-06-23 14:43:05)

Offline

#312 2015-07-19 04:29:07

step-2
Member
Registered: 2012-05-08
Posts: 118

Re: Macbook Air 2013

i get this on 4.1.2 kernel in dmesg :

[drm:intel_set_cpu_fifo_underrun_reporting [i915]] *ERROR* uncleared fifo underrun on pipe A
[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun

not seen with 3.14.48 lts kernel ,

but the fan & heat issue is there on both kernels .

macfanctld-git seems to lets ramp up & ramp down quickly , but still far from ideal .

Last edited by step-2 (2015-07-19 04:35:33)

Offline

#313 2015-07-19 13:14:47

step-2
Member
Registered: 2012-05-08
Posts: 118

Re: Macbook Air 2013

jhohisel wrote:

Not sure if this was already suggested for overheating/fan issues, but maybe try resetting the SMC?

As for the power usage, I can be of help!

I had this same issue on my laptop with Ubuntu 15.04 (Kernel 3.19)

With Kernel 3.18, thunderbolt hot-plug support was added. This was done by telling the ACPI that the OS is Darwin (OS X). Incidentally, a bug was introduced preventing the laptop from entering the lowest CPU state.

The fix is to add 'acpi_osi=' to GRUB kernel parameters, which also will mean that thunderbolt devices will have to be plugged in before booting.
Should bring back your 11-12 hr battery life.

is it just 'acpi_osi='  or 'acpi_osi=Linux'  ??

Offline

#314 2015-08-02 22:43:07

Excubia
Member
Registered: 2015-08-02
Posts: 29

Re: Macbook Air 2013

Even with 3.17 kernel, the battery is pretty bad; the fan makes noise and the temperature rises. What is the current state of knowledge on this issue?

Offline

#315 2015-08-05 20:52:02

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Macbook Air 2013

Right now on minimal browsing and terminal screen around 60% brightness I'm around 10-11 hours. 

$ acpi -i
Battery 0: Discharging, 92%, 10:45:25 remaining
Battery 0: design capacity 8619 mAh, last full capacity 8276 mAh = 96%

@Excubia, could you detail out what power savings you have done?  What kind of usage you are doing (compiling? watching videos? etc) and how many hours you are getting?  If I were to watch videos non stop, I'd probably be in the 5-6 hour mark.

Last edited by frank604 (2015-08-05 22:38:08)

Offline

#316 2015-08-08 12:08:20

Excubia
Member
Registered: 2015-08-02
Posts: 29

Re: Macbook Air 2013

As you have, acpi tells me I have plenty of battery. But the heat and fan noise tell me the contrary.

I have installed both powertop and powerdown. For the same activities (using Tor, watching videos), I have no heat and no noise on OS X.

Offline

#317 2015-08-08 18:01:02

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Macbook Air 2013

Right now my current setup is tlp, macfanctdl, and thermald.  See if switching from powertop and powerdown helps.

Offline

#318 2015-08-09 01:59:58

Excubia
Member
Registered: 2015-08-02
Posts: 29

Re: Macbook Air 2013

Changes done. My baseline power consumption is still 10W, it should be half.
Powertop tells me "Display backlight" takes 7W on its own.

Last edited by Excubia (2015-08-09 02:01:03)

Offline

#319 2015-08-09 07:43:59

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Macbook Air 2013

I forgot to ask the group if you guys are experiencing ata errors only after a suspend/resume?  Anyone?  I've tried

libata.force=noncq
libata.force=1.5G
libata.force=1.5G,noncq
libata.force=3.0G,noncq
[  +0.000001] ata1.00: status: { DRDY }
[  +0.000003] ata1: hard resetting link
[  +0.719684] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  +0.000465] ata1.00: unexpected _GTF length (8)
[  +0.000546] ata1.00: unexpected _GTF length (8)
[  +0.000073] ata1.00: configured for UDMA/133
[  +0.000110] ata1: EH complete
[  +4.384538] ata1.00: exception Emask 0x10 SAct 0x80000 SErr 0x4040000 action 0xe frozen
[  +0.000004] ata1.00: irq_stat 0x80000040, connection status changed

Edit:  Nevermind, this issue was due to tlp.  I solved it by commenting out one line in /usr/sbin/tlp

#set_sata_link_power $1

Last edited by frank604 (2015-08-10 01:05:23)

Offline

#320 2015-08-09 17:59:54

Excubia
Member
Registered: 2015-08-02
Posts: 29

Re: Macbook Air 2013

Finally, everything is getting better. I don't know why but the baseline consumption is down to 6-7W which is pretty OK.

Offline

#321 2015-08-13 17:38:25

mkraemer
Member
Registered: 2011-06-09
Posts: 12

Re: Macbook Air 2013

I'm currently getting a bit over 10:00 hours on my 2013 Macbook Air 11" using linux-ck 3.17.7 and have a stable wifi connection (BCM4360 using broadcom-wl-dkms 6.30.223.248-5).

Is anyone running a newer kernel with acceptable power usage and stable wifi?

Offline

#322 2015-08-16 04:56:23

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: Macbook Air 2013

Hi all!

I just installed Arch on my Macbook Air 6.2 and so far I'm happy: no heat, no noise, decent (>10h) battery life. I even managed to set up some gestures like those of OSX.

There are however two issues:

1/ the double tap and drag gesture available on OSX, which allows you to double click on an item to drag it, as long as you don't release the second tap, doesn't work. I'm using KDE - up to date as of today. Do you guys know where I should look at to set it up correctly / how to do it?

2/ when coming back from sleep, the screen brightness can be adjusted between 80% and 100%. Everything below 80% turns off the backlit completely. Is that a known bug?

Thanks a lot for your help!

Aurel.

PS: btw, i'm running linux 4.1.4-1-ARCH, no battery drain, stable wifi connection.

Offline

#323 2015-08-16 05:32:27

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Macbook Air 2013

aurelieng wrote:

Hi all!

2/ when coming back from sleep, the screen brightness can be adjusted between 80% and 100%. Everything below 80% turns off the backlit completely. Is that a known bug?

Known bug since day 1. Patjak created a module that fixes this.  Look in aur for mba6x_bl-dkms.

Offline

#324 2015-08-16 09:54:20

mkraemer
Member
Registered: 2011-06-09
Posts: 12

Re: Macbook Air 2013

aurelieng wrote:

the double tap and drag gesture available on OSX, which allows you to double click on an item to drag it, as long as you don't release the second tap, doesn't work. I'm using KDE - up to date as of today. Do you guys know where I should look at to set it up correctly / how to do it?

What touchpad driver are you using?

xf86-input-mtrack is probably your best choice, but the double tap and drag gesture isn't mentioned in the documentation.
Maybe open a feature request here?

aurelieng wrote:

btw, i'm running linux 4.1.4-1-ARCH, no battery drain, stable wifi connection.

Awesome, I'll try to replicate this smile Thanks!

Offline

#325 2015-08-16 11:28:42

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Macbook Air 2013

@mkraemer, mtrack is working for you?

Offline

Board footer

Powered by FluxBB