Now a linux boot won't touch this state, so the card selection survives boots.
]]>A question for those with a working computer: after running gfxCardStatus (gCS), setting the flag, and rebooting, does the next invocation of gCS have the desired setting or does "Integrated Only" have to be selected again. Presently, "Dynamic Switching" is always selected on subsequent boots and launches.
]]>5.30 W 100.0% USB device: Bluetooth USB Host Controller (Apple Inc.)
...and how can I kill it?
Edit: It turns out that powertop had a tunable for the 5W. That being said, I still don't know what this is.
]]> 10.20 W 100.0% Device USB device: Apple Internal Keyboard / Trackpad (Apple Inc.)
PowerTop finally came to life. Apparently, someone had the same issue on Arch in page 8. Kernel 3.16.1 (backported). This one is supposed to have the Thunderbold Ethernet patch, but I havn't tried it hard yet, so far so good.
EDIT: Apparently the additional 10W is only after a long sleep and resume, or at least it's not always there. I tried to turn on and on and on the USB power management for this device, but it keep draining 10W
]]>129:~ $ powerstat -d 0
Running for 480 seconds (48 samples at 10 second intervals).
ACPI battery power measurements will start in 0 seconds time
Time User Nice Sys Idle IO Run Ctxt/s IRQ/s Watts
10:02:11 0.0 0.0 0.0 100.0 0.0 1 106 127 9.44
10:02:21 0.0 0.0 0.0 100.0 0.0 1 104 127 9.40
10:02:31 0.0 0.0 0.0 100.0 0.0 1 104 126 9.40
10:02:41 0.0 0.0 0.0 100.0 0.0 1 107 126 9.38
10:02:51 0.0 0.0 0.0 100.0 0.0 1 109 127 9.36
10:03:01 0.0 0.0 0.1 99.9 0.0 1 162 140 9.37
>> here I did a "xset dpms force off"
10:03:11 0.0 0.0 0.0 99.9 0.0 1 172 103 4.96
10:03:21 0.0 0.0 0.0 99.9 0.0 1 106 68 4.91
10:03:31 0.0 0.0 0.0 100.0 0.0 1 104 70 4.87
10:03:41 0.0 0.0 0.0 100.0 0.0 1 106 68 4.87
10:03:51 0.0 0.0 0.0 100.0 0.0 1 103 69 4.87
10:04:01 0.0 0.0 0.0 100.0 0.0 1 101 64 4.85
10:04:11 0.0 0.0 0.0 100.0 0.0 1 100 67 4.85
^C-------- ----- ----- ----- ----- ----- ---- ------ ------ ------
Average 0.0 0.0 0.0 100.0 0.0 1.0 114.1 98.6 6.96
StdDev 0.0 0.0 0.0 0.0 0.0 0.0 22.7 29.7 2.25
-------- ----- ----- ----- ----- ----- ---- ------ ------ ------
Minimum 0.0 0.0 0.0 99.9 0.0 1.0 100.3 63.9 4.85
Maximum 0.0 0.0 0.1 100.0 0.0 1.0 172.0 140.4 9.44
-------- ----- ----- ----- ----- ----- ---- ------ ------ ------
Summary:
6.96 Watts on Average with Standard Deviation 2.25
129:~ $ uptime
10:07:14 up 1 day, 18:58, 5 users, load average: 0.20, 0.13, 0.08
130:~ $
I think your nvidia card is not turned off. I get about 20-22W when mine is still on.
That said, I have some crashes sometimes because nouveau is confused.
I didn't filled a bug report because this is not my primary laptop anymore.
Edit: Sorry, just re-read your post and you mention that you did turn off the card. Suggest to use powertop to identify what process is using power? I know powertop is not super accurate in that respect, but that would be a start.
edit#2: This can also be handy:
130:~ $ uname -a
Linux poliahu 3.15.8-1-ARCH #1 SMP PREEMPT Fri Aug 1 08:51:42 CEST 2014 x86_64 GNU/Linux
131:~ $ cat /proc/cmdline
vmlinuz-linux.efi root=/dev/sda4 initrd=EFI\arch\initramfs-linux.img
132:~ $
Can someone here share his/her actual power usage? I just installed Linux again on the Mac (debian, this time, I had Gentoo and Arch before, but I use this laptop for work and sometime, it just has to work). I keep earing this laptop should be arround 12 in Intel GPU, but I have twice that
<code>powerstat -d 0
Running for 480 seconds (48 samples at 10 second intervals).
ACPI battery power measurements will start in 0 seconds time
Time User Nice Sys Idle IO Run Ctxt/s IRQ/s Fork Exec Exit Watts
15:45:43 8.6 0.0 0.9 90.5 0.0 3 3238 633 0 0 0 24.41
15:45:53 8.3 0.0 0.8 90.9 0.0 1 2725 573 0 0 0 25.91
15:46:03 8.1 0.0 0.7 91.2 0.0 1 2779 548 1 0 6 25.06
15:46:13 8.4 0.0 0.8 90.8 0.0 4 2829 591 0 0 0 25.49
15:46:23 8.1 0.0 0.8 91.1 0.0 2 2723 550 0 0 0 24.09
15:46:33 8.4 0.0 0.8 90.7 0.0 2 2783 654 0 0 0 25.25
15:46:43 8.2 0.0 0.8 90.9 0.0 1 2796 521 0 0 0 24.22
15:46:53 8.4 0.0 0.8 90.8 0.0 1 2769 537 0 0 2 24.25
15:47:03 8.6 0.0 0.9 90.5 0.0 1 3193 633 0 0 1 23.94
15:47:13 8.7 0.0 0.9 90.4 0.0 2 3078 637 0 0 1 26.09
15:47:23 7.8 0.0 0.6 91.6 0.0 3 2749 536 0 0 0 24.64
15:47:33 8.4 0.0 0.8 90.8 0.1 4 2971 673 2 0 0 25.26
15:47:44 8.2 0.0 0.8 91.0 0.0 2 2803 523 0 0 0 24.16
15:47:54 8.5 0.0 0.8 90.7 0.0 1 2788 620 0 0 1 24.14
15:48:04 8.2 0.0 0.8 91.0 0.0 2 2809 532 0 0 0 24.02
15:48:14 8.5 0.0 0.8 90.6 0.0 2 2845 689 0 0 0 24.56
15:48:24 8.2 0.0 0.8 91.0 0.0 2 2750 507 0 0 0 24.07
15:48:34 8.5 0.0 0.8 90.7 0.0 1 2793 637 0 0 1 24.34
15:48:44 8.1 0.0 0.8 91.1 0.0 1 2795 524 0 0 0 24.39
15:48:54 8.0 0.0 0.6 91.3 0.0 4 2762 676 0 0 0 25.53
15:49:04 7.8 0.0 0.6 91.6 0.0 2 2762 605 0 0 0 24.63
15:49:14 8.4 0.0 0.8 90.7 0.1 3 2808 644 0 0 0 24.65
15:49:24 8.2 0.0 0.8 91.0 0.0 2 2752 572 0 0 0 24.20
15:49:34 8.5 0.0 0.8 90.7 0.0 1 2783 590 0 0 0 24.91
15:49:44 8.4 0.0 0.8 90.8 0.0 2 2782 596 0 0 0 24.30
15:49:54 8.5 0.0 0.8 90.7 0.0 2 2815 662 0 0 0 24.74
15:50:04 8.1 0.0 0.7 91.2 0.0 2 2796 617 0 0 0 25.63
15:50:14 8.3 0.0 0.8 90.9 0.0 2 2825 613 0 0 0 24.04
15:50:24 8.4 0.0 0.8 90.8 0.0 2 2752 572 0 0 0 25.30
15:50:34 8.4 0.0 0.8 90.8 0.0 2 2804 627 0 0 0 23.90
15:50:44 8.4 0.0 0.8 90.7 0.0 1 2781 635 0 0 0 26.26
15:50:54 8.3 0.0 0.8 90.9 0.0 2 2789 622 0 0 0 24.42
</code>
My display brishness is at the lowest state, I use the ethernet adaptor instead of wifi and have nothing else connected. I also used the code from Arch wiki to turn off the dGPU and blacklisted nouveau. I ran PowerTop auto-tune but I it's still running hot and at 24watts. Any idea? PowerTop is still tuning itself, so I don't know where is the issue, but I would like to have some reference data on how it should actually consume power.
]]>However, I still cannot switch to the iGPU - the dGPU is always in use. I added the following lines to my menuentry, as suggested by the wiki:
outb 0x7c2 1
outb 0x7d4 0x28
outb 0x7c2 2
outb 0x7d4 0x10
outb 0x7c2 2
outb 0x7d4 0x40
When booting with these, I either get a black screen (25% chance) or output from the dGPU (75% chance.) According to the wiki, these lines should switch output to the iGPU instead.
My kernel boot parameters are: "noapic irqpoll". I have tried booting with none, one, or both of i915 and nouveau in my initramfs - no difference.
What am I doing wrong?
]]>Does anyone know how to apply the grub GPU switching trick to refind?
]]>#!/bin/bash
target=www.google.com
count=$( ping -c 1 $target | grep icmp* | wc -l )
if [ $count -eq 0 ]
then
sudo systemctl stop NetworkManager
sudo systemctl start NetworkManager
else
echo "Yes! Host is Alive!"
fi
I've been getting a few errors in my dmesg, the regualr inform_bss_frame errors and the invalid ROM contents are the ones that worry me. The relevant sections of the dmesg are below.
[ +0.084136] INFO @wl_cfg80211_attach : Registered CFG80211 phy
[ +0.001184] applesmc: key=493 fan=2 temp=44 index=43 acc=0 lux=2 kbd=1
[ +0.001253] lib80211_crypt: registered algorithm 'TKIP'
[ +0.000144] wlan0: Broadcom BCM4331 802.11 Hybrid Wireless Controller 6.30.223.141 (r415941)
[ +0.029604] i915 0000:00:02.0: irq 49 for MSI/MSI-X
[ +0.000014] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ +0.000003] [drm] Driver supports precise vblank timestamp query.
[ +0.000010] i915 0000:00:02.0: Invalid ROM contents
[ +0.000007] [drm] failed to find VBIOS tables
[ +0.000151] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=none
[ +0.023189] systemd-udevd[210]: renamed network interface wlan0 to wlp4s0
and
[ +1.999875] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[ +3.454905] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[ +1.931689] fuse init (API version 7.22)
[Jun 9 17:37] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[ +42.967942] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[Jun 9 17:38] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[Jun 9 17:40] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[Jun 9 17:41] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[Jun 9 17:43] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[Jun 9 17:45] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
[Jun 9 17:47] ERROR @wl_inform_single_bss : cfg80211_inform_bss_frame error
My questions are thus:
Has anyone else experienced this or similar issues?
If so, what did you do fix it?
If you haven't had similar problems, do you have any suggestions for how fix this?
]]>I bought a PNY Storedge SD card, planning to move my Linux installations there, but I am getting the dreaded "mmc0: Timeout waiting for hardware interrupt." error whenever I plug it in. This appears similar to https://bugzilla.kernel.org/show_bug.cgi?id=59311
I spent a few hours trying to find a workaround, without success. None of the commonly suggested workarounds appear to work (noapic, irqpoll or pcie_aspm=off).
Any ideas?
Edit: I should mention I've tried kernels 3.13 and 3.14 without success. Ubuntu 14.04 also fails.
Edit 2: I should also mention that the same SD card works on Mac OS X and Windows, so this is probably a driver issue, not a hardware issue.
]]>I turned off the nvidia card for the time being since I don't use an external monitor or projector or anything of that sort, so I'm just running the intel card. Backlight control didn't work for the nvidia card even when I switched to the open source driver. It works for the Intel card, though, even when both GPUs are on.
Found that the battery life is really good when the dGPU is off (6-7 hours), which is expected. It may be a deal-breaker if you need to use multiple monitors, though, as that requires the dGPU.
I documented the setup process here; if anyone has feedback on the process I outlined, it'd be much appreciated. The notes should be applicable to the 10,x models. I have both the 15" and 13" models. Was successful in replicating the process on the second model.
Also, anybody have trouble building broadcom-wl for 3.14.2 on the release of the latest kernel? I was having trouble earlier after running a full system update (which updates the kernel and gcc), but thanks to some comments on the AUR packages for the dkms version of that module I finally got it to build successfully. I put instructions and the relevant PKGBUILD and patch here. Hope that helps.
How have people found the performance of broadcom-wl-dkms compared to broadcom-wl? I got pretty unstable wifi from the dkms module; connection would drop off after awhile. Haven't found that to be the case on the non-dkms module, though.
]]>EDIT: Also, I just saw this thread that says that the new kernel has optimus support. Does this concern us? (I have never gotten nvidia working in the first place, and intel works better than nouveau for me so... not even sure if there is a point, but hey.) https://bbs.archlinux.org/viewtopic.php?id=172920
Apple didn't use Optimus for it's graphics switching so anything done for optimus likely won't work on MacBooks. When running windows in bootcamp the optimus drivers don't work and there is no way to get graphics switching working, you're just stuck using the nvidia card all the time.
(see this and this from apple's support site)
Also, does anyone know if you can get multiple thunderbolt / display port monitors working using the intel driver or nouveau driver? Or can you get one external display and the laptop display to work with either driver?
]]>I have no idea if that is acceptable practice or not. (I suppose you would have to recompile it everytime you update something it depends on, and compile everything that depends on it whenever you want to upgrade them?) I only do this for ibus, because I need functionality that was removed from newer versions, and it's not too much of a pain for me to compile everything that depends on it because there aren't that many such things, but I can imagine this being annoying for other packages. (And also if you ever plan on going back to the current version, then you'd have to remember which packages you need to resync.) Now if only Arch had a portage like system that would do all this automatically...
I also have no idea if this would work for binary packages like nvidia.
@abruptadieu:
I haven't noticed anything in particular with the wireless speeds. But seriously, my wireless card has its good weeks and bad weeks. I'm not even sure if it's at all related to updates or not. I've just learnt to deal with it by plugging in my ethernet adaptor and regretting buying a macbook. (I should get one of those handy USB wireless plugs someday, anyone have any good recommendations?)
Also, did anyone have serious screen artifact/tarring problems since the latest mesa update? I filed a bug report here: https://bugs.archlinux.org/task/39352
No idea how to fix this, so I've just downgraded (via ABS) for now. I only downgraded the 64bit package because I couldn't compile the multilib one for some reason. The problems have gone away anyways. (I rarely use skype or acroread, the only programs that need 32bit mesa, but even when I ran them as a test there were no problems.)
EDIT: Also, I just saw this thread that says that the new kernel has optimus support. Does this concern us? (I have never gotten nvidia working in the first place, and intel works better than nouveau for me so... not even sure if there is a point, but hey.) https://bbs.archlinux.org/viewtopic.php?id=172920
]]>