From owner-freebsd-questions@FreeBSD.ORG Mon Aug 19 12:32:38 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id ECEBD520; Mon, 19 Aug 2013 12:32:37 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 491CB2B6F; Mon, 19 Aug 2013 12:32:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id r7JCWXK4034912; Mon, 19 Aug 2013 22:32:34 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 19 Aug 2013 22:32:33 +1000 (EST) From: Ian Smith To: vermaden Subject: Re: FreeBSD on ThinkPad W530 In-Reply-To: Message-ID: <20130819215132.G85171@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Adrian Chadd , FreeBSD Questions , freebsd-mobile@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2013 12:32:38 -0000 On Wed, 14 Aug 2013 15:40:58 +0200, vermaden wrote: > Hi and thanks for reply ;) > > > Yay another FreeBSD laptop user! > > I use FreeBSD for dekstop/workstation for I do not remember how long: > http://vermaden.deviantart.com/art/CorporateBSD-FreeBSD-at-Work-190680188 > > > Please do this: > > * join the freebsd-mobile list;* create PRs for each of your problems with -10 above!; > > Here are created PRs: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=181281 > stack trace after successfull 'umount /mnt' (SDHC card mounted as msdosfs) > > http://www.freebsd.org/cgi/query-pr.cgi?pr=181282 > 3h of work on battery on FreeBSD while 10h on Windows Hi; I'm only going to address this one, so chopping mercilessly .. > http://www.freebsd.org/cgi/query-pr.cgi?pr=181283 > acpi_ibm module is useless on ThinkPad W530 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=181285 > x11/xorg does not start if Nvidia Optimus is enabled on > > > * the power utilisation thing is going to be fun to track down - what kind of > > CPU is in there? Is it a recent Intel? I'm playing around with their tools at the > > moment; maybe we can look at the power the CPU is consuming and then > > add on the power from each of the other parts in your laptop until we > > figure out what's drawing said power Can't fault the comprensiveness of your PR 181282 :) I did notice: dev.cpu.0.cx_lowest: C1 As a starting point, try following mav@'s excellent Tuning Power guide: https://wiki.freebsd.org/TuningPowerConsumption I don't know what the i7 or your BIOS does about C-states, but using C2 and especially if you can get to C3 or equivalent could give a big win; with other tunings Alexander managed to double battery life (on a C2D) You said powerd was 'working' but without indication of effectiveness, such as what CPU speeds correspond to idle/light load/full load etc? You may want to try tuning its default modes/idle/busy settings, and measure real power used at different freqs. I suggest trying the advice there to disable p4tcc and acpi_throttle, reducing number of P-states considerably. Then 'service powerd stop', run powerd -v in a console and measure power consumption at various loads and CPU frequencies. If you have no wattmeter, acpiconf -i0 may serve as a guide (though you do have to wait a while for changes to be reflected); for such monitoring (albeit with working acpi_ibm) I use: smithi on t23% cat ~/bin/t23stat #!/bin/sh echo -n "`date` " sysctl dev.cpu.0.freq dev.cpu.0.cx_usage sysctl dev.acpi_ibm | egrep 'fan_|thermal' sysctl hw.acpi.thermal.tz0.temperature acpiconf -i0 | egrep 'State|Remain|Present|Volt' smithi on t23% t23stat Mon Aug 19 22:09:15 EST 2013 dev.cpu.0.freq: 733 dev.cpu.0.cx_usage: 0.05% 99.94% 0.00% last 529us dev.acpi_ibm.0.fan_speed: 2254 dev.acpi_ibm.0.fan_level: 1 dev.acpi_ibm.0.thermal: 47 46 42 -1 -1 -1 29 -1 hw.acpi.thermal.tz0.temperature: 47.0C State: discharging Remaining capacity: 95% Remaining time: 2:36 Present rate: 17313 mW Present voltage: 12236 mV Cheers, Ian