Date: Fri, 6 Feb 2015 20:49:16 +1100 (EST) From: Ian Smith <smithi@nimnet.asn.au> To: Warner Losh <imp@bsdimp.com> Cc: PeerCorps Trust Fund <ipc@peercorpstrust.org>, Lars Engels <lars.engels@0x20.net>, freebsd-mobile@freebsd.org Subject: Re: freebsd-mobile Digest, Vol 539, Issue 2 Message-ID: <20150206201100.X38620@sola.nimnet.asn.au> In-Reply-To: <DAAEE4EF-9CE2-4925-BFF5-BEA1F68F927D@bsdimp.com> References: <mailman.105.1422964802.59463.freebsd-mobile@freebsd.org> <54D0CA65.10701@peercorpstrust.org> <20150203145011.GZ41565@e-new.0x20.net> <54D1C9FF.6030905@peercorpstrust.org> <20150204090848.GD41565@e-new.0x20.net> <20150204225220.K38620@sola.nimnet.asn.au> <DAAEE4EF-9CE2-4925-BFF5-BEA1F68F927D@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Feb 2015 08:34:37 -0700, Warner Losh wrote: > > On Feb 4, 2015, at 5:06 AM, Ian Smith <smithi@nimnet.asn.au> wrote: > > > > On Wed, 4 Feb 2015 10:08:48 +0100, Lars Engels wrote: > >> On Wed, Feb 04, 2015 at 09:27:59AM +0200, PeerCorps Trust Fund wrote: > >>> Hi Lars, > >>> > >>> Would you mind sharing what you are using for your powerd settings? > >> > >> Sure. I followed the power saving tips from > >> https://wiki.freebsd.org/TuningPowerConsumption > >> and additionally run powerd with > >> > >> powerd_flags="-a hiadaptive -b hiadaptive" > > > > Lars, are you running that with p4tcc and acpi_throttle both disabled? > > > > That is, what says `sysctl dev.cpu.0.freq_levels`? > > > > On my X200 it's '2401/35000 2400/35000 1600/15000 800/12000' and I found > > hiadaptive rather aggressive, where adaptive works fine for my use - but > > of course everybody's use is different :) > > > > powerd_flags="-a adp -b adp -i 70 -r 90" > > The X+1 number (in this case 2401) is the turbo-mode speed. If you use X, it disables > the Turbo mode which causes the CPU to run faster until it gets too hot. On my T400, I > found that if I limit powerd to X instead of X+1, I have fewer heat related issues when > I˙˙m doing things like building a kernel˙˙ That's very interesting. I trolled through (9.3-R) /sys/ looking for mentions of (-i) 'turbo' and after excluding all the ieee80211, ath and assorted other non-CPU stuff, found nothing relevant, except perhaps(?): /sys/dev/hwpmc/pmc_events.h:__PMC_EV_ALIAS("TURBO_MODE.CORE_0", UCP_EVENT_84H_01H) /sys/dev/hwpmc/pmc_events.h:__PMC_EV_ALIAS("TURBO_MODE.CORE_1", UCP_EVENT_84H_02H) /sys/dev/hwpmc/pmc_events.h:__PMC_EV_ALIAS("TURBO_MODE.CORE_2", UCP_EVENT_84H_04H) /sys/dev/hwpmc/pmc_events.h:__PMC_EV_ALIAS("TURBO_MODE.CORE_3", UCP_EVENT_84H_08H) (which are only listed under Haswell, this one being Core2 Duo) /sys/{i386,amd64}/include/specialreg.h:#define CPUTPM1_TURBO 0x00000002 (which are: * Important bits in the Thermal and Power Management flags * CPUID.6 EAX and ECX.) So where can I find out some more about this? I'd have thought cpufreq? Or maybe this is only in 10.x, or head? On my X200, running 2 x 'dd if=/dev/random of=/dev/null &' gets both cores busy enough, but - with ambient about 28C - I can't drive it over 79C (at 2401) after 15 min; way below hw.acpi.thermal.tz1._PSV: 91.5C last pid: 53384; load averages: 1.89, 1.76, 1.41 up 83+18:22:30 14:34:44 233 processes: 6 running, 205 sleeping, 22 waiting CPU 0: 1.7% user, 0.1% nice, 98.3% system, 0.0% interrupt, 0.0% idle CPU 1: 1.4% user, 0.0% nice, 98.1% system, 0.0% interrupt, 0.5% idle root@x200:~ # x200stat Fri Feb 6 14:34:58 EST 2015 dev.cpu.0.freq: 2401 0.03% 1.22% 98.74% last 194us { 1.77 1.74 1.41 } 0.36% 0.82% 98.80% last 2us { HPET } dev.acpi_ibm.0.fan_speed: 3762 dev.acpi_ibm.0.fan_level: 0 dev.acpi_ibm.0.thermal: 79 45 -1 69 34 -1 32 -1 hw.acpi.thermal.tz0.temperature: 79.0C hw.acpi.thermal.tz1.temperature: 76.0C So I suspect -M 2400 won't help here (but I'll test it anyway, to try determining how much faster 2401 does some fixed task like a long dd) cheers, Ian From owner-freebsd-mobile@FreeBSD.ORG Sat Feb 7 15:33:53 2015 Return-Path: <owner-freebsd-mobile@FreeBSD.ORG> Delivered-To: freebsd-mobile@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 4BA9BD4F for <freebsd-mobile@freebsd.org>; Sat, 7 Feb 2015 15:33:53 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D5D3D5EA for <freebsd-mobile@freebsd.org>; Sat, 7 Feb 2015 15:33:52 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id C06E16A6052; Sat, 7 Feb 2015 16:33:48 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id t17FXmT0099445; Sat, 7 Feb 2015 16:33:48 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id t17FXiwS097132; Sat, 7 Feb 2015 16:33:44 +0100 (CET) (envelope-from lars) Date: Sat, 7 Feb 2015 16:33:44 +0100 From: Lars Engels <lars.engels@0x20.net> To: Kevin Oberman <rkoberman@gmail.com> Subject: Re: freebsd-mobile Digest, Vol 539, Issue 2 Message-ID: <20150207153344.GC65009@e-new.0x20.net> References: <mailman.105.1422964802.59463.freebsd-mobile@freebsd.org> <54D0CA65.10701@peercorpstrust.org> <20150203145011.GZ41565@e-new.0x20.net> <54D1C9FF.6030905@peercorpstrust.org> <20150204090848.GD41565@e-new.0x20.net> <20150204225220.K38620@sola.nimnet.asn.au> <54D3F4BA.9050508@peercorpstrust.org> <CAN6yY1sZ36K5H4V7FjbMd-3DKepgrf4stceHKv+06zviktibtg@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s9fJI615cBHmzTOP" Content-Disposition: inline In-Reply-To: <CAN6yY1sZ36K5H4V7FjbMd-3DKepgrf4stceHKv+06zviktibtg@mail.gmail.com> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-mobile@freebsd.org" <freebsd-mobile@freebsd.org>, Ian Smith <smithi@nimnet.asn.au>, PeerCorps Trust Fund <ipc@peercorpstrust.org> X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Mobile computing with FreeBSD <freebsd-mobile.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-mobile>, <mailto:freebsd-mobile-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-mobile/> List-Post: <mailto:freebsd-mobile@freebsd.org> List-Help: <mailto:freebsd-mobile-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-mobile>, <mailto:freebsd-mobile-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 07 Feb 2015 15:33:53 -0000 --s9fJI615cBHmzTOP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 05, 2015 at 09:04:12PM -0800, Kevin Oberman wrote: > On Thu, Feb 5, 2015 at 2:54 PM, PeerCorps Trust Fund <ipc@peercorpstrust.= org > > wrote: >=20 > > Hi Lars, Ian, > > > > Might either of you (or anyone else) have an idea about how to turn the > > touchpad on the x230 completely OFF? I prefer the finger mouse and the > > touchpad just gets in the way. Much of what I've read in the manual and= on > > the web seems to be outdated and revolves around configuring xorg. Is i= t a > > matter of adding hw.psm.synaptics_support=3D"0" to /boot/loader.conf? > > > > On a related note, is there a way to set the following options at boot? > > > > # kldload acpi_ibm > > # kldload acpi_call > > # acpi_call -p '\VBRC' -i 7 > > > > M > > > > > Is disabling the TouchPad no longer accessible in the BIOS setup? It's be= en > on every X and T I have run into since IBM stopped using a proprietary > Windows tool to touch BIOS configuration instead of the normal F1 at boot > time. I found it there on my T520, one generation older than the X230, I > believe. I disabled the touchpad of my X230 in the BIOS. >=20 > If I recall correctly, "acpi_call -p '\VBRC' -i 7" sets the brightness. Y= ou > can load the modules by entering them in /boot/loader.conf, e.g. > "acpi_ibm_load=3D"YES"". I'd rather load this from rc.conf, as it is _much_ faster to load kernel modules after the kernel is loaded. Just add "acpi_ibm acpi_call" to kld_list=3D"" in rc.conf. If you don't have that variable set, you can also run: sysrc kld_list=3D"acpi_ibm acpi_call" >=20 > The acpi_call can be added to init, but is probably not essential any more > as brightness now works in head and the patch works fine on 10. You will > need to patch the system, but then the brightness buttons as well as the > hw.acpi.video.lcd0 values to set brightness on battery and AC. The patches > are to /usr/src/dev/drm2/i915/ Look for the patches in > /usr/src/sys/dev/drm2/i915/intel_opregion.c, i915_drv.h, and i915_irq.c a= nd > were committed to head in r270516. >=20 > The author (adrian@) has declined to MFC, but has stated that someone else > can. I'm hoping someone will. > -- > Kevin Oberman, Network Engineer, Retired > E-mail: rkoberman@gmail.com > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" >=20 --s9fJI615cBHmzTOP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJU1jBXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tPeEIAIQwm8MS3g/soiTideumwEAy YlUy33YGddRLPaXtB9IvdCt7dv+y9C23ii30mqvBMmuBgPoV14vSgcx5C31F8Z7V vpk1HnNpDOdA9WEoz8RRG8zpneQCS2eCMCwY0ZnB9m1r8OxDUAzR1sAEZTVgPd8O 70XsxuJWtWUok5iSX9p3pFMmuvu8OFRefUHN1yawRpgtDv4zxB6PP+r1vvrSZGHH d0Ct3ZWpwcf0umG3s1Iz6C0FPYIUJyvgS6pPD/QKgBWfp1NiZJAdfcQBkFrU9tYh 8hnWA7OcmznPdssk6GftKbW0Ezulg8aEmJrLKjH+R4tn2aLSBQckbDNoOGJGXf8= =g3S9 -----END PGP SIGNATURE----- --s9fJI615cBHmzTOP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150206201100.X38620>