You are not logged in.
Hello Archers,
I hope you had a nice Sunday mmhmmh.... I am posting because I need your help.
I installed Archlinux on a Macbook Pro 2007 "Santa Rosa" (the installation was rude, but it isn't the problem here). My battery is a little old, but I tried to increase autonomy so I did a lot of things, installations, settings (LMT, powertop, CPU governor, undervolting ...). And so, I checked in powertop my actual consommation : with wifi ON (bluetooth is off), backlight 50% and no keyboard light, Firefox with 4 frames (no flash) and a terminal, my discharge rate is 22,7W (all times it is approximatively the same value) !
I know, it is an old Macbook Pro (I am not waiting a 5W rate discharge ...), but it seems to be really big.
Some commands :
The battery reports a discharge rate of 22.7 W (from powertop)
The estimated remaining time is 1 hours, 33 minutes
Summary: 5284,3 wakeups/second, 0,0 GPU ops/seconds, 0,0 VFS ops/sec and 103,3%
Power est. Usage Events/s Category Description
48.4 W 292,5 ms/s 3959,8 Interrupt [9] acpi
15.0 W 38,9 pkts/s Device Network interface: wls4 (
6.86 W 9,2 ms/s 562,5 Timer tick_sched_timer
2.71 W 158,0 ms/s 219,9 kWork acpi_os_execute_deferred
2.70 W 28,5 ms/s 220,9 kWork acpi_ec_event_handler
2.66 W 350,1 ms/s 214,1 kWork acpi_ec_event_process
...
uname -a
Linux archlinux-MBP-laptop 4.5.5-1-ck #1 SMP PREEMPT Thu May 19 02:55:58 EDT 2016 x86_64 GNU/Linux
lspci -v
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
Subsystem: Apple Inc. Device 00a0
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
Kernel modules: intel_agp
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 24
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00005000-00005fff
Memory behind bridge: d0000000-d30fffff
Prefetchable memory behind bridge: 00000000c0000000-00000000cfffffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03) (prog-if 00 [UHCI])
Flags: medium devsel, IRQ 20
I/O ports at 60c0 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) (prog-if 00 [UHCI])
Subsystem: Apple Inc. Device 00a0
Flags: medium devsel, IRQ 16
I/O ports at 60a0 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI])
Subsystem: Apple Inc. Device 00a0
Flags: medium devsel, IRQ 21
Memory at db504c00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
Subsystem: Apple Inc. Device 00a0
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at db500000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 25
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: db400000-db4fffff
Prefetchable memory behind bridge: 00000000db600000-00000000db7fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 26
Bus: primary=00, secondary=03, subordinate=0a, sec-latency=0
I/O behind bridge: 00004000-00004fff
Memory behind bridge: d7400000-db3fffff
Prefetchable memory behind bridge: 00000000d3100000-00000000d70fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 27
Bus: primary=00, secondary=0b, subordinate=0b, sec-latency=0
I/O behind bridge: 00007000-00007fff
Memory behind bridge: d7300000-d73fffff
Prefetchable memory behind bridge: 00000000db800000-00000000db9fffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 28
Bus: primary=00, secondary=0c, subordinate=0c, sec-latency=0
I/O behind bridge: 00003000-00003fff
Memory behind bridge: d7200000-d72fffff
Prefetchable memory behind bridge: 00000000dba00000-00000000dbbfffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
Subsystem: Apple Inc. Device 00a0
Flags: medium devsel, IRQ 16
I/O ports at 6080 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1d.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
Subsystem: Apple Inc. Device 00a0
Flags: medium devsel, IRQ 18
I/O ports at 6060 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1d.2 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
Subsystem: Apple Inc. Device 00a0
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 6040 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:1d.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
Subsystem: Apple Inc. Device 00a0
Flags: medium devsel, IRQ 20
Memory at db504800 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=0d, subordinate=0d, sec-latency=32
Memory behind bridge: d7100000-d71fffff
Capabilities: <access denied>
00:1f.0 ISA bridge: Intel Corporation 82801HM (ICH8M) LPC Interface Controller (rev 03)
Subsystem: Apple Inc. Device 00a0
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.1 IDE interface: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP])
Subsystem: Apple Inc. Device 00a0
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 01f0 [size=8]
I/O ports at 03f4
I/O ports at 0170 [size=8]
I/O ports at 0374
I/O ports at 60e0 [size=16]
Kernel driver in use: ata_piix
Kernel modules: ata_piix, pata_acpi, ata_generic
00:1f.2 IDE interface: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [IDE mode] (rev 03) (prog-if 8f [Master SecP SecO PriP PriO])
Subsystem: Apple Inc. Device 00a0
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 18
I/O ports at 60f8 [size=8]
I/O ports at 6114 [size=4]
I/O ports at 60f0 [size=8]
I/O ports at 6110 [size=4]
I/O ports at 6020 [size=16]
I/O ports at 1000 [size=16]
Capabilities: <access denied>
Kernel driver in use: ata_piix
Kernel modules: ata_piix, pata_acpi, ata_generic
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
Subsystem: Apple Inc. Device 00a0
Flags: medium devsel, IRQ 20
Memory at db505000 (32-bit, non-prefetchable) [size=256]
I/O ports at efa0 [size=32]
Kernel modules: i2c_i801
01:00.0 VGA compatible controller: NVIDIA Corporation G84M [GeForce 8600M GT] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Apple Inc. Device 00a0
Physical Slot: 1
Flags: bus master, fast devsel, latency 0, IRQ 31
Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at 5000 [size=128]
[virtual] Expansion ROM at d3000000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia
0b:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)
Subsystem: Apple Inc. AirPort Extreme
Physical Slot: 4
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d7300000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath9k
Kernel modules: ath9k
0c:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8058 PCI-E Gigabit Ethernet Controller (rev 13)
Subsystem: Marvell Technology Group Ltd. Imac 8,1 Wired Ethernet Adapter
Physical Slot: 5
Flags: bus master, fast devsel, latency 0, IRQ 30
Memory at d7200000 (64-bit, non-prefetchable) [size=16K]
I/O ports at 3000 [size=256]
Expansion ROM at d7220000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: sky2
Kernel modules: sky2
0d:03.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b Link Layer Controller (rev 02) (prog-if 10 [OHCI])
Flags: medium devsel, IRQ 19
Memory at d7104000 (32-bit, non-prefetchable) [size=2K]
Memory at d7100000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel modules: firewire_ohci
iwconfig
lo no wireless extensions.
ens5 no wireless extensions.
wls4 IEEE 802.11abgn ESSID:"SmartCampus"
Mode:Managed Frequency:5.56 GHz Access Point: E0:1C:41:AC:32:28
Bit Rate=121.5 Mb/s Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=49/70 Signal level=-61 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:9 Invalid misc:0 Missed beacon:0
I think my problem is from the acpi consmmation and the wifi interface (very big rates, not everytimes also big, but always importants).
I am waiting your suggestions, tests or commands to help me to understand the powertop's return (and if I can upgrde my battery life, it could be great ! ).
Best regards.
Last edited by MrKebi (2016-05-22 18:42:38)
Xiaomi Notebook Pro i5-8250u 8Go 256 + 240 Go with optimus-manager : Archlinux/Plasma
Desktop : i7-4770k 12Go RX 580 SSD 120 Go + HDDs 2To : Archlinux/Plasma
Offline
A quick search suggests https://bugs.archlinux.org/task/28859. You should open a bug report upstream, and possibly try with a different driver.
One thread suggested that the issue was caused by the wireless driver. You could test if the issue is related to the wireless driver by blacklisting it, rebooting, and seeing whether the problem goes away.
I'd be expecting, based on my machines, around 10-15W discharge rate on a fairly minimal profile.
Offline
Thank you for your suggestion. I explored a little the way that you purpose, and I tried to blacklist the module of my wifi card.
I created /etc/modprobe.d/ath9k.conf with :
install ath9k /bin/false
The blacklisting was fine, but my problem and my discharging rate was quite close, just I have less wakeups :
The battery reports a discharge rate of 19.6 W
The estimated remaining time is 1 hours, 43 minutes
Summary: 220,3 wakeups/second, 0,0 GPU ops/seconds, 0,0 VFS ops/sec and 132,2%
Power est. Usage Events/s Category Description
2.95 W 6,0 ms/s 89,6 Timer tick_sched_timer
1.12 W 812,2 ms/s 31,1 kWork acpi_ec_event_processor
1.09 W 406,8 ms/s 31,7 kWork acpi_os_execute_deferred
1.08 W 6,8 ms/s 32,7 Interrupt [9] acpi
1.06 W 72,7 ms/s 32,0 kWork acpi_ec_event_handler
...
I will check tomorrow if I can find an other wifi card in my things, maybe try it to see if I have a better result.
Last edited by MrKebi (2016-05-22 21:39:20)
Xiaomi Notebook Pro i5-8250u 8Go 256 + 240 Go with optimus-manager : Archlinux/Plasma
Desktop : i7-4770k 12Go RX 580 SSD 120 Go + HDDs 2To : Archlinux/Plasma
Offline
The number of wakeups looks more like what I'd expect now. What other information do you have?
Maybe post a more complete powertop output - what do the other 'tabs' show?
What desktop environment are you using?
If you boot to just a command prompt, is the power usage any different?
Offline
Thanks for your answer
Ok I did some manipulations (changes of my kernel parameters and of my nvidia xorg) and I had better resultats now.
The battery reports a discharge rate of 14.3 W
The estimated remaining time is 2 hours, 54 minutes
Summary: 284,3 wakeups/second, 0,0 GPU ops/seconds, 0,0 VFS ops/sec and 9,2% CP
Power est. Usage Events/s Category Description
15.2 W 1,0 pkts/s Device Network interface: wls4 (
1.31 W 57,8 ms/s 91,5 Process firefox
718 mW 2,7 ms/s 50,3 Timer tick_sched_timer
415 mW 394,9 us/s 29,1 Process [rcu_preempt]
390 mW 487,2 us/s 27,3 Timer hrtimer_wakeup
287 mW 100,0% Device USB device: Apple Interna
165 mW 165,7 us/s 11,6 kWork ieee80211_iface_work
155 mW 1,4 ms/s 10,8 Interrupt [6] tasklet(softirq)
95.6 mW 1,2 ms/s 6,7 Process /usr/bin/pommed -f
92.8 mW 1,5 ms/s 6,5 Process xfwm4
69.2 mW 0,9 ms/s 4,8 Process pamac-tray
61.4 mW 1,1 ms/s 4,3 Process /usr/lib/xfce4/panel/wrap
56.3 mW 29,5 us/s 3,9 kWork console_callback
50.6 mW 347,6 us/s 3,5 Process /usr/bin/acpid --foregrou
Package | CPU 0
POLL 0,0% | POLL 0,0% 0,0 ms
C1 0,0% | C1 0,0% 0,0 ms
C2 2,9% | C2 2,9% 0,5 ms
C3 88,9% | C3 88,3% 4,2 ms
| CPU 1
| POLL 0,0% 0,0 ms
| C1 0,0% 0,0 ms
| C2 2,8% 0,6 ms
| C3 89,5% 4,0 ms
Package | CPU 0
2,21 GHz 0,0% | 2,21 GHz 0,0%
2,00 GHz 0,0% | 2,00 GHz 0,0%
1,80 GHz 0,0% | 1,80 GHz 0,0%
1,60 GHz 0,0% | 1,60 GHz 0,0%
1400 MHz 0,0% | 1400 MHz 0,0%
1200 MHz 0,0% | 1200 MHz 0,0%
800 MHz 98,3% | 800 MHz 96,7%
Idle 1,7% | Idle 3,3%
| CPU 1
| 2,21 GHz 0,0%
| 2,00 GHz 0,0%
| 1,80 GHz 0,0%
| 1,60 GHz 0,0%
| 1400 MHz 0,0%
| 1200 MHz 0,0%
| 800 MHz 40,5%
| Idle 59,5%
The battery reports a discharge rate of 15.1 W
System baseline power is estimated at 19.9 W
Power est. Usage Device name
15.0 W 100,0% Radio device: ath9k
4.93 W 8,6% CPU use
4.96 mW 1,8 pkts/s Network interface: wls4 (ath9k)
0 mW 100,0% USB device: Apple Internal Keyboard / Trackpad (Apple
0 mW 100,0% USB device: UHCI Host Controller
0 mW 20,0% Display backlight
0 mW 0,0% USB device: IR Receiver (Apple Computer, Inc.)
0 mW 0,0% USB device: Built-in iSight (Apple Inc.)
0 mW 0,0% USB device: usb-device-05ac-8205
0 mW 0,0% USB device: UHCI Host Controller
0 mW 0,0% USB device: UHCI Host Controller
0 mW 0,0% USB device: EHCI Host Controller
0 mW 0,0% USB device: EHCI Host Controller
0 mW 0,0% Audio codec hwC0D0: Realtek
0 mW 0,0% USB device: UHCI Host Controller
cat /etc/default/grub
GRUB_DEFAULT=saved
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Archlinux"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=c61840ff-01c3-4f89-851f-6267decc73e2 nmi_watchdog=0 ath9k.ps=1 acpi=force pcie_aspm=force"
GRUB_CMDLINE_LINUX=""
# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1440x900
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=1440x900
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/usr/share/grub/background.png"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
cat /etc/X11/xorg.conf.d/2*
Section "Device"
Identifier "Nvidia Card"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "true"
#Option "UseEDID" "false"
#Option "ConnectedMonitor" "DFP"
# ...
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2233; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
EndSection
The discharge rate have some variable values, between 14,9W and close to 20W. I used the same conditions of my first post.
I used these kernel parameters because I saw them on forums and tutorials, here it seems to be the better combinaison for my battery life. Additionnaly, I used a xorg.conf file for my nvidia card.
So, I am using xfce.
Xiaomi Notebook Pro i5-8250u 8Go 256 + 240 Go with optimus-manager : Archlinux/Plasma
Desktop : i7-4770k 12Go RX 580 SSD 120 Go + HDDs 2To : Archlinux/Plasma
Offline