From owner-freebsd-acpi@FreeBSD.ORG Mon May 21 11:07:08 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 0321C106568B for ; Mon, 21 May 2012 11:07:08 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C71EA8FC12 for ; Mon, 21 May 2012 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4LB77r7049018 for ; Mon, 21 May 2012 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4LB77Kl049015 for freebsd-acpi@FreeBSD.org; Mon, 21 May 2012 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 May 2012 11:07:07 GMT Message-Id: <201205211107.q4LB77Kl049015@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org 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: Mon, 21 May 2012 11:07:08 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/164329 acpi [acpi] hw.acpi.thermal.tz0.temperature shows strange v o kern/163268 acpi [acpi_hp] fix driver detach in absence of CMI o kern/162859 acpi [acpi] ACPI battery/acline monitoring partialy working o kern/161715 acpi [acpi] Dell E6520 doesn't resume after ACPI suspend o kern/161713 acpi [acpi] Suspend on Dell E6520 o kern/160838 acpi [acpi] ACPI Battery Monitor Non-Functional o kern/160419 acpi [acpi_thermal] acpi_thermal kernel thread high CPU usa o kern/158689 acpi [acpi] value of sysctl hw.acpi.thermal.polling_rate ne o kern/154955 acpi [acpi] Keyboard or ACPI doesn't work on Lenovo S10-3 o kern/152438 acpi [acpi]: patch to acpi_asus(4) to add extra sysctls for o kern/152098 acpi [acpi] Lenovo T61p does not resume o i386/146715 acpi [acpi] Suspend works, resume not on a HP Probook 4510s o kern/145306 acpi [acpi]: Can't change brightness on HP ProBook 4510s o i386/143798 acpi [acpi] shutdown problem with SiS K7S5A o kern/143420 acpi [acpi] ACPI issues with Toshiba o kern/142009 acpi [acpi] [panic] Panic in AcpiNsGetAttachedObject o kern/139088 acpi [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error o amd64/138210 acpi [acpi] acer aspire 5536 ACPI problems (S3, brightness, o kern/137042 acpi [acpi] hp laptop's lcd not wakes up after suspend to r o i386/136008 acpi [acpi] Dell Vostro 1310 will not shutdown (Requires us o bin/135349 acpi [patch] teach acpidump(8) to disassemble arbitrary mem o kern/132602 acpi [acpi] ACPI Problem with Intel SS4200: System does not p kern/128634 acpi [patch] fix acpi_asus(4) in asus a6f laptop o bin/126162 acpi [acpi] ACPI autoload failed : loading required module o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot a i386/122887 acpi [panic] [atkbdc] 7.0-RELEASE on IBM HS20 panics immed o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/91594 acpi [acpi] FreeBSD > 5.4 w/ACPI fails to detect Intel Pro/ o kern/73823 acpi [request] acpi / power-on by timer support o kern/56024 acpi ACPI suspend drains battery while in S3 32 problems total. From owner-freebsd-acpi@FreeBSD.ORG Wed May 23 15:14:09 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 9BB0D1065670 for ; Wed, 23 May 2012 15:14:09 +0000 (UTC) (envelope-from natbsd@instinctive.eu) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 22F158FC08 for ; Wed, 23 May 2012 15:14:08 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so3925125wib.13 for ; Wed, 23 May 2012 08:14:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent :x-gm-message-state; bh=9hucbjg5VGarCGxrtBKgytIgvQ8fGV5IKOV22BvDq9o=; b=MpiExvpZxZ4XQL89hUTHmOtCVmnDyxs8RZ8cz2nsNdEQPfpsCWd/n0xyXYZoq82CIH yDn7KB/1Yft+6zJqbDXyZYoy2z7VwMBvM2EeOlGMnCnUfyd87IbaATFLJ4TPN4upcSWs uuX0ZVXz/lhB6+9VttEv0kQ9uHRLSBOeFTeTWItaxiP+s/s958nJfI6IHNonJSVGgyJb +T7mf4hCQDkFMdWhJ47PdW8bPLCAD1wWwxZcfKzU446xhrOGqIMIRyi5PYHDUaq3AlNN 0NOzVtOt4g4mh/1A/Ssp8OOkIhx0O/dvGsmdKBWNRyqaus34Pn1P3awu4BksTGddDT/v Ijdw== Received: by 10.180.94.4 with SMTP id cy4mr47401805wib.2.1337786044897; Wed, 23 May 2012 08:14:04 -0700 (PDT) Received: from sigil.instinctive.eu (sigil.instinctive.eu. [78.41.233.119]) by mx.google.com with ESMTPS id fo7sm40647397wib.9.2012.05.23.08.14.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 May 2012 08:14:03 -0700 (PDT) Date: Wed, 23 May 2012 17:13:57 +0200 From: Natacha =?iso-8859-1?Q?Port=E9?= To: freebsd-acpi@freebsd.org Message-ID: <20120523151357.GC97037@sigil.instinctive.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQmkcKZUdfwEpoAjvHuuNaIMX5UptdF76poGdsnuitmQnFT3LxqaX2cpU3UsBBVxlfpAwcd1 Subject: How can I help with thinkpad x220 issues? 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: Wed, 23 May 2012 15:14:09 -0000 Hello, I happen to be the owner of a brand new Lenovo Thinkpad X220. From a recent thread here I gather it almost works with FreeBSD, and the remaining problems are screen brightness and screen left unpowered at resume. Is that right? So my question is, how can I help make progress in any of these area? (though I admit I'm more interested in having the brightness problem solved than the resume one) I don't know anything about ACPI or about FreeBSD or Linux internals, but I'm quite proficient in C and somewhat used to navigate in unknown huge code bases. So I guess the first steps to help would be to first learn stuff. However I don't have much time available. I guess FreeBSD 11 would reach end-of-life before I could reach a level of understanding I find satisfying (though I admit I have high standards there), so I would have to prioritize. So my question is rather *what* should I learn to provide help as soon as possible? For example, if the brightness issue is just a matter of extracting the right numbers from linux kernel code and plug them into FreeBSD, I probably won't need to learn anything more about ACPI than what I would gather looking at the code. I guess if it was that simple someone would have already done it, but that illustrate well my point about prioritizing learning. Or is the barrier of entry too high for me to be of any use? Thanks in advance for your advice, Natacha Porté From owner-freebsd-acpi@FreeBSD.ORG Wed May 23 17:05:31 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 059CC106566C for ; Wed, 23 May 2012 17:05:31 +0000 (UTC) (envelope-from nm.knife@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 8B6138FC14 for ; Wed, 23 May 2012 17:05:30 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so4056400wib.13 for ; Wed, 23 May 2012 10:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NLV149u3hoRmwHS3OjFkFp1hFKoK1nW1Ktk+bfQlu40=; b=A5Ecik29MOMr9oHw99JtyJwABIqYw9WUSlGEnkTkXP3KsYlUD55A4Vklvc21D+WT35 0QdpdITAzNIhiXz3JniuZ1Tm2vWX8oR6tHv+Ph7PFi2eciq0cXxL65pu/CAZzaEC9cs5 gSjSJQptshSE14c3t81hq7+nFDH+Kby0mx754sO/KunKkJwKiGQX9oNr5hnVMf9V9q8Q v/Z9mh6halY4CSetUabwi6DsS7r1soEVgWGBg5gID+QmPDkXGEJczL+n+TadKrxSTI3G vkRpKDBHsP/Am87Fp6FDjJU0KD/SctEim0eOzxrEkF8bc9aSzqpZVzukBOvjbsiuDxLP UI7w== MIME-Version: 1.0 Received: by 10.180.86.5 with SMTP id l5mr48020639wiz.6.1337792728875; Wed, 23 May 2012 10:05:28 -0700 (PDT) Received: by 10.227.20.9 with HTTP; Wed, 23 May 2012 10:05:28 -0700 (PDT) In-Reply-To: <20120523151357.GC97037@sigil.instinctive.eu> References: <20120523151357.GC97037@sigil.instinctive.eu> Date: Wed, 23 May 2012 10:05:28 -0700 Message-ID: From: =?windows-1251?B?y/7h7uzo8CDD8Ojj7vDu4g==?= To: =?ISO-8859-1?Q?Natacha_Port=E9?= Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-acpi@freebsd.org Subject: Re: How can I help with thinkpad x220 issues? 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: Wed, 23 May 2012 17:05:31 -0000 Well, brightness works with the command line, sooo.... I think it has to be mapped to the hardware keys. There is a long thread where I discussed this with a couple other members (toward the bottom for the recent brightness discussion). http://comments.gmane.org/gmane.os.freebsd.current/135827 Good news is that Konstantin's latest patch works with FreeBSD 9-STABLE so no longer need to run HEAD. I would love to see resume work, though. Cheers. -- Lyubomir Grigorov (bgalakazam) From owner-freebsd-acpi@FreeBSD.ORG Wed May 23 17:25:42 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 D50D6106566B for ; Wed, 23 May 2012 17:25:42 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 4540C8FC08 for ; Wed, 23 May 2012 17:25:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id q4NHPYsJ046603; Thu, 24 May 2012 03:25:34 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 24 May 2012 03:25:34 +1000 (EST) From: Ian Smith To: =?windows-1251?B?y/7h7uzo8CDD8Ojj7vDu4g==?= In-Reply-To: Message-ID: <20120524032014.D98171@sola.nimnet.asn.au> References: <20120523151357.GC97037@sigil.instinctive.eu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org, =?ISO-8859-1?Q?Natacha_Port=E9?= Subject: Re: How can I help with thinkpad x220 issues? 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: Wed, 23 May 2012 17:25:42 -0000 On Wed, 23 May 2012 10:05:28 -0700, ??????? ???????? wrote: > Good news is that Konstantin's latest patch works with FreeBSD 9-STABLE so > no longer need to run HEAD. I would love to see resume work, though. I don't suppose your Thinkpad maybe one of those that resumes properly, from X or from a VTY, with sysctl hw.syscons.sc_no_suspend_vtswitch=1 ? cheers, Ian From owner-freebsd-acpi@FreeBSD.ORG Wed May 23 17:28:53 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 2A6ED106564A for ; Wed, 23 May 2012 17:28:53 +0000 (UTC) (envelope-from nm.knife@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id A5A3F8FC08 for ; Wed, 23 May 2012 17:28:52 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so4078374wib.13 for ; Wed, 23 May 2012 10:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8JSO58kOoCy+Nu6L3Knu866N+0ZGBn0eRvuHNtqUd9E=; b=qfwyYwvqQMaXju2eEKyj5hwctsy352mkMxwYF53nQa416sebLeYj9UTHsX7ZYXE/9X 2W7ELK3fq2X5Xn6c16oMAeK3wgjcgLs3ixaIk0G7sE/pu+t0GqlOkRGu0YI1C+p2hb81 Kv0vpYx4ZRCVIBqCcgLt8tQHoda9JroWO9tG46HMEc48sjlCHOWNkj0NA9ybLdeWt96r SYfZtger+byY3+dQR461Ma4m3NciZRQ+G0R1aFquJlPWX7IN0i2JzlUFAlZ/dPnH7A1e Mp1Cee4fdEZvduNpDgBjfjRBq7fxFTy5Y9HRExUo/CzvGr22pOGr2tcwVSrj2JarW32V kB3Q== MIME-Version: 1.0 Received: by 10.180.95.137 with SMTP id dk9mr38917008wib.1.1337794131493; Wed, 23 May 2012 10:28:51 -0700 (PDT) Received: by 10.227.20.9 with HTTP; Wed, 23 May 2012 10:28:51 -0700 (PDT) In-Reply-To: <20120524032014.D98171@sola.nimnet.asn.au> References: <20120523151357.GC97037@sigil.instinctive.eu> <20120524032014.D98171@sola.nimnet.asn.au> Date: Wed, 23 May 2012 10:28:51 -0700 Message-ID: From: =?windows-1251?B?y/7h7uzo8CDD8Ojj7vDu4g==?= To: Ian Smith Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-acpi@freebsd.org, =?ISO-8859-1?Q?Natacha_Port=E9?= Subject: Re: How can I help with thinkpad x220 issues? 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: Wed, 23 May 2012 17:28:53 -0000 > I don't suppose your Thinkpad maybe one of those that resumes properly, > from X or from a VTY, with sysctl hw.syscons.sc_no_suspend_vtswitch=1 ? > > cheers, Ian > No. I got my X220 AFTER the suspend/resume was broken. There was a point, I hear, during which it worked properly. I guess we are getting there. FreeBSD 10 has some hopes for me, including Intel GEM/KMS patch in code and some other goodies. -- Lyubomir Grigorov (bgalakazam) From owner-freebsd-acpi@FreeBSD.ORG Wed May 23 22:19:15 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE9A21065670 for ; Wed, 23 May 2012 22:19:15 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5FFB78FC14 for ; Wed, 23 May 2012 22:19:15 +0000 (UTC) Received: by werg1 with SMTP id g1so6553602wer.13 for ; Wed, 23 May 2012 15:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SsX/0UVzYzUe1JNT/XbUEDhzBNFFJenlUsY6O2BXkZk=; b=iPIpSaE0K3K9z55MhDT/zaISut2qceLxfa9qsUveg6cJpdXdNCCJej2/9ofQ+zbk7n IXUbmUnzrTaqe044EKS7o/2fXewc23wJjoqyYfjSmofzh9hLEklRBK2DA4gGrRNV7Y5L wQEkwVUJc+GojYromWSSe90cq/tRF6oUXW0a3wu3hGlZx5C6bP/acbwgfEik4m6YfxNj FuEEPYBFtYEuaQ/YVJ6QVGkBr79mV9NSv4isPt/SSXlrlPH9/AqcKWb6WDt84vnAU+RZ shJU60u8kSROc5bHSTympNsV21vN+ejBLykQ/t+5824gaAyeGFS/8MDfEaAFUlJ6jj4A vK+g== MIME-Version: 1.0 Received: by 10.180.74.68 with SMTP id r4mr49864524wiv.13.1337811554324; Wed, 23 May 2012 15:19:14 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Wed, 23 May 2012 15:19:14 -0700 (PDT) In-Reply-To: <20120523151357.GC97037@sigil.instinctive.eu> References: <20120523151357.GC97037@sigil.instinctive.eu> Date: Wed, 23 May 2012 15:19:14 -0700 Message-ID: From: Kevin Oberman To: =?ISO-8859-1?Q?Natacha_Port=E9?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org Subject: Re: How can I help with thinkpad x220 issues? 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: Wed, 23 May 2012 22:19:16 -0000 On Wed, May 23, 2012 at 8:13 AM, Natacha Port=E9 wr= ote: > Hello, > > I happen to be the owner of a brand new Lenovo Thinkpad X220. From a > recent thread here I gather it almost works with FreeBSD, and the > remaining problems are screen brightness and screen left unpowered at > resume. Is that right? > > So my question is, how can I help make progress in any of these area? > (though I admit I'm more interested in having the brightness problem > solved than the resume one) > > I don't know anything about ACPI or about FreeBSD or Linux internals, > but I'm quite proficient in C and somewhat used to navigate in unknown > huge code bases. > > So I guess the first steps to help would be to first learn stuff. > > However I don't have much time available. I guess FreeBSD 11 would reach > end-of-life before I could reach a level of understanding I find > satisfying (though I admit I have high standards there), so I would have > to prioritize. So my question is rather *what* should I learn to provide > help as soon as possible? > > For example, if the brightness issue is just a matter of extracting the > right numbers from linux kernel code and plug them into FreeBSD, I > probably won't need to learn anything more about ACPI than what I would > gather looking at the code. I guess if it was that simple someone would > have already done it, but that illustrate well my point about > prioritizing learning. > > Or is the barrier of entry too high for me to be of any use? If it has not been committed, the minor fix to make acpi_ibm work on modern ThinkPads needs to be committed. Once done, the issues mentioned need to be addressed.This includes getting brightness to be setable from both the keypad hot-keys and from applications. ATM, I can set the brightness, but making the hot-keys work will require the ability to extract the current level so that it may be adjusted plus/minus one. The other issue is volume control keys don't work. I suspect it will be similar to brightness, but I don't know just how to figure it out. I should also mention that I don't have an X220. I have a T520, but the issues seem to be identical, so fixing one will probably fix a lot of recent ThinkPads. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com From owner-freebsd-acpi@FreeBSD.ORG Thu May 24 06:55:34 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F0F61065670 for ; Thu, 24 May 2012 06:55:34 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id F3B838FC0C for ; Thu, 24 May 2012 06:55:33 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mail.0x20.net (Postfix) with ESMTP id D20EC6A6017; Thu, 24 May 2012 08:55:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.0x20.net Received: from mail.0x20.net ([217.69.76.211]) by mail.0x20.net (mail.0x20.net [217.69.76.211]) (amavisd-new, port 10024) with ESMTP id vnkPek90Yn2P; Thu, 24 May 2012 08:55:32 +0200 (CEST) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 8616E6A6010; Thu, 24 May 2012 08:55:32 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.4/8.14.4) with ESMTP id q4O6tWFP075074; Thu, 24 May 2012 08:55:32 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.4/8.14.4/Submit) id q4O6tWUQ074765; Thu, 24 May 2012 08:55:32 +0200 (CEST) (envelope-from lars) Date: Thu, 24 May 2012 08:55:32 +0200 From: Lars Engels To: Kevin Oberman Message-ID: <20120524065532.GB39168@e-new.0x20.net> References: <20120523151357.GC97037@sigil.instinctive.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.2-RELEASE-p6 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-acpi@freebsd.org, Natacha =?utf-8?B?UG9ydMOp?= Subject: Re: How can I help with thinkpad x220 issues? 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: Thu, 24 May 2012 06:55:34 -0000 --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 23, 2012 at 03:19:14PM -0700, Kevin Oberman wrote: > On Wed, May 23, 2012 at 8:13 AM, Natacha Port=C3=A9 wrote: > > Hello, > > > > I happen to be the owner of a brand new Lenovo Thinkpad X220. From a > > recent thread here I gather it almost works with FreeBSD, and the > > remaining problems are screen brightness and screen left unpowered at > > resume. Is that right? > > > > So my question is, how can I help make progress in any of these area? > > (though I admit I'm more interested in having the brightness problem > > solved than the resume one) > > > > I don't know anything about ACPI or about FreeBSD or Linux internals, > > but I'm quite proficient in C and somewhat used to navigate in unknown > > huge code bases. > > > > So I guess the first steps to help would be to first learn stuff. > > > > However I don't have much time available. I guess FreeBSD 11 would reach > > end-of-life before I could reach a level of understanding I find > > satisfying (though I admit I have high standards there), so I would have > > to prioritize. So my question is rather *what* should I learn to provide > > help as soon as possible? > > > > For example, if the brightness issue is just a matter of extracting the > > right numbers from linux kernel code and plug them into FreeBSD, I > > probably won't need to learn anything more about ACPI than what I would > > gather looking at the code. I guess if it was that simple someone would > > have already done it, but that illustrate well my point about > > prioritizing learning. > > > > Or is the barrier of entry too high for me to be of any use? >=20 > If it has not been committed, the minor fix to make acpi_ibm work on > modern ThinkPads needs to be committed. Once done, the issues > mentioned need to be addressed.This includes getting brightness to be > setable from both the keypad hot-keys and from applications. ATM, I > can set the brightness, but making the hot-keys work will require the > ability to extract the current level so that it may be adjusted > plus/minus one. >=20 > The other issue is volume control keys don't work. I suspect it will > be similar to brightness, but I don't know just how to figure it out. >=20 > I should also mention that I don't have an X220. I have a T520, but > the issues seem to be identical, so fixing one will probably fix a lot > of recent ThinkPads. About the key: Did you try loading "acpi_ibm", "sysctl dev.acpi_ibm.0.events=3D1", "cat /var/run/devd.pipe" and then press the keys. Does anything show up? --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+922QACgkQKc512sD3afivzgCgzR5lyz+46ruklLgcJ/nXCGac 11MAnjmKAUeDvgZMgRxjy11iTqVFVO8P =LmoG -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz-- From owner-freebsd-acpi@FreeBSD.ORG Sat May 26 00:08:31 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 6429F106564A; Sat, 26 May 2012 00:08:31 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE288FC19; Sat, 26 May 2012 00:08:30 +0000 (UTC) Received: by obcni5 with SMTP id ni5so2446783obc.13 for ; Fri, 25 May 2012 17:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Oezd401vJg8JIzWxGG+4Dkz4cnq2Z2fNsvZ9DSXhmKo=; b=ABZQ3s7i8buWuZu5FDo1lsy9eopBICBYU6MubhtkDQMhnJkgL2zev4i9fwB2K5Qmgs sJ/vZ9KxtqTkJJlqLXoxXbuo5Xx1DBK1M6Ht7ChL5GoTBX4AgGfHjpDbTl1L9jBzWxAJ rgAcGBPFxvzYENIfkAxiCVeohWF8vs6P/Gi+5UohOusQaTAXgxqH3n4SbjJuGXisUDYK cB+aFrdgtceBWFDBgSc+Mp+fyvf1qxeytfkC9BUTvybHm5lfUa3O/owQifjvb/pjq0hl 38PE2NjhDkceWr7xzEPEnjFOyZ94GAc2l0csU6Rjfoo0o45tD6et8eQrjj39rxHodwdi FdWg== MIME-Version: 1.0 Received: by 10.182.48.100 with SMTP id k4mr744403obn.21.1337990910567; Fri, 25 May 2012 17:08:30 -0700 (PDT) Received: by 10.76.153.72 with HTTP; Fri, 25 May 2012 17:08:30 -0700 (PDT) In-Reply-To: References: <20120511.111019.90116031.iwasaki@jp.FreeBSD.org> Date: Fri, 25 May 2012 17:08:30 -0700 Message-ID: From: Garrett Cooper To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-acpi@freebsd.org, freebsd-current@freebsd.org Subject: Re: [CFT] SMP/i386 suspend/resume 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: Sat, 26 May 2012 00:08:31 -0000 On Fri, May 11, 2012 at 2:01 PM, Garrett Cooper wrote: > On Fri, May 11, 2012 at 12:56 PM, Adrian Chadd wrote: >> Thanks so very much for this! >> >> I'll try it on my thinkpad T60 this weekend and report back. It >> unfortunately is running 9.0-RELEASE though - if I have issues, I'll >> try 9-stable on another T60 next week and similarly report back. > > +1. I've really liked to use more than one CPU on my netbook for a while :). A basic suspend test worked on my netbook. I'll have to see about some edgecases I've run into in the past where UP wouldn't resume if the system had been sitting for an extensive period of time, etc. Very cool though -- thanks for your work so far on this ;)! -Garrett From owner-freebsd-acpi@FreeBSD.ORG Sat May 26 03:25:49 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 604A8106566B for ; Sat, 26 May 2012 03:25:49 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id E4BDE8FC0C for ; Sat, 26 May 2012 03:25:48 +0000 (UTC) Received: by werg1 with SMTP id g1so1226521wer.13 for ; Fri, 25 May 2012 20:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Yqh1EtkbeRogr4RQl7I/fC0fr6uYUC5xnssfyofIGKY=; b=m13f7nMCL5HvWzMidkFi0bs1ph2FyWOZjNmvUmDvPSe5KZt10vWS8BgvaIYuoRrgJ1 KfPuzu8JKc46KpPxCQeyezqqT2Xu7JjahvxGe8D5FOF9UXDJAm5Fq3s5PIyU1HvvBrEu qbQhnu26KWDfeIaPStjLEtJY6bAjd+E3CwDDQq98Ke3G8O7EJTI245iNqAQoFJSUo7cG V2XbqDPcEpTv+GbFW2PzFKnQNerm3IINF5CfXAt4sPcyTYzA9iK2Hy8P2kY1O8d4yGhL z04ubFmKcU7KxY4sRWirhRYRz5fMLc/kIWX0H0JolTwdHMDPCARozCZIZRsKz7GYgyU8 imDw== MIME-Version: 1.0 Received: by 10.180.80.97 with SMTP id q1mr845733wix.13.1338002747964; Fri, 25 May 2012 20:25:47 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Fri, 25 May 2012 20:25:47 -0700 (PDT) In-Reply-To: <20120524065532.GB39168@e-new.0x20.net> References: <20120523151357.GC97037@sigil.instinctive.eu> <20120524065532.GB39168@e-new.0x20.net> Date: Fri, 25 May 2012 20:25:47 -0700 Message-ID: From: Kevin Oberman To: Lars Engels Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org, =?ISO-8859-1?Q?Natacha_Port=E9?= Subject: Re: How can I help with thinkpad x220 issues? 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: Sat, 26 May 2012 03:25:49 -0000 On Wed, May 23, 2012 at 11:55 PM, Lars Engels wrote: > On Wed, May 23, 2012 at 03:19:14PM -0700, Kevin Oberman wrote: >> On Wed, May 23, 2012 at 8:13 AM, Natacha Port=E9 = wrote: >> > Hello, >> > >> > I happen to be the owner of a brand new Lenovo Thinkpad X220. From a >> > recent thread here I gather it almost works with FreeBSD, and the >> > remaining problems are screen brightness and screen left unpowered at >> > resume. Is that right? >> > >> > So my question is, how can I help make progress in any of these area? >> > (though I admit I'm more interested in having the brightness problem >> > solved than the resume one) >> > >> > I don't know anything about ACPI or about FreeBSD or Linux internals, >> > but I'm quite proficient in C and somewhat used to navigate in unknown >> > huge code bases. >> > >> > So I guess the first steps to help would be to first learn stuff. >> > >> > However I don't have much time available. I guess FreeBSD 11 would rea= ch >> > end-of-life before I could reach a level of understanding I find >> > satisfying (though I admit I have high standards there), so I would ha= ve >> > to prioritize. So my question is rather *what* should I learn to provi= de >> > help as soon as possible? >> > >> > For example, if the brightness issue is just a matter of extracting th= e >> > right numbers from linux kernel code and plug them into FreeBSD, I >> > probably won't need to learn anything more about ACPI than what I woul= d >> > gather looking at the code. I guess if it was that simple someone woul= d >> > have already done it, but that illustrate well my point about >> > prioritizing learning. >> > >> > Or is the barrier of entry too high for me to be of any use? >> >> If it has not been committed, the minor fix to make acpi_ibm work on >> modern ThinkPads needs to be committed. Once done, the issues >> mentioned need to be addressed.This includes getting brightness to be >> setable from both the keypad hot-keys and from applications. ATM, I >> can set the brightness, but making the hot-keys work will require the >> ability to extract the current level so that it may be adjusted >> plus/minus one. >> >> The other issue is volume control keys don't work. I suspect it will >> be similar to brightness, but I don't know just how to figure it out. >> >> I should also mention that I don't have an X220. I have a T520, but >> the issues seem to be identical, so fixing one will probably fix a lot >> of recent ThinkPads. > > About the key: > > Did you try loading "acpi_ibm", "sysctl dev.acpi_ibm.0.events=3D1", > "cat /var/run/devd.pipe" and then press the keys. Does anything show up? After adding LEN0068 ti the ACPI IDs, I tried this and I get no ACPI event when pressing either button, but I do get regular key press events: KeyPress event, serial 30, synthetic NO, window 0x4600001, root 0x121, subw 0x0, time 166670035, (96,121), root:(100,750), state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x4600001, root 0x121, subw 0x0, time 166670185, (96,121), root:(100,750), state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 33, synthetic NO, window 0x4600001, root 0x121, subw 0x0, time 166927339, (98,0), root:(102,629), state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x4600001, root 0x121, subw 0x0, time 166927451, (98,0), root:(102,629), state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False I can set these up as hot keys and issue a command, but I have no idea what I can set to adjust the hardware volume. But I will also need to read out the current volume so I know what value to which is should be set. (Same issue as with brightness.) --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com From owner-freebsd-acpi@FreeBSD.ORG Sat May 26 05:10:38 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68A6B106566B for ; Sat, 26 May 2012 05:10:38 +0000 (UTC) (envelope-from pldrouin@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1A6458FC14 for ; Sat, 26 May 2012 05:10:38 +0000 (UTC) Received: by ghbz22 with SMTP id z22so918499ghb.13 for ; Fri, 25 May 2012 22:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=nvt43BVZEu5fzFCpDo3YRs1d4gQ0d5k5+M4N6Kgrwgc=; b=Ysl4ym1MA+lM+qStyen+VneTL+ZIG0WCWTMLQ/UzgWYdkZbtROWllgcxDfvEmTTGWg zAQEG16issMCvNOk84vY8p0AghryytNrcfavpfIKEYTPOyB4CjN8/N806Fraa+ByqhVG CpygCCu9DpCHwQJtKjRm6auHh3x+Fgfy0VdH+qqJRBsIv4/iLhM1Sr6msw5xAe6mmX8N wmFVH/6aVfrJ4f1elyv2Tm8Lq4IOOHqaxXdy0a+Yqp3/46WrHLkRaW6s6Z1JZvM3O4Io wAJlTAnm/0oxOzTpAlqVrEZOt+3g228mKpowiKqpcoe6/RoSCRq5PtK+va1ZWNFsAhrM 2qrA== MIME-Version: 1.0 Received: by 10.42.150.136 with SMTP id a8mr640663icw.42.1338009036923; Fri, 25 May 2012 22:10:36 -0700 (PDT) Sender: pldrouin@gmail.com Received: by 10.64.44.74 with HTTP; Fri, 25 May 2012 22:10:36 -0700 (PDT) In-Reply-To: References: <20120523151357.GC97037@sigil.instinctive.eu> <20120524065532.GB39168@e-new.0x20.net> Date: Sat, 26 May 2012 01:10:36 -0400 X-Google-Sender-Auth: 6e9fGCkjU0YlRYXm3vIEsi36UWs Message-ID: From: Pierre-Luc Drouin To: Kevin Oberman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-acpi@freebsd.org" Subject: Re: How can I help with thinkpad x220 issues? 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: Sat, 26 May 2012 05:10:38 -0000 On Friday, May 25, 2012, Kevin Oberman wrote: > On Wed, May 23, 2012 at 11:55 PM, Lars Engels > > wrote: > > On Wed, May 23, 2012 at 03:19:14PM -0700, Kevin Oberman wrote: > >> On Wed, May 23, 2012 at 8:13 AM, Natacha Port=E9 > > wrote: > >> > Hello, > >> > > >> > I happen to be the owner of a brand new Lenovo Thinkpad X220. From a > >> > recent thread here I gather it almost works with FreeBSD, and the > >> > remaining problems are screen brightness and screen left unpowered a= t > >> > resume. Is that right? > >> > > >> > So my question is, how can I help make progress in any of these area= ? > >> > (though I admit I'm more interested in having the brightness problem > >> > solved than the resume one) > >> > > >> > I don't know anything about ACPI or about FreeBSD or Linux internals= , > >> > but I'm quite proficient in C and somewhat used to navigate in unkno= wn > >> > huge code bases. > >> > > >> > So I guess the first steps to help would be to first learn stuff. > >> > > >> > However I don't have much time available. I guess FreeBSD 11 would > reach > >> > end-of-life before I could reach a level of understanding I find > >> > satisfying (though I admit I have high standards there), so I would > have > >> > to prioritize. So my question is rather *what* should I learn to > provide > >> > help as soon as possible? > >> > > >> > For example, if the brightness issue is just a matter of extracting > the > >> > right numbers from linux kernel code and plug them into FreeBSD, I > >> > probably won't need to learn anything more about ACPI than what I > would > >> > gather looking at the code. I guess if it was that simple someone > would > >> > have already done it, but that illustrate well my point about > >> > prioritizing learning. > >> > > >> > Or is the barrier of entry too high for me to be of any use? > >> > >> If it has not been committed, the minor fix to make acpi_ibm work on > >> modern ThinkPads needs to be committed. Once done, the issues > >> mentioned need to be addressed.This includes getting brightness to be > >> setable from both the keypad hot-keys and from applications. ATM, I > >> can set the brightness, but making the hot-keys work will require the > >> ability to extract the current level so that it may be adjusted > >> plus/minus one. > >> > >> The other issue is volume control keys don't work. I suspect it will > >> be similar to brightness, but I don't know just how to figure it out. > >> > >> I should also mention that I don't have an X220. I have a T520, but > >> the issues seem to be identical, so fixing one will probably fix a lot > >> of recent ThinkPads. > > > > About the key: > > > > Did you try loading "acpi_ibm", "sysctl dev.acpi_ibm.0.events=3D1", > > "cat /var/run/devd.pipe" and then press the keys. Does anything show up= ? > > After adding LEN0068 ti the ACPI IDs, I tried this and I get no ACPI > event when pressing either button, but I do get regular key press > events: > KeyPress event, serial 30, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166670035, (96,121), root:(100,750), > state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), > same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyRelease event, serial 33, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166670185, (96,121), root:(100,750), > state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), > same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyPress event, serial 33, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166927339, (98,0), root:(102,629), > state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), > same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyRelease event, serial 33, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166927451, (98,0), root:(102,629), > state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), > same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False > > I can set these up as hot keys and issue a command, but I have no idea > what I can set to adjust the hardware volume. But I will also need to > read out the current volume so I know what value to which is should be > set. (Same issue as with brightness.) > -- > R. Kevin Oberman, Network Engineer > E-mail: kob6558@gmail.com You should be able to bind these keys to commands such as mixer vol +5 amd mixer vol -5 > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org > " > From owner-freebsd-acpi@FreeBSD.ORG Sat May 26 08:37:36 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0D821065672; Sat, 26 May 2012 08:37:36 +0000 (UTC) (envelope-from iwasaki@jp.FreeBSD.org) Received: from locore.org (ns01.locore.org [218.45.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id 7FAF18FC08; Sat, 26 May 2012 08:37:36 +0000 (UTC) Received: from localhost (celeron.v4.locore.org [192.168.0.10]) by locore.org (8.14.5/8.14.5/iwasaki) with ESMTP/inet id q4Q8bSgR089775; Sat, 26 May 2012 17:37:29 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Sat, 26 May 2012 17:37:27 +0900 (JST) Message-Id: <20120526.173727.110019352.iwasaki@jp.FreeBSD.org> To: yanegomi@gmail.com From: Mitsuru IWASAKI In-Reply-To: References: X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: adrian@freebsd.org, freebsd-current@freebsd.org, freebsd-acpi@freebsd.org Subject: Re: [CFT] SMP/i386 suspend/resume 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: Sat, 26 May 2012 08:37:36 -0000 Hi, > > +1. I've really liked to use more than one CPU on my netbook for a while :). > > A basic suspend test worked on my netbook. I'll have to see about > some edgecases I've run into in the past where UP wouldn't resume if > the system had been sitting for an extensive period of time, etc. > Very cool though -- thanks for your work so far on this ;)! I'm glad to hear this :) I'll try to fix suspend/resume related problems when I have spare time. Thanks! From owner-freebsd-acpi@FreeBSD.ORG Sat May 26 12:45:44 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4818106566C for ; Sat, 26 May 2012 12:45:44 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mx1.freebsd.org (Postfix) with ESMTP id 61C618FC19 for ; Sat, 26 May 2012 12:45:43 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mail.0x20.net (Postfix) with ESMTP id C66836A6017; Sat, 26 May 2012 14:45:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.0x20.net Received: from mail.0x20.net ([217.69.76.211]) by mail.0x20.net (mail.0x20.net [217.69.76.211]) (amavisd-new, port 10024) with ESMTP id eMR3svseE3NV; Sat, 26 May 2012 14:45:42 +0200 (CEST) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 83D226A6002; Sat, 26 May 2012 14:45:42 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.4/8.14.4) with ESMTP id q4QCjgsq057632; Sat, 26 May 2012 14:45:42 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.4/8.14.4/Submit) id q4QCjg8d056488; Sat, 26 May 2012 14:45:42 +0200 (CEST) (envelope-from lars) Date: Sat, 26 May 2012 14:45:42 +0200 From: Lars Engels To: Kevin Oberman Message-ID: <20120526124542.GK39168@e-new.0x20.net> References: <20120523151357.GC97037@sigil.instinctive.eu> <20120524065532.GB39168@e-new.0x20.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="++alDQ2ROsODg1x+" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.2-RELEASE-p6 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-acpi@freebsd.org, Natacha =?utf-8?B?UG9ydMOp?= Subject: Re: How can I help with thinkpad x220 issues? 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: Sat, 26 May 2012 12:45:45 -0000 --++alDQ2ROsODg1x+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 25, 2012 at 08:25:47PM -0700, Kevin Oberman wrote: > On Wed, May 23, 2012 at 11:55 PM, Lars Engels wrot= e: > > On Wed, May 23, 2012 at 03:19:14PM -0700, Kevin Oberman wrote: > >> On Wed, May 23, 2012 at 8:13 AM, Natacha Port=C3=A9 wrote: > >> > Hello, > >> > > >> > I happen to be the owner of a brand new Lenovo Thinkpad X220. From a > >> > recent thread here I gather it almost works with FreeBSD, and the > >> > remaining problems are screen brightness and screen left unpowered at > >> > resume. Is that right? > >> > > >> > So my question is, how can I help make progress in any of these area? > >> > (though I admit I'm more interested in having the brightness problem > >> > solved than the resume one) > >> > > >> > I don't know anything about ACPI or about FreeBSD or Linux internals, > >> > but I'm quite proficient in C and somewhat used to navigate in unkno= wn > >> > huge code bases. > >> > > >> > So I guess the first steps to help would be to first learn stuff. > >> > > >> > However I don't have much time available. I guess FreeBSD 11 would r= each > >> > end-of-life before I could reach a level of understanding I find > >> > satisfying (though I admit I have high standards there), so I would = have > >> > to prioritize. So my question is rather *what* should I learn to pro= vide > >> > help as soon as possible? > >> > > >> > For example, if the brightness issue is just a matter of extracting = the > >> > right numbers from linux kernel code and plug them into FreeBSD, I > >> > probably won't need to learn anything more about ACPI than what I wo= uld > >> > gather looking at the code. I guess if it was that simple someone wo= uld > >> > have already done it, but that illustrate well my point about > >> > prioritizing learning. > >> > > >> > Or is the barrier of entry too high for me to be of any use? > >> > >> If it has not been committed, the minor fix to make acpi_ibm work on > >> modern ThinkPads needs to be committed. Once done, the issues > >> mentioned need to be addressed.This includes getting brightness to be > >> setable from both the keypad hot-keys and from applications. ATM, I > >> can set the brightness, but making the hot-keys work will require the > >> ability to extract the current level so that it may be adjusted > >> plus/minus one. > >> > >> The other issue is volume control keys don't work. I suspect it will > >> be similar to brightness, but I don't know just how to figure it out. > >> > >> I should also mention that I don't have an X220. I have a T520, but > >> the issues seem to be identical, so fixing one will probably fix a lot > >> of recent ThinkPads. > > > > About the key: > > > > Did you try loading "acpi_ibm", "sysctl dev.acpi_ibm.0.events=3D1", > > "cat /var/run/devd.pipe" and then press the keys. Does anything show up? >=20 > After adding LEN0068 ti the ACPI IDs, I tried this and I get no ACPI > event when pressing either button, but I do get regular key press > events: > KeyPress event, serial 30, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166670035, (96,121), root:(100,750), > state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), > same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False >=20 > KeyRelease event, serial 33, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166670185, (96,121), root:(100,750), > state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), > same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False >=20 > KeyPress event, serial 33, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166927339, (98,0), root:(102,629), > state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), > same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False >=20 > KeyRelease event, serial 33, synthetic NO, window 0x4600001, > root 0x121, subw 0x0, time 166927451, (98,0), root:(102,629), > state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), > same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False Hmm, okay, that's not too bad. At least the keys are recognized. >=20 > I can set these up as hot keys and issue a command, but I have no idea > what I can set to adjust the hardware volume. But I will also need to > read out the current volume so I know what value to which is should be > set. (Same issue as with brightness.) Do you have dev.acpi_ibm.0.lcd_brightness and .volume? If you cou can write a script that raises / lowers the values with sysctl. --++alDQ2ROsODg1x+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/A0HYACgkQKc512sD3afhPkgCgkg7IqsuUxqVO+HQClQxKcPDO 65sAnijVcfDdM1xCgj2A5QwUEfiKEOxY =+/Sg -----END PGP SIGNATURE----- --++alDQ2ROsODg1x+--