Date: Fri, 13 Feb 2015 02:15:49 +1100 (EST) From: Ian Smith <smithi@nimnet.asn.au> To: george ember <sk8harddiefast@gmail.com> Cc: freebsd-acpi@freebsd.org Subject: Re: Laptop Battery drains insanely Fast! Message-ID: <20150213014814.F38620@sola.nimnet.asn.au> In-Reply-To: <CAJ7d6nempJR==-2_UdJYFTU1Q1DFz-%2Bh3m4NvRhwcPKLEj6h1Q@mail.gmail.com> References: <CAJ7d6nfh7DrUbFXoEV%2BzRObkEQn0dhuj8EQ8CfJtoKEfrZH=wg@mail.gmail.com> <20150212192344.P38620@sola.nimnet.asn.au> <CAJ7d6nempJR==-2_UdJYFTU1Q1DFz-%2Bh3m4NvRhwcPKLEj6h1Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Feb 2015 16:18:33 +0200, george ember wrote: > Ok. I made the changes. That line quoted, but the rest didn't. gmail can be weird, but so can pine .. Oh well I'll try delineating your content clearly .. ======= I changed my */etc/rc.conf* from performance_cx_lowest="CMAX" performance_cx_lowest="CMAX" to performance_cx_lowest="Cmax" performance_cx_lowest="Cmax" and I rebooted laptop. My *$ tail -f /var/log/messages* Feb 13 15:28:47 FreeBSD kernel: WARNING: attempt to domain_add(bluetooth) after domainfinalize() Feb 13 15:28:47 FreeBSD kernel: WARNING: attempt to domain_add(netgraph) after domainfinalize() Feb 13 15:28:48 FreeBSD ntpd[609]: ntpd 4.2.4p5-a (1) Feb 13 15:28:55 FreeBSD ntpd[610]: time correction of -86382 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time. ======= Yes you're a day ahead of yourself :) ======= Feb 13 15:35:08 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x01' Feb 13 15:35:08 FreeBSD power_profile: changed to 'performance' Feb 13 15:35:12 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x00' Feb 13 15:35:12 FreeBSD power_profile: changed to 'economy' Feb 13 15:35:16 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x01' Feb 13 15:35:16 FreeBSD power_profile: changed to 'performance' Feb 13 15:38:06 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x00' Feb 13 15:38:06 FreeBSD power_profile: changed to 'economy' Feb 13 15:38:09 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x01' Feb 13 15:38:09 FreeBSD power_profile: changed to 'performance' ^C Returns from performance to economy profile when I plug / unplug the charger I restart powerd service to keep the latest values. My *$ sysctl -a | egrep 'cx|freq_'* now changed hw.acpi.cpu.cx_lowest: C8 ======= That's the go .. ======= dev.cpu.0.freq_levels: 2201/35000 2200/35000 2100/32872 2000/30785 1900/29079 1800/27071 1700/25435 1600/23510 1500/21943 1400/20089 1300/18589 1200/16810 dev.cpu.0.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.0.cx_lowest: C8 dev.cpu.0.cx_usage: 0.16% 0.11% 99.72% last 11934us dev.cpu.1.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.1.cx_lowest: C8 dev.cpu.1.cx_usage: 0.07% 0.07% 99.84% last 9180us dev.cpu.2.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.2.cx_lowest: C8 dev.cpu.2.cx_usage: 0.19% 0.12% 99.68% last 6813us dev.cpu.3.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.3.cx_lowest: C8 dev.cpu.3.cx_usage: 0.00% 0.00% 100.00% last 12137us dev.cpu.4.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.4.cx_lowest: C8 dev.cpu.4.cx_usage: 0.07% 0.02% 99.90% last 14us dev.cpu.5.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.5.cx_lowest: C8 dev.cpu.5.cx_usage: 0.36% 0.23% 99.39% last 13169us dev.cpu.6.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.6.cx_lowest: C8 dev.cpu.6.cx_usage: 0.21% 0.12% 99.65% last 10611us dev.cpu.7.cx_supported: C1/1/1 C2/2/59 C3/3/87 dev.cpu.7.cx_lowest: C8 dev.cpu.7.cx_usage: 0.08% 0.04% 99.87% last 12465us ======= Excellent. ======= dev.est.0.freq_settings: 2201/35000 2200/35000 2100/32872 2000/30785 1900/29079 1800/27071 1700/25435 1600/23510 1500/21943 1400/20089 1300/18589 1200/16810 [..] My *acpiconf -i0* Design capacity: 45820 mWh Last full capacity: 42170 mWh Technology: secondary (rechargeable) Design voltage: 14400 mV Capacity (warn): 4210 mWh Capacity (low): 1263 mWh Low/warn granularity: 264 mWh Warn/full granularity: 3780 mWh Model number: PABAS0241231 Serial number: 41167 Type: Li-Ion OEM info: LENOVO State: discharging Remaining capacity: 53% Remaining time: 2:19 Present rate: 9760 mW Present voltage: 14362 mV ======= Right, so you should get ~4 hours from a full charge (at idle, anyway) ======= My* $ sudo sysctl hw.acpi* hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: NONE hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 1 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_lowest: C8 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 45.0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.thermal_flags: 1 hw.acpi.thermal.tz0._PSV: 0.0C hw.acpi.thermal.tz0._HOT: 127.0C hw.acpi.thermal.tz0._CRT: 127.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: 0 hw.acpi.thermal.tz0._TC2: 0 hw.acpi.thermal.tz0._TSP: 0 hw.acpi.battery.life: 49 hw.acpi.battery.time: 125 hw.acpi.battery.state: 1 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.acline: ======= Mildly surprising only one thermal zone, and that with no passive cooling potential, but I suppose it relies on the fan. ======= Now for the script, I have a little problem The script now: #!/bin/sh t=" " # a tab echo -n "`date` " sysctl dev.cpu.0.freq echo "`sysctl -n dev.cpu.2.cx_usage` $t `sysctl -n vm.loadavg`" echo "`sysctl -n dev.cpu.7.cx_usage` $t { `sysctl -n kern.eventtimer.timer` }" sysctl dev.acpi_ibm | egrep 'fan_|thermal' sysctl hw.acpi.thermal.tz0.temperature acpiconf -i0 | egrep 'State|Remain|Present|Volt' And *sudo kldload acpi_ibm* Password: kldload: can't load acpi_ibm: module already loaded or in kernel but $ ./stat Fri Feb 13 16:11:11 EET 2015 dev.cpu.0.freq: 1200 0.13% 0.11% 99.75% last 60305us { 0.12 0.10 0.08 } 0.06% 0.06% 99.87% last 2029us { LAPIC } *sysctl: unknown oid 'dev.acpi_ibm': No such file or directory* hw.acpi.thermal.tz0.temperature: 45.0C State: discharging Remaining capacity: 46% Remaining time: 1:58 Present rate: 9940 mW Present voltage: 14128 mV ======= Again, looking good for ~4 hours at idle. If you get the video stuff sorted out - I know next to nothing about that - might save some more. I've no idea what's wrong with acpi_ibm here. I suppose that # kldstat -v | grep ibm produces no output? Maybe it doesn't work with this model? Anyone? ======= ˙˙PS: Please do not get angry with me. I am from Greece. I don't speak good English. I learned alone through FreeBSD forum! ======= Wouldn't dream of it. You're doing fine. Not top-posting - M$ outlock style - would be a nice touch though :) cheers, Ian ======= 2015-02-12 11:39 GMT+02:00 Ian Smith <smithi@nimnet.asn.au>: [..] From owner-freebsd-acpi@FreeBSD.ORG Thu Feb 12 15:36:45 2015 Return-Path: <owner-freebsd-acpi@FreeBSD.ORG> Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CBEE5C66 for <freebsd-acpi@freebsd.org>; Thu, 12 Feb 2015 15:36:45 +0000 (UTC) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3485B166 for <freebsd-acpi@freebsd.org>; Thu, 12 Feb 2015 15:36:44 +0000 (UTC) Received: by labms9 with SMTP id ms9so4933721lab.10 for <freebsd-acpi@freebsd.org>; Thu, 12 Feb 2015 07:36:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; bh=aGaFv/FcwKlfTIRgEk7TEyxHCq3w/cEmKZBQoRtx6WI=; b=eEYTUMgk5q79o0CTq+y5ydCtfJTB5XWo/7MzA7eQ/vW/FvVgF25fSCNITvS1jHOEjG x4JZypFjW4XDvwdUi7JERnEPAC1qtgAJ44GN+1SRGW+Bt+dXyfh1ZcIGQRmf/YYytH1+ Rz7n9aB0DFEBw+Yfpjex0uV0WFRDD/NCfMVD0vPNo8f0Nx0T0gFtaiZ60ptb9Yg/hMAw zZX3jn7L9TB+FFniSOVcHmye1HQmhjyLfvgly2RYLlXYZelhSB/nq2hG0DguGY2TaYtV bFDq4UDjKeVFlV40GZEnouYs9GsiOswKP5HlZ7gdooCqAMx2vgzesdGLfCULaLlbCCrI Cd3Q== X-Received: by 10.152.8.193 with SMTP id t1mr3796497laa.63.1423755402004; Thu, 12 Feb 2015 07:36:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.156.204 with HTTP; Thu, 12 Feb 2015 07:36:00 -0800 (PST) In-Reply-To: <20150213014814.F38620@sola.nimnet.asn.au> References: <CAJ7d6nfh7DrUbFXoEV+zRObkEQn0dhuj8EQ8CfJtoKEfrZH=wg@mail.gmail.com> <20150212192344.P38620@sola.nimnet.asn.au> <CAJ7d6nempJR==-2_UdJYFTU1Q1DFz-+h3m4NvRhwcPKLEj6h1Q@mail.gmail.com> <20150213014814.F38620@sola.nimnet.asn.au> From: george ember <sk8harddiefast@gmail.com> X-Goomoji-Body: true Date: Thu, 12 Feb 2015 17:36:00 +0200 Message-ID: <CAJ7d6nc302Ovc82R_ewwYY=0mMUpid2R7VchF2YTs_LxH0PhDA@mail.gmail.com> Subject: Re: Laptop Battery drains insanely Fast! Cc: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: ACPI and power management development <freebsd-acpi.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-acpi>, <mailto:freebsd-acpi-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-acpi/> List-Post: <mailto:freebsd-acpi@freebsd.org> List-Help: <mailto:freebsd-acpi-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-acpi>, <mailto:freebsd-acpi-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 12 Feb 2015 15:36:45 -0000 Ok. I will try to write them more clear [?] My $ *sudo kldstat -v | grep ibm* 2 1 0xffffffff81956000 7808 acpi_ibm.ko (/boot/kernel/acpi_ibm.ko) 1 acpi/acpi_ibm PS: My battery still dropping too fast. The last five minutes dropped from 37% to 33% and is just open doing nothing! ---------------------------------------------------------------------------= -------------------------------------------------------------------------- 2015-02-12 17:15 GMT+02:00 Ian Smith <smithi@nimnet.asn.au>: > On Thu, 12 Feb 2015 16:18:33 +0200, george ember wrote: > > Ok. I made the changes. > > That line quoted, but the rest didn't. gmail can be weird, but so can > pine .. Oh well I'll try delineating your content clearly .. > > =3D=3D=3D=3D=3D=3D=3D > I changed my */etc/rc.conf* from > > performance_cx_lowest=3D"CMAX" > performance_cx_lowest=3D"CMAX" > > to > > performance_cx_lowest=3D"Cmax" > performance_cx_lowest=3D"Cmax" > > and I rebooted laptop. > > My > *$ tail -f /var/log/messages* > Feb 13 15:28:47 FreeBSD kernel: WARNING: attempt to domain_add(bluetooth) > after domainfinalize() > Feb 13 15:28:47 FreeBSD kernel: WARNING: attempt to domain_add(netgraph) > after domainfinalize() > Feb 13 15:28:48 FreeBSD ntpd[609]: ntpd 4.2.4p5-a (1) > Feb 13 15:28:55 FreeBSD ntpd[610]: time correction of -86382 seconds > exceeds sanity limit (1000); set clock manually to the correct UTC time. > =3D=3D=3D=3D=3D=3D=3D > > Yes you're a day ahead of yourself :) > > =3D=3D=3D=3D=3D=3D=3D > Feb 13 15:35:08 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x01' > Feb 13 15:35:08 FreeBSD power_profile: changed to 'performance' > Feb 13 15:35:12 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x00' > Feb 13 15:35:12 FreeBSD power_profile: changed to 'economy' > Feb 13 15:35:16 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x01' > Feb 13 15:35:16 FreeBSD power_profile: changed to 'performance' > Feb 13 15:38:06 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x00' > Feb 13 15:38:06 FreeBSD power_profile: changed to 'economy' > Feb 13 15:38:09 FreeBSD devd: Executing '/etc/rc.d/power_profile 0x01' > Feb 13 15:38:09 FreeBSD power_profile: changed to 'performance' > ^C > > Returns from performance to economy profile when I plug / unplug the > charger > > I restart powerd service to keep the latest values. > > My *$ sysctl -a | egrep 'cx|freq_'* now changed > hw.acpi.cpu.cx_lowest: C8 > =3D=3D=3D=3D=3D=3D=3D > > That's the go .. > > =3D=3D=3D=3D=3D=3D=3D > dev.cpu.0.freq_levels: 2201/35000 2200/35000 2100/32872 2000/30785 > 1900/29079 1800/27071 1700/25435 1600/23510 1500/21943 1400/20089 > 1300/18589 1200/16810 > dev.cpu.0.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.0.cx_lowest: C8 > dev.cpu.0.cx_usage: 0.16% 0.11% 99.72% last 11934us > dev.cpu.1.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.1.cx_lowest: C8 > dev.cpu.1.cx_usage: 0.07% 0.07% 99.84% last 9180us > dev.cpu.2.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.2.cx_lowest: C8 > dev.cpu.2.cx_usage: 0.19% 0.12% 99.68% last 6813us > dev.cpu.3.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.3.cx_lowest: C8 > dev.cpu.3.cx_usage: 0.00% 0.00% 100.00% last 12137us > dev.cpu.4.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.4.cx_lowest: C8 > dev.cpu.4.cx_usage: 0.07% 0.02% 99.90% last 14us > dev.cpu.5.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.5.cx_lowest: C8 > dev.cpu.5.cx_usage: 0.36% 0.23% 99.39% last 13169us > dev.cpu.6.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.6.cx_lowest: C8 > dev.cpu.6.cx_usage: 0.21% 0.12% 99.65% last 10611us > dev.cpu.7.cx_supported: C1/1/1 C2/2/59 C3/3/87 > dev.cpu.7.cx_lowest: C8 > dev.cpu.7.cx_usage: 0.08% 0.04% 99.87% last 12465us > =3D=3D=3D=3D=3D=3D=3D > > Excellent. > > =3D=3D=3D=3D=3D=3D=3D > dev.est.0.freq_settings: 2201/35000 2200/35000 2100/32872 2000/30785 > 1900/29079 1800/27071 1700/25435 1600/23510 1500/21943 1400/20089 > 1300/18589 1200/16810 > [..] > > My *acpiconf -i0* > Design capacity: 45820 mWh > Last full capacity: 42170 mWh > Technology: secondary (rechargeable) > Design voltage: 14400 mV > Capacity (warn): 4210 mWh > Capacity (low): 1263 mWh > Low/warn granularity: 264 mWh > Warn/full granularity: 3780 mWh > Model number: PABAS0241231 > Serial number: 41167 > Type: Li-Ion > OEM info: LENOVO > State: discharging > Remaining capacity: 53% > Remaining time: 2:19 > Present rate: 9760 mW > Present voltage: 14362 mV > =3D=3D=3D=3D=3D=3D=3D > > Right, so you should get ~4 hours from a full charge (at idle, anyway) > > =3D=3D=3D=3D=3D=3D=3D > My* $ sudo sysctl hw.acpi* > hw.acpi.supported_sleep_state: S3 S4 S5 > hw.acpi.power_button_state: S5 > hw.acpi.sleep_button_state: S3 > hw.acpi.lid_switch_state: NONE > hw.acpi.standby_state: NONE > hw.acpi.suspend_state: S3 > hw.acpi.sleep_delay: 1 > hw.acpi.s4bios: 0 > hw.acpi.verbose: 0 > hw.acpi.disable_on_reboot: 0 > hw.acpi.handle_reboot: 1 > hw.acpi.reset_video: 0 > hw.acpi.cpu.cx_lowest: C8 > hw.acpi.thermal.min_runtime: 0 > hw.acpi.thermal.polling_rate: 10 > hw.acpi.thermal.user_override: 0 > hw.acpi.thermal.tz0.temperature: 45.0C > hw.acpi.thermal.tz0.active: -1 > hw.acpi.thermal.tz0.passive_cooling: 0 > hw.acpi.thermal.tz0.thermal_flags: 1 > hw.acpi.thermal.tz0._PSV: 0.0C > hw.acpi.thermal.tz0._HOT: 127.0C > hw.acpi.thermal.tz0._CRT: 127.0C > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 > hw.acpi.thermal.tz0._TC1: 0 > hw.acpi.thermal.tz0._TC2: 0 > hw.acpi.thermal.tz0._TSP: 0 > hw.acpi.battery.life: 49 > hw.acpi.battery.time: 125 > hw.acpi.battery.state: 1 > hw.acpi.battery.units: 1 > hw.acpi.battery.info_expire: 5 > hw.acpi.acline: > =3D=3D=3D=3D=3D=3D=3D > > Mildly surprising only one thermal zone, and that with no passive > cooling potential, but I suppose it relies on the fan. > > =3D=3D=3D=3D=3D=3D=3D > Now for the script, I have a little problem > > The script now: > > #!/bin/sh > t=3D" " # a tab > echo -n "`date` " > sysctl dev.cpu.0.freq > echo "`sysctl -n dev.cpu.2.cx_usage` $t `sysctl -n vm.loadavg`" > echo "`sysctl -n dev.cpu.7.cx_usage` $t { `sysctl -n > kern.eventtimer.timer` }" > sysctl dev.acpi_ibm | egrep 'fan_|thermal' > sysctl hw.acpi.thermal.tz0.temperature > acpiconf -i0 | egrep 'State|Remain|Present|Volt' > > And > > *sudo kldload acpi_ibm* > Password: > kldload: can't load acpi_ibm: module already loaded or in kernel > > but > > $ ./stat > Fri Feb 13 16:11:11 EET 2015 dev.cpu.0.freq: 1200 > 0.13% 0.11% 99.75% last 60305us { 0.12 0.10 0.08 } > 0.06% 0.06% 99.87% last 2029us { LAPIC } > *sysctl: unknown oid 'dev.acpi_ibm': No such file or directory* > hw.acpi.thermal.tz0.temperature: 45.0C > State: discharging > Remaining capacity: 46% > Remaining time: 1:58 > Present rate: 9940 mW > Present voltage: 14128 mV > =3D=3D=3D=3D=3D=3D=3D > > Again, looking good for ~4 hours at idle. If you get the video stuff > sorted out - I know next to nothing about that - might save some more. > > I've no idea what's wrong with acpi_ibm here. I suppose that > # kldstat -v | grep ibm > produces no output? Maybe it doesn't work with this model? Anyone? > > > =3D=3D=3D=3D=3D=3D=3D > =D1=8F=D1=8FPS: Please do not get angry with me. I am from Greece. I don'= t speak good > English. I learned alone through FreeBSD forum! > =3D=3D=3D=3D=3D=3D=3D > > Wouldn't dream of it. You're doing fine. > > Not top-posting - M$ outlock style - would be a nice touch though :) > > cheers, Ian > > =3D=3D=3D=3D=3D=3D=3D > 2015-02-12 11:39 GMT+02:00 Ian Smith <smithi@nimnet.asn.au>: > [..]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150213014814.F38620>