From owner-freebsd-acpi@FreeBSD.ORG Fri Apr 6 01:59:29 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 686241065672 for ; Fri, 6 Apr 2012 01:59:29 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 271FA8FC14 for ; Fri, 6 Apr 2012 01:59:29 +0000 (UTC) Received: by pbcwz17 with SMTP id wz17so2232163pbc.13 for ; Thu, 05 Apr 2012 18:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=mM4t7IGP05V95g3LFwOsv2e7nABK+P9JIp+a9c7C800=; b=vqD1SkLyn3sfWd8xVzQGz3tXOihV5eghLhfpImpwGEqZ/FaD4XFWDee7HYa96nLz7V zja7qs37lHXh99Rw4MphmnOed8OQ6y/7tHEPFfc4IJDjJSxBZrtQgwwBB59aTrM5YzUc eBo1sg2rFDFm3uvc6+YOJfUXK8wqmpT2hbzkD6DihSrqafr6OFxmQ7WpdEEqdXkPXgvh GMhfkoQkyWU0MYhyoll8+qvSRQRVXi9Xut97gK0kYdHEEN4ik9kIlevwMCqT7hLa1wst 31LmJ9O2zvJJaQqSTP1dT6k4l+k6oxYaqwxLNA/x6he1QHyZQlkmRA+I2JHaR2AvL0ut mrwA== Received: by 10.68.234.106 with SMTP id ud10mr9215711pbc.128.1333677568947; Thu, 05 Apr 2012 18:59:28 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id st4sm521579pbc.51.2012.04.05.18.59.25 (version=SSLv3 cipher=OTHER); Thu, 05 Apr 2012 18:59:26 -0700 (PDT) Message-ID: <4F7E4DF5.7040101@gmail.com> Date: Thu, 05 Apr 2012 18:59:17 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120324 Thunderbird/10.0.3 MIME-Version: 1.0 To: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= References: <4E836C06.9070405@gmail.com> <4F56A2DA.2070703@gmail.com> <201204011214.38801.erichfreebsdlist@ovitrap.com> <4F789DD7.90604@mehnert.org> <4F7A46DB.4050701@gmail.com> <4F7A8A99.4040603@gmail.com> <20120403210619.Q2060@sola.nimnet.asn.au> <4F7DAAB0.2010206@gmail.com> <4F7E2D5C.3020506@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-acpi@freebsd.org Subject: Re: x220 notes X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2012 01:59:29 -0000 On 04/05/12 18:33, Любомир Григоров wrote: > Hey Matt, a couple of things, since I am experiencing a different > situation > > > > Yes, it should be possible if your sources are in synchronization > with world/kernel. > > Just make the edit and go to /usr/src/sys/modules/acpi/acpi_ibm and > type make && make install > I unloaded, recompiled that part, and rebooted, but I see no change > for the hotkeys. Most still don't work. Only volume mute work, but > that worked before the change. Trying to change the brightness didn't > "corrupt" the fan. Neither from hotkeys, nor from acpi_call > > > You'll notice that fan speed becomes something ugly after trying to > set brightness, but everything will work otherwise as far as I have > tested. > > I have found that the machine gets quite hot on its own especially > with turbo core on the i7 and heavy usage, even with power tuning. > > Adjusting fan speed could be dangerous, I would certainly keep a > close eye on temperatures during something like buildworld to be sure. > On the other side, my temp now drops below 50C to about 46C. The fan > goes into its lowest spin. I didn't have this before. At 50C it kicks > to next step, at 60C it kicks to the crazy speed (usually on compile > or 720p video). > > > P.S. All tests were done from X with Konstantin's patch on 9.0-STABLE > with powerd and no other mods. X220 with i5 2520M, BIOS 1.28, IPS, > 9cell batter, 16GB RAM, Intel 1000-N, SSD. > > P.S.S. Workaround for fan corruption can be changing the brightness > while it boots, before OS starts, function keys work there. But I > don't have the crazy fan. If by crazy fan you mean not the lowest > spin, then I had that before LEN change as well. > > -- > Lyubomir Grigorov (bgalakazam) > We have the same bios at least, only difference is 8gb RAM here and i7-2720M. For what it's worth the i5 and i7 are the same as far as I know except amount of L3 cache...maybe amt or vt-d? The corrupt fan speed value occurs only when setting lcd brightness in dev.acpi_ibm.0.lcd_brightness (from memory, so not sure if that's exact). It doesn't affect brightness as only bypassing \_SB.PCI0.LPC.EC.BRNS() seems to change the brightness for us (by using acpi_call to call \VBRC). The hotkeys are interesting, I assume you're familar with the way the mask works etc...once you "enable" the hotkeys with sysctls, they are then supposed to be handled by devd, I believe, so you would have to create a script to capture the keys and execute some commands. It's been a while since I did this, as I usually didn't use hotkeys...so in this case you *could* capture brightness hotkeys in devd and call acpi_call, but that seems like a hack...I think the best case is to allow ACPI to handle the hotkeys (which it's doing fine) but figure out why the hw.acpi.video.lcd0.brightness (again from memory) has no effect...as the hotkeys do change this value out of the box. Matt