Date: Thu, 12 Feb 2015 17:55:56 +0200 From: george ember <sk8harddiefast@gmail.com> Cc: freebsd-acpi@freebsd.org Subject: Re: Laptop Battery drains insanely Fast! Message-ID: <CAJ7d6nesz8CD0pSDPw4Tre8wObSx1Ui4AKwW=%2BQi7U=5J9kOHw@mail.gmail.com> In-Reply-To: <CAJ7d6nc302Ovc82R_ewwYY=0mMUpid2R7VchF2YTs_LxH0PhDA@mail.gmail.com> References: <CAJ7d6nfh7DrUbFXoEV%2BzRObkEQn0dhuj8EQ8CfJtoKEfrZH=wg@mail.gmail.com> <20150212192344.P38620@sola.nimnet.asn.au> <CAJ7d6nempJR==-2_UdJYFTU1Q1DFz-%2Bh3m4NvRhwcPKLEj6h1Q@mail.gmail.com> <20150213014814.F38620@sola.nimnet.asn.au> <CAJ7d6nc302Ovc82R_ewwYY=0mMUpid2R7VchF2YTs_LxH0PhDA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Also I don't know if helps *$ sysctl hw.acpi.battery* hw.acpi.battery.life: 22 hw.acpi.battery.time: 53 hw.acpi.battery.state: 1 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 I guess that means 53 minutes already working / 22% power left on battery. Sounds bad :( ---------------------------------------------------------------------------= -------------------------------------------------------------------------- 2015-02-12 17:36 GMT+02:00 george ember <sk8harddiefast@gmail.com>: > 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 fro= m > 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?CAJ7d6nesz8CD0pSDPw4Tre8wObSx1Ui4AKwW=%2BQi7U=5J9kOHw>