From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 12 11:06:40 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 7313297F for ; Mon, 12 Nov 2012 11:06:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3BB358FC15 for ; Mon, 12 Nov 2012 11:06:40 +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 qACB6eT4000272 for ; Mon, 12 Nov 2012 11:06:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qACB6dBs000270 for freebsd-acpi@FreeBSD.org; Mon, 12 Nov 2012 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Nov 2012 11:06:39 GMT Message-Id: <201211121106.qACB6dBs000270@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 Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 11:06:40 -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/171305 acpi [acpi] acpi_tz0: _CRT value is absurd, ignored (256.0C 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 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 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 31 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 12 17:12:36 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 8864EFF1 for ; Mon, 12 Nov 2012 17:12:36 +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 52B5A8FC13 for ; Mon, 12 Nov 2012 17:12:36 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id wz17so2956703pbc.13 for ; Mon, 12 Nov 2012 09:12:36 -0800 (PST) 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:x-enigmail-version:content-type :content-transfer-encoding; bh=KrME/ROYJESy1ZCBnScINBb/nR+/f8eHgKZ91YWvvZA=; b=jR1A5lmiLCfszfnOcWmczOCEVWoWpKvJCDtptydFym7YTRl/3npxMQpEprqOSkKFnC x7Wh8hf7TqzlxoR4a5Ild9XxZfJdemwmWaq4kQJ2x4viLr6xPuIzvdeiyF6o9fvC8JiZ Ga9OiudIKcDAxt19Rqb+noftJxV21MbxeCwBLAkruLJmlHwhcG8WqP/rKMNmrZ//BrqJ MXwxzMuuzSJib01Yj5ym3VDuyR48wWalk6FLpFVFkYGhquWHfAOh8IMAuR6KI9mynIgf UKKsdjke4vlyMNvcZd/dvwXwj3DaX2VH4Ebneady+M3uC6GNcP2Aepg3dsQw92cY2AtC KPqg== Received: by 10.68.200.38 with SMTP id jp6mr39192318pbc.131.1352740356038; Mon, 12 Nov 2012 09:12:36 -0800 (PST) Received: from bakeneko.local (108-213-216-134.lightspeed.sntcca.sbcglobal.net. [108.213.216.134]) by mx.google.com with ESMTPS id n11sm4449061pby.67.2012.11.12.09.12.32 (version=SSLv3 cipher=OTHER); Mon, 12 Nov 2012 09:12:33 -0800 (PST) Message-ID: <50A12DF9.8090107@gmail.com> Date: Mon, 12 Nov 2012 09:12:25 -0800 From: matt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121106 Thunderbird/10.0.10 MIME-Version: 1.0 To: Stefan Horomnea Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 17:12:36 -0000 On 11/10/12 11:50, Stefan Horomnea wrote: > Hi, > > I am enthusiastic to have switched recently to FreeBSD on my laptop. I have > been using Linux (Fedora, Ubuntu) in the past few years. I am using FreeBSD > 9.0 on a ThinkPad L512. > One of my challenges now is to make again my laptop to sleep and resume > from sleep correctly. I have read and tried a few things written here: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.htmlbut > with no luck. > What happens is: > acpiconf -s 3 > seems to get the job done, the hdd and monitor stop, the power button is > blinking, so it looks like in the sleep state. > But after I push the power button, it reboots instead of coming out of the > sleep. > I also tried killing X, unloading some of the kernel modules, and then run > the sleep command. But it does the same. > > Debug info: > > dmesg: http://bit.ly/TSiPCJ > asl dump: http://bit.ly/RP559M > > The files are hosted on dropbox so they are not formatted correctly but you > can download them to see them properly. > > Any help is much appreciated :) > > > Thank you, > Stefan > _______________________________________________ > 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" Please try various configurations of hw.pci.do_power_resume and hw.pci.do_power_suspend. I used to have an SL410 that required hw.pci.do_power_suspend=0 If I recall correctly, the fast blinking power light actually is an embedded controller panic. Sleep was a very slow pulsing. Matt From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 12 17:24:33 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 65E0B1C1 for ; Mon, 12 Nov 2012 17:24:33 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout3.yahoo.com (mrout3.yahoo.com [216.145.54.173]) by mx1.freebsd.org (Postfix) with ESMTP id 3FFFB8FC17 for ; Mon, 12 Nov 2012 17:24:33 +0000 (UTC) Received: from [127.0.0.1] (proxy7.corp.yahoo.com [216.145.48.98]) by mrout3.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id qACHOBJF061743 for ; Mon, 12 Nov 2012 09:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1352741052; bh=YWnZledjfzzuGkP5IBWBLNh/JMwfeLbaGkCDz7AREQo=; h=Subject:From:Reply-To:To:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=f6jd6OtnF5DIu2tHTRA0dbRCAsq+0GDFR0phtEUR9+LZPUFuTDeD+kef8l5lv+AQy 0Z6ugjKipLVu+tMtm/vFx1oFi2MN499CSrSMWzYgab+fmCl2SBt2eUONiDhscH2PrK fVTDGgntJTniZgoHcca3GdhhUXErf6WKRzBi+y6w= Subject: RE: Time to increase MAX_TASKS? From: Sean Bruno To: "freebsd-acpi@freebsd.org" In-Reply-To: <1344884070.10417.3.camel@powernoodle.corp.yahoo.com> References: <1342730963.2656.5.camel@powernoodle.corp.yahoo.com> <201208071730.52899.jhb@freebsd.org> <1344382269.18854.22.camel@powernoodle.corp.yahoo.com> <201208080725.24199.jhb@freebsd.org> <1344445163.2813.2.camel@powernoodle.corp.yahoo.com> <94F2FBAB4432B54E8AACC7DFDE6C92E346B49703@ORSMSX101.amr.corp.intel.com> <1344884070.10417.3.camel@powernoodle.corp.yahoo.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 12 Nov 2012 09:24:11 -0800 Message-ID: <1352741051.40922.1.camel@powernoodle> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 741051004 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 17:24:33 -0000 On Mon, 2012-08-13 at 11:54 -0700, Sean Bruno wrote: > > On Wed, 2012-08-08 at 10:23 -0700, Moore, Robert wrote: > > Just FYI, we've seen the AcpiOsExecute task Q get very large if > > There is a GPE flood that results in many, many notify operations. > > > > And in these cases, it was always related to the EC (Embedded Controller). > > > > Bob > > > > > For the time being, and because I don't know what I'm doing, I've bumped > my local freebsd9 version to use (MAX_CPU *2). > > I'm sure this means something horrific is about to happen to me that I > just don't know about yet. > > Sean > This seems to "do the right thing" for now, any objections? Index: acpivar.h =================================================================== --- acpivar.h (revision 242921) +++ acpivar.h (working copy) @@ -476,7 +476,7 @@ /* Default maximum number of tasks to enqueue. */ #ifndef ACPI_MAX_TASKS -#define ACPI_MAX_TASKS 32 +#define ACPI_MAX_TASKS MAX(32, MAXCPU * 2) #endif /* Default number of task queue threads to start. */ From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 12 18:06:41 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 43E909C8; Mon, 12 Nov 2012 18:06:41 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5285E8FC08; Mon, 12 Nov 2012 18:06:39 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA27326; Mon, 12 Nov 2012 20:06:32 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <50A13AA7.4030700@FreeBSD.org> Date: Mon, 12 Nov 2012 20:06:31 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 MIME-Version: 1.0 To: sbruno@FreeBSD.org Subject: Re: Time to increase MAX_TASKS? References: <1342730963.2656.5.camel@powernoodle.corp.yahoo.com> <201208071730.52899.jhb@freebsd.org> <1344382269.18854.22.camel@powernoodle.corp.yahoo.com> <201208080725.24199.jhb@freebsd.org> <1344445163.2813.2.camel@powernoodle.corp.yahoo.com> <94F2FBAB4432B54E8AACC7DFDE6C92E346B49703@ORSMSX101.amr.corp.intel.com> <1344884070.10417.3.camel@powernoodle.corp.yahoo.com> <1352741051.40922.1.camel@powernoodle> In-Reply-To: <1352741051.40922.1.camel@powernoodle> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "freebsd-acpi@freebsd.org" , Sean Bruno X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 18:06:41 -0000 on 12/11/2012 19:24 Sean Bruno said the following: > This seems to "do the right thing" for now, any objections? Nope. Go for it. > Index: acpivar.h > =================================================================== > --- acpivar.h (revision 242921) > +++ acpivar.h (working copy) > @@ -476,7 +476,7 @@ > > /* Default maximum number of tasks to enqueue. */ > #ifndef ACPI_MAX_TASKS > -#define ACPI_MAX_TASKS 32 > +#define ACPI_MAX_TASKS MAX(32, MAXCPU * 2) > #endif > > /* Default number of task queue threads to start. */ > > -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 12 18:21:33 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 25334E47; Mon, 12 Nov 2012 18:21:33 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id B19DE8FC08; Mon, 12 Nov 2012 18:21:32 +0000 (UTC) Received: from SP2-EX07CAS02.ds.corp.yahoo.com (sp2-ex07cas02.corp.sp2.yahoo.com [98.137.59.38]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id qACIB1MG011144 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL); Mon, 12 Nov 2012 10:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1352743862; bh=9lYLP3UQu5gIfEPkIS8f6RA2owkJtbtrqBGvXznlZaA=; h=From:To:CC:Date:Subject:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=uN5/72Zk08DbjNZU4sjUF0ek6vRJG75DupWx78fkO/3vXNVUqJzd11ESXX+ksM+/l BJAfU3eZOHq9m+2QE7aabDLx9p7vY6KFDZaYP5hKz3RfSVgoC2YLH+PiG3nW5esmXD laQ5Nq+psAYR7y4oKQsyW1mV1PnWhspApJmxJGKU= Received: from SP2-EX07VS07.ds.corp.yahoo.com ([98.137.59.26]) by SP2-EX07CAS02.ds.corp.yahoo.com ([98.137.59.38]) with mapi; Mon, 12 Nov 2012 10:11:00 -0800 From: Sean Bruno To: Andriy Gapon Date: Mon, 12 Nov 2012 10:10:29 -0800 Subject: RE: Time to increase MAX_TASKS? Thread-Topic: Time to increase MAX_TASKS? Thread-Index: Ac3BAIss4MIf2kIZSda2+eluWiCKcgAAHRTg Message-ID: <29A69584ADF77C4CA69C00622A6E4C9D25EB7EA710@SP2-EX07VS07.ds.corp.yahoo.com> References: <1342730963.2656.5.camel@powernoodle.corp.yahoo.com> <201208071730.52899.jhb@freebsd.org> <1344382269.18854.22.camel@powernoodle.corp.yahoo.com> <201208080725.24199.jhb@freebsd.org> <1344445163.2813.2.camel@powernoodle.corp.yahoo.com> <94F2FBAB4432B54E8AACC7DFDE6C92E346B49703@ORSMSX101.amr.corp.intel.com> <1344884070.10417.3.camel@powernoodle.corp.yahoo.com> <1352741051.40922.1.camel@powernoodle>,<50A13AA7.4030700@FreeBSD.org> In-Reply-To: <50A13AA7.4030700@FreeBSD.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 743862003 Cc: "freebsd-acpi@freebsd.org" X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 18:21:33 -0000 ________________________________________ From: Andriy Gapon [avg@FreeBSD.org] Sent: Monday, November 12, 2012 10:06 AM To: sbruno@FreeBSD.org Cc: Sean Bruno; freebsd-acpi@freebsd.org Subject: Re: Time to increase MAX_TASKS? on 12/11/2012 19:24 Sean Bruno said the following: > This seems to "do the right thing" for now, any objections? Nope. Go for it. > Index: acpivar.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- acpivar.h (revision 242921) > +++ acpivar.h (working copy) > @@ -476,7 +476,7 @@ > > /* Default maximum number of tasks to enqueue. */ > #ifndef ACPI_MAX_TASKS > -#define ACPI_MAX_TASKS 32 > +#define ACPI_MAX_TASKS MAX(32, MAXCPU * 2) > #endif > > /* Default number of task queue threads to start. */ > > -- Andriy Gapon Done= From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 13 07:13:44 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 65F90BAE for ; Tue, 13 Nov 2012 07:13:44 +0000 (UTC) (envelope-from stefan.horomnea@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id DD80E8FC0C for ; Tue, 13 Nov 2012 07:13:43 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id hm6so2578363wib.13 for ; Mon, 12 Nov 2012 23:13:37 -0800 (PST) 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 :content-type; bh=5uSUSHACBP8ofuTn8/g49Jh36zpKFWLX4LruKIV6Ehw=; b=Fpx81OjxB4LCHkJHxJZrJWfZBFRVNn+yIM4Oq5DNnBKXwf7WXvbeluDK2+NuAIzS1g 3xjCQLSD+S8r+nA9p723aWLMHfPfaymrNHgx7lpHQ5FQXGXwXgBZ+QZJMzFBF9zCt+4B JDo155Qod4cCgC9KglRP/Gu1Qjw4EkGPJUlzuNgQUIvLZ6P3l8p55BLtRvPJYF19Qqbg 8+pVtmyPQ8Jww3ogH1UhKqY7QIRssTDIQcEFwWEUjEMQEHJONTdPz3dJBo/Z44C0/KK8 pV7Fe/9NsQP5kmXDsEDQB62y+BmusgODaTUbg3GncuN1k0SBbmWJbqMLd0DUq30fHs7I Nt8Q== MIME-Version: 1.0 Received: by 10.180.94.41 with SMTP id cz9mr18534764wib.2.1352790817343; Mon, 12 Nov 2012 23:13:37 -0800 (PST) Received: by 10.194.65.70 with HTTP; Mon, 12 Nov 2012 23:13:37 -0800 (PST) In-Reply-To: <50A12DF9.8090107@gmail.com> References: <50A12DF9.8090107@gmail.com> Date: Tue, 13 Nov 2012 08:13:37 +0100 Message-ID: Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad From: Stefan Horomnea To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 07:13:44 -0000 Hi, I have tried with 1 and then 0 to both settings (hw.pci.do_power_suspend and hw.pci.do_power_resume) but with no luck, it does the same. What happens is, after executing the sleep command, I hear a short beep, the power button blinks rapidly three times, and then monitor, hdd, stop, and the power button pulses as you say, at a slow pace, like it went to sleep. But when I wake it, it reboots. Thanks for your suggestion anyway. Any other suggestions ? Stefan On Mon, Nov 12, 2012 at 6:12 PM, matt wrote: > On 11/10/12 11:50, Stefan Horomnea wrote: > > Hi, > > > > I am enthusiastic to have switched recently to FreeBSD on my laptop. I > have > > been using Linux (Fedora, Ubuntu) in the past few years. I am using > FreeBSD > > 9.0 on a ThinkPad L512. > > One of my challenges now is to make again my laptop to sleep and resume > > from sleep correctly. I have read and tried a few things written here: > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.htmlbut > > with no luck. > > What happens is: > > acpiconf -s 3 > > seems to get the job done, the hdd and monitor stop, the power button is > > blinking, so it looks like in the sleep state. > > But after I push the power button, it reboots instead of coming out of > the > > sleep. > > I also tried killing X, unloading some of the kernel modules, and then > run > > the sleep command. But it does the same. > > > > Debug info: > > > > dmesg: http://bit.ly/TSiPCJ > > asl dump: http://bit.ly/RP559M > > > > The files are hosted on dropbox so they are not formatted correctly but > you > > can download them to see them properly. > > > > Any help is much appreciated :) > > > > > > Thank you, > > Stefan > > _______________________________________________ > > 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" > Please try various configurations of hw.pci.do_power_resume and > hw.pci.do_power_suspend. I used to have an SL410 that required > hw.pci.do_power_suspend=0 > > If I recall correctly, the fast blinking power light actually is an > embedded controller panic. Sleep was a very slow pulsing. > > Matt > From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 13 07:55:52 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 C13E6A64 for ; Tue, 13 Nov 2012 07:55:52 +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 883028FC14 for ; Tue, 13 Nov 2012 07:55:52 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id wz12so191266pbc.13 for ; Mon, 12 Nov 2012 23:55:52 -0800 (PST) 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:content-transfer-encoding; bh=Wdts6d6ubKJPWDMHlxEZg5JKQRKhLUJF5I+7YA5JUUs=; b=0BHp/ITvnjeKScsQD/3y8ipsEzZJso7q8WQYwJVqpk1LRv3pViJ21wD0zRv5Wm1tSS 7aN17jAmx+wScckp9+IgmZ/Wu6tB4OP+zpvFgIzkbPBu2Dnl969hAMQNlP2H1NbiQ87E fC7hbS8yPf9M5nyyS10OM9MIBLOaFgHeIJrlNvpYCw2Xg6O8qY2Pva832j3sxwrRFQ+w KL+LRjDEF5fJLw2LtmRvXS/feMzBWFigVqmnePSt3B9qlVSF9/D2bYmelHIx7nw/0FoX o3iWCgFlAehYj7wNoseLQbWhMS4sSue+gs5cLRSXWlbZFqUKHt+Kz5juHjcr1ELQ9lii q6XQ== Received: by 10.66.78.169 with SMTP id c9mr62520234pax.30.1352793352342; Mon, 12 Nov 2012 23:55:52 -0800 (PST) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id j4sm5716775pax.31.2012.11.12.23.55.49 (version=SSLv3 cipher=OTHER); Mon, 12 Nov 2012 23:55:51 -0800 (PST) Message-ID: <50A1FCEC.9020404@gmail.com> Date: Mon, 12 Nov 2012 23:55:24 -0800 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121030 Thunderbird/16.0.2 MIME-Version: 1.0 To: Stefan Horomnea Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad References: <50A12DF9.8090107@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 07:55:53 -0000 On 11/12/12 23:13, Stefan Horomnea wrote: > Hi, > > I have tried with 1 and then 0 to both settings (hw.pci.do_power_suspend > and hw.pci.do_power_resume) but with no luck, it does the same. > What happens is, after executing the sleep command, I hear a short beep, > the power button blinks rapidly three times, and then monitor, hdd, stop, > and the power button pulses as you say, at a slow pace, like it went to > sleep. But when I wake it, it reboots. > > Thanks for your suggestion anyway. Any other suggestions ? > > Stefan > > On Mon, Nov 12, 2012 at 6:12 PM, matt wrote: > > That sounds quite odd...unfortunately I think the L series is only cosmetically similar to the SL series. I gave it away, so I can't test with it anymore to see if it's a recent change. Try debug.acpi.suspend_bounce=1 and try to suspend. This will either work with no problems, work with a lot of kernel printf errors, or reboot. I think the result of that would be interesting. Try debug.acpi.resume_beep=1 (with suspend_bounce cleared) and try again...does it beep before rebooting? With my SL410, I also went into the bios and disabled everything I didn't use (although it didn't help). You could also try sending power_off to usb devices manually with usbconfig, and setting hw.pci.do_power_nodriver=3 debug.acpi.reset_video actually caused a similar problem for me on my x220, so make sure it's off as well (I doubt you have it on, but it's worth a mention given the symptoms) Matt From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 13 08:20:46 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 8767B5B7 for ; Tue, 13 Nov 2012 08:20:46 +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 129E28FC08 for ; Tue, 13 Nov 2012 08:20:46 +0000 (UTC) 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 D349D6A6004; Tue, 13 Nov 2012 09:20:44 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.5/8.14.5) with ESMTP id qAD8KiE7041108; Tue, 13 Nov 2012 09:20:44 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.5/8.14.5/Submit) id qAD8KiVM040255; Tue, 13 Nov 2012 09:20:44 +0100 (CET) (envelope-from lars) Date: Tue, 13 Nov 2012 09:20:44 +0100 From: Lars Engels To: Stefan Horomnea Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad Message-ID: <20121113082044.GB96846@e-new.0x20.net> References: <50A12DF9.8090107@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GRPZ8SYKNexpdSJ7" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.3-RELEASE-p4 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 08:20:46 -0000 --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 13, 2012 at 08:13:37AM +0100, Stefan Horomnea wrote: > Hi, >=20 > I have tried with 1 and then 0 to both settings (hw.pci.do_power_suspend > and hw.pci.do_power_resume) but with no luck, it does the same. > What happens is, after executing the sleep command, I hear a short beep, > the power button blinks rapidly three times, and then monitor, hdd, stop, > and the power button pulses as you say, at a slow pace, like it went to > sleep. But when I wake it, it reboots. >=20 > Thanks for your suggestion anyway. Any other suggestions ? Do you have the latest BIOS? --GRPZ8SYKNexpdSJ7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlCiAtwACgkQKc512sD3afgLbQCcDBogjCFWF7WoZ/Hh6L48/+XT VqgAniihJAERNZ3XoIRL/8WQNN5GobNf =FVjq -----END PGP SIGNATURE----- --GRPZ8SYKNexpdSJ7-- From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 13 15:09:48 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 124891C9; Tue, 13 Nov 2012 15:09:48 +0000 (UTC) (envelope-from Tom.Lislegaard@proact.no) Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe002.messaging.microsoft.com [213.199.154.205]) by mx1.freebsd.org (Postfix) with ESMTP id 528048FC13; Tue, 13 Nov 2012 15:09:46 +0000 (UTC) Received: from mail104-am1-R.bigfish.com (10.3.201.226) by AM1EHSOBE008.bigfish.com (10.3.204.28) with Microsoft SMTP Server id 14.1.225.23; Tue, 13 Nov 2012 15:09:39 +0000 Received: from mail104-am1 (localhost [127.0.0.1]) by mail104-am1-R.bigfish.com (Postfix) with ESMTP id E3ADD3401C6; Tue, 13 Nov 2012 15:09:39 +0000 (UTC) X-Forefront-Antispam-Report: CIP:195.159.75.198; KIP:(null); UIP:(null); IPV:NLI; H:nomtaout01.proact.no; RD:nomtaout01.proact.no; EFVD:NLI X-SpamScore: -3 X-BigFish: VPS-3(zzbb2dI542M1432Izz1de0h1d18h1202h1d1ah1d2ahzz8275dhz2dh668h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0l1155h) Received: from mail104-am1 (localhost.localdomain [127.0.0.1]) by mail104-am1 (MessageSwitch) id 1352819377316256_30371; Tue, 13 Nov 2012 15:09:37 +0000 (UTC) Received: from AM1EHSMHS012.bigfish.com (unknown [10.3.201.241]) by mail104-am1.bigfish.com (Postfix) with ESMTP id 4A1174E003F; Tue, 13 Nov 2012 15:09:37 +0000 (UTC) Received: from nomtaout01.proact.no (195.159.75.198) by AM1EHSMHS012.bigfish.com (10.3.207.112) with Microsoft SMTP Server id 14.1.225.23; Tue, 13 Nov 2012 15:09:35 +0000 Received: from Semail04.proact.local (outside.proact.se [212.214.215.3]) by nomtaout01.proact.no (Postfix) with ESMTP id BFE365DD81; Tue, 13 Nov 2012 16:09:34 +0100 (MET) Received: from SEMAIL03.proact.local ([fe80::a52b:385d:b44f:ecb9]) by Semail04.proact.local ([fe80::885:6e64:c1e6:dcf1%20]) with mapi id 14.02.0318.001; Tue, 13 Nov 2012 16:09:34 +0100 From: Tom Lislegaard To: 'Andriy Gapon' Subject: RE: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_list_unreserve: can't find resource] Thread-Topic: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_list_unreserve: can't find resource] Thread-Index: AQHNvc81+Z+//tujgE2NCdmsWuXGgZfhbFxQgAAIXwCABmv7oA== Date: Tue, 13 Nov 2012 15:09:33 +0000 Message-ID: References: <509172F6.2040400@FreeBSD.org> <5092F209.7090803@FreeBSD.org> <50979BCD.3060000@FreeBSD.org> <5097CB27.8040802@FreeBSD.org> <5097F24D.7040206@FreeBSD.org> <50995C8F.3040309@FreeBSD.org> <509B8F15.4030300@FreeBSD.org> <509BDF86.3080502@FreeBSD.org> <509D091A.8080108@FreeBSD.org> In-Reply-To: <509D091A.8080108@FreeBSD.org> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.7.1.59] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: proact.no Cc: "freebsd-acpi@FreeBSD.org" X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 15:09:48 -0000 > -----Original Message----- > From: Andriy Gapon [mailto:avg@FreeBSD.org] > Sent: 9. november 2012 14:46 > To: Tom Lislegaard > Cc: freebsd-acpi@FreeBSD.org > Subject: Re: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_lis= t_unreserve: can't find > resource] >=20 > on 09/11/2012 14:17 Tom Lislegaard said the following: > > kgdb) up 7 > > #7 0xffffffff802d1bdd in AcpiOsAcquireObject (Cache=3D0xfffffe00052bac= 60) at > /usr/src/sys/contrib/dev/acpica/utilities/utcache.c:316 > > 316 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, > > (kgdb) x/9a Cache->ListHead > > 0xfffffffeec85c730: Cannot access memory at address 0xfffffffeec85c730 >=20 > [Slaps forehead] Ah, right, indeed.on > I guess the problem hasn't happened again since then? > Does the patch appear to work OK so far (with respect to the original pro= blem)? > You're right, I haven't had any occurrence of the 'resource_list_unreserve'= panic since the original patch. The patch below works badly on my system. I notice that certain processes s= tart to hang, for instance during boot I have to interrupt /etc/rc.d/initra= ndom to continue. Xorg also hangs and if I log in on another terminal I see= the process is in processorstate 'acmtx'.=20 The kernel msg buffer is full of messages like this ACPI Error: Could not acquire AML Interpreter mutex (20110527/exutils-107) ACPI Exception: AE_ERROR, Thread 100076 could not acquire Mutex [0x8] (2011= 0527/utmutex-315) ACPI Error: Mutex [0x8] is not acquired, cannot release (20110527/utmutex-3= 59) ACPI Error: Mutex [0x0] is not acquired, cannot release (20110527/utmutex-3= 59) ACPI Error: Could not release AML Interpreter mutex (20110527/exutils-177) -tom > I have a suspicion about what causes the new problem. > If it is correct then the following experimental patch may help with it: >=20 > --- a/sys/contrib/dev/acpica/components/utilities/utdelete.c > +++ b/sys/contrib/dev/acpica/components/utilities/utdelete.c > @@ -415,6 +415,8 @@ AcpiUtUpdateRefCount ( > return; > } >=20 > + (void) AcpiUtAcquireMutex (ACPI_MTX_REFCOUNTS); > + > Count =3D Object->Common.ReferenceCount; > NewCount =3D Count; >=20 > @@ -490,6 +492,8 @@ AcpiUtUpdateRefCount ( > ACPI_WARNING ((AE_INFO, > "Large Reference Count (0x%X) in object %p", Count, Object))= ; > } > + > + (void) AcpiUtReleaseMutex (ACPI_MTX_REFCOUNTS); > } >=20 >=20 >=20 > --- a/sys/contrib/dev/acpica/include/aclocal.h > +++ b/sys/contrib/dev/acpica/include/aclocal.h > @@ -89,8 +89,9 @@ union acpi_parse_object; > #define ACPI_MTX_MEMORY 5 /* Debug memory tracking lis= ts */ > #define ACPI_MTX_DEBUG_CMD_COMPLETE 6 /* AML debugger */ > #define ACPI_MTX_DEBUG_CMD_READY 7 /* AML debugger */ > +#define ACPI_MTX_REFCOUNTS 8 /* ACPI object reference cou= nts */ >=20 > -#define ACPI_MAX_MUTEX 7 > +#define ACPI_MAX_MUTEX 8 > #define ACPI_NUM_MUTEX ACPI_MAX_MUTEX+1 >=20 >=20 >=20 > -- > Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 13 15:14:54 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 3705C507 for ; Tue, 13 Nov 2012 15:14:54 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 710E78FC08 for ; Tue, 13 Nov 2012 15:14:53 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA08627; Tue, 13 Nov 2012 17:14:49 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <50A263E8.2060707@FreeBSD.org> Date: Tue, 13 Nov 2012 17:14:48 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 MIME-Version: 1.0 To: Tom Lislegaard Subject: Re: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_list_unreserve: can't find resource] References: <5092F209.7090803@FreeBSD.org> <50979BCD.3060000@FreeBSD.org> <5097CB27.8040802@FreeBSD.org> <5097F24D.7040206@FreeBSD.org> <50995C8F.3040309@FreeBSD.org> <509B8F15.4030300@FreeBSD.org> <509BDF86.3080502@FreeBSD.org> <509D091A.8080108@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@FreeBSD.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 15:14:54 -0000 on 13/11/2012 17:09 Tom Lislegaard said the following: > > >> -----Original Message----- >> From: Andriy Gapon [mailto:avg@FreeBSD.org] >> Sent: 9. november 2012 14:46 >> To: Tom Lislegaard >> Cc: freebsd-acpi@FreeBSD.org >> Subject: Re: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_list_unreserve: can't find >> resource] >> >> on 09/11/2012 14:17 Tom Lislegaard said the following: >>> kgdb) up 7 >>> #7 0xffffffff802d1bdd in AcpiOsAcquireObject (Cache=0xfffffe00052bac60) at >> /usr/src/sys/contrib/dev/acpica/utilities/utcache.c:316 >>> 316 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, >>> (kgdb) x/9a Cache->ListHead >>> 0xfffffffeec85c730: Cannot access memory at address 0xfffffffeec85c730 >> >> [Slaps forehead] Ah, right, indeed.on >> I guess the problem hasn't happened again since then? >> Does the patch appear to work OK so far (with respect to the original problem)? >> > You're right, I haven't had any occurrence of the 'resource_list_unreserve' panic since the original patch. OK. Good news. Thank you! > The patch below works badly on my system. I notice that certain processes start to hang, for instance during boot I have to interrupt /etc/rc.d/initrandom to continue. Xorg also hangs and if I log in on another terminal I see the process is in processorstate 'acmtx'. Yeah... Please revert it. When I said that it was experimental, I was under-estimating its level of incompleteness :-( I have a better patch, which I tested at least. I'll send it to you soon-ish. > The kernel msg buffer is full of messages like this > > ACPI Error: Could not acquire AML Interpreter mutex (20110527/exutils-107) > ACPI Exception: AE_ERROR, Thread 100076 could not acquire Mutex [0x8] (20110527/utmutex-315) > ACPI Error: Mutex [0x8] is not acquired, cannot release (20110527/utmutex-359) > ACPI Error: Mutex [0x0] is not acquired, cannot release (20110527/utmutex-359) > ACPI Error: Could not release AML Interpreter mutex (20110527/exutils-177) > >> I have a suspicion about what causes the new problem. >> If it is correct then the following experimental patch may help with it: [bad patch snipped] -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 13 23:09:40 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 10014FF5 for ; Tue, 13 Nov 2012 23:09:40 +0000 (UTC) (envelope-from stefan.horomnea@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 8C5508FC13 for ; Tue, 13 Nov 2012 23:09:39 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id x43so4425377wey.13 for ; Tue, 13 Nov 2012 15:09:38 -0800 (PST) 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 :content-type; bh=as/2m3jMptkRzTsJI/gzXsz+uUzNG+dh2VmP8psmSwg=; b=B6Bndzf0Sjo5wGq46/KXILrDE4kCy46e8LRVJubTVx8rExVR977pBsGarJJh9LSc+U ockF4ry9+DpafqSyO56wDokt21pgJmL2q7pAlwALnIqEeUXlgbXFbxrQLrFHqr47Mq7X MPFhw5sWL0ZZ3i8ZIGDsgU/k92z7pcLtIUbWJRkaN/6/u36ebbnpsKDMSYmgLBmFty++ nwynuqcLw45ogNKwJouBZviQAWBVrmAFaBR6fqRf5QjnKGgFE8t5FlEsY29lDGH438Z0 o1plZlqR6VMOZCXvXkQ/+eInpyOi7oT09GgZ2Pz+0x33/pilYQydQcIhULLhEovNe+0G u8UQ== MIME-Version: 1.0 Received: by 10.180.89.234 with SMTP id br10mr22884857wib.2.1352848178583; Tue, 13 Nov 2012 15:09:38 -0800 (PST) Received: by 10.194.65.70 with HTTP; Tue, 13 Nov 2012 15:09:38 -0800 (PST) In-Reply-To: <50A1FCEC.9020404@gmail.com> References: <50A12DF9.8090107@gmail.com> <50A1FCEC.9020404@gmail.com> Date: Wed, 14 Nov 2012 00:09:38 +0100 Message-ID: Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad From: Stefan Horomnea To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 23:09:40 -0000 Hi, Thanks for your suggestions, so I have a couple more tests to try. I have just tried with: sysctl debug.bootverbose=1 sysctl debug.acpi.suspend_bounce=1 And the monitor switches a bit to the terminal, and then gets back to X, so I guess is suppose to do that. How do I get the needed information after that ? Run dmesg ? I just ran dmesg and got: https://www.dropbox.com/s/lro38v935vpnxn6/dmesg-sleep-bounce.txt I really don't know how to read/interpret dmesg messages, so I can't tell what's happening, how the sleep process happens, if it shows why it fails, etc. But I can spot as being errors are some lines like this: ubt0: ubt_intr_read_callback:767: interrupt transfer failed: USB_ERR_STALLED should this be the cause, or other ? I will also try more of the suggested tests below. Thank you, Stefan On Tue, Nov 13, 2012 at 8:55 AM, matt wrote: > On 11/12/12 23:13, Stefan Horomnea wrote: > > Hi, > > > > I have tried with 1 and then 0 to both settings (hw.pci.do_power_suspend > > and hw.pci.do_power_resume) but with no luck, it does the same. > > What happens is, after executing the sleep command, I hear a short beep, > > the power button blinks rapidly three times, and then monitor, hdd, stop, > > and the power button pulses as you say, at a slow pace, like it went to > > sleep. But when I wake it, it reboots. > > > > Thanks for your suggestion anyway. Any other suggestions ? > > > > Stefan > > > > On Mon, Nov 12, 2012 at 6:12 PM, matt wrote: > > > > > That sounds quite odd...unfortunately I think the L series is only > cosmetically similar to the SL series. I gave it away, so I can't test > with it anymore to see if it's a recent change. > > Try debug.acpi.suspend_bounce=1 and try to suspend. This will either > work with no problems, work with a lot of kernel printf errors, or > reboot. I think the result of that would be interesting. > Try debug.acpi.resume_beep=1 (with suspend_bounce cleared) and try > again...does it beep before rebooting? > > With my SL410, I also went into the bios and disabled everything I > didn't use (although it didn't help). You could also try sending > power_off to usb devices manually with usbconfig, and setting > hw.pci.do_power_nodriver=3 > > debug.acpi.reset_video actually caused a similar problem for me on my > x220, so make sure it's off as well (I doubt you have it on, but it's > worth a mention given the symptoms) > > Matt > From owner-freebsd-acpi@FreeBSD.ORG Wed Nov 14 05:01:27 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 4491C3D3 for ; Wed, 14 Nov 2012 05:01:27 +0000 (UTC) (envelope-from 3piWjUAoGDAkq73w-7x3wpzz.lxvo0nnk1m-jlyro0nnk1m.x0p@photos-server.bounces.google.com) Received: from mail-ob0-f202.google.com (mail-ob0-f202.google.com [209.85.214.202]) by mx1.freebsd.org (Postfix) with ESMTP id E86968FC25 for ; Wed, 14 Nov 2012 05:01:26 +0000 (UTC) Received: by mail-ob0-f202.google.com with SMTP id tb18so11349obb.1 for ; Tue, 13 Nov 2012 21:01:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.43.84.4 with SMTP id ai4mt7008729icc.22.1352869286230; Tue, 13 Nov 2012 21:01:26 -0800 (PST) Message-ID: Date: Wed, 14 Nov 2012 05:01:26 +0000 Subject: freight forwarder & logistics provider shared photos with you From: "freight forwarder & logistics provider" To: freebsd-acpi@freebsd.org Content-Type: multipart/mixed; boundary=bcaec517c79a3c091004ce6d6d01 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freight forwarder & logistics provider List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 05:01:27 -0000 --bcaec517c79a3c091004ce6d6d01 Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: base64 RGVhciBNeSBGcmllbmQNCg0KICAgICAgICAgTmljZSBkYXksIEh5dW4gWW91bmcgaXMgYSBsZWFk aW5nIHByb2Zlc3Npb25hbCBmcmVpZ2h0IGZvcndhcmRlciAgDQphbmQgbG9naXN0aWNzIHByb3Zp ZGVyIHdobyBmb2N1cyBvbiB0aGUgc2hpcG1lbnQgZnJvbSBTb3V0aCBDaGluYSB0byBhbGwgIA0K dGhlIHdvcmxkLiBIeXVuIFlvdW5nIHN0YXJ0ZWQgZnJlaWdodCBmb3J3YXJkaW5nIG9wZXJhdGlv biBhdCBTaGVuemhlbiBpbiAgDQoyMDA0LiBCYXNlZCBhdCBTaGVuemhlbiwgb3VyIGFtYml0aW9u IGhhdmUgcHVzaGVkIHVzIGZvcndhcmQgdG8gZXhwYW5kIHRvICANCm90aGVyIGNpdGllcyBpbiBz b3V0aCBvZiBDaGluYS4gTm93IHdlIGhhdmUgY2FwYWNpdHkgb2YgaGFuZGluZyBzaGlwbWVudCB0 byAgDQpvciBmcm9tIGFsbCB0aGUgcG9ydHMgaW4gc291dGggb2YgQ2hpbmEuDQogICAgICAgICAg IEhvbGRzIHdoaWxlIHdob2xlIC0gaGVhcnRlZGx5IGFjaGlldmVzIHRoZSBiZXN0IGVudGVycHJp c2UgIA0Kb2JqZWN0aXZlLCBXaXRoIHRoZSBncmVhdCBzdXBwb3J0IG9mIG91ciBnbG9iYWwgYWdl bmN5LCB3ZSBwcm92aWRlIHNlcnZpY2VzICANCnRvIG91ciBjdXN0b21lcnMgdGhyb3VnaCBwcm9j ZXNzLWRyaXZlbiBvcGVyYXRpb24gdGVhbSwgYWR2YW5jZWQgIA0KaW5mb3JtYXRpb24gc3lzdGVt LCBhbmQgc3Ryb25nIG1hbmFnZW1lbnQgdGVhbS4NCg0KR2xhbmNlIHRvIG91ciBjb21wYW55Og0K MS4JU2VhIEZyZWlnaHQsIGluY2x1ZGVkIEZDTCZMQ0w7DQoyLglBaXIgRnJlaWdodDsNCjMuCUV4 cHJlc3MsIGluY2x1ZGVkIERITCxVUFMsRkVERVgsU0FHQVdBIGFuZCBTQ09SRUpQOw0KNC4JSW1w b3J0ICYgRXhwb3J0Ow0KNS4JTGFuZCBUcmFuc3BvcnRhdGlvbi4NCg0KICAgICAgICAgICBXZSBz ZWVrIG5vIHN0cm9uZ2VzdCBvbmx5IG1vcmUgc3BlY2lhbGl6ZWQsIHNlbmlvci4gWW91ciAgDQpz YXRpc2ZpZWQgd2lsbCBiZSBvdXIgbWF4aW1hbCBwcmlkZS4NCg0KLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LQ0KU2hlbnpoZW4gSHl1biBZb3VuZyBJbnRlcm5hdGlvbmFsIFRyYW5zcG9ydGF0aW9uIENPLixM VEQNCkphY2t5IFlhbmcNCg0KQWRkOiBGbG9vciA3JjgsIFNvdXRoIEJhb5JhbiBSb2FkLCBMdW9o dSBEaXN0cmljdCwgU2hlbnpoZW4sIEd1YW5nZG9uZywgIA0KQ2hpbmEuDQo= --bcaec517c79a3c091004ce6d6d01-- From owner-freebsd-acpi@FreeBSD.ORG Wed Nov 14 11:21:57 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 3D188FB1 for ; Wed, 14 Nov 2012 11:21:57 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 78A618FC14 for ; Wed, 14 Nov 2012 11:21:56 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA21048; Wed, 14 Nov 2012 13:21:52 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1TYb2W-000K3A-Fs; Wed, 14 Nov 2012 13:21:52 +0200 Message-ID: <50A37ECF.1070803@FreeBSD.org> Date: Wed, 14 Nov 2012 13:21:51 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121030 Thunderbird/16.0.2 MIME-Version: 1.0 To: Tom Lislegaard Subject: Re: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_list_unreserve: can't find resource] References: <5092F209.7090803@FreeBSD.org> <50979BCD.3060000@FreeBSD.org> <5097CB27.8040802@FreeBSD.org> <5097F24D.7040206@FreeBSD.org> <50995C8F.3040309@FreeBSD.org> <509B8F15.4030300@FreeBSD.org> <509BDF86.3080502@FreeBSD.org> <509D091A.8080108@FreeBSD.org> <50A263E8.2060707@FreeBSD.org> In-Reply-To: <50A263E8.2060707@FreeBSD.org> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@FreeBSD.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 11:21:57 -0000 on 13/11/2012 17:14 Andriy Gapon said the following: > I have a better patch, which I tested at least. I'll send it to you soon-ish. Here is a tested version of the ref-count patch (still a little bit experimental): http://people.freebsd.org/~avg/acpi-ref-count-exp.diff -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Wed Nov 14 23:18:26 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 D3C4A1C3 for ; Wed, 14 Nov 2012 23:18:26 +0000 (UTC) (envelope-from stefan.horomnea@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 507198FC0C for ; Wed, 14 Nov 2012 23:18:25 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id gg13so1093432lbb.13 for ; Wed, 14 Nov 2012 15:18:25 -0800 (PST) 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=n01iLw6Lxw5oigryIAdnS3hl/yWmc/y7MhOe986CmKA=; b=RukwuiTBWn5ZH/yp9RpB0o6pRgIn4i/wl9DFq/BMzvs2OnkDO3mLv2eRbLq4gbJJpj aHrU/+LccflyQBFMduBa7mHt+C+oyD6C6MgmKnF/fhfNlWo9Fg1JSZsuUWb7cdxBsooz h03j4izfzrbxV380kPcy2nvA9VLPNiuaNNVD1Hu6o9wCaviDyIfxlCiWsenFE8iWGOhl TVq/Os1k3NGUjAg5eraOdjdzrfr/Be7JOLrnhlvh4R+WRacP1R8XKS9i9g4HKG7l2Woo dlcT6QjOsomyoo1mY2qK8JA9zgI+JVryFoC3hOfOaqcXFYvoEo50i9fKF1A5k0s+nAhU 2GgQ== MIME-Version: 1.0 Received: by 10.112.98.37 with SMTP id ef5mr11579998lbb.84.1352935104826; Wed, 14 Nov 2012 15:18:24 -0800 (PST) Received: by 10.114.74.198 with HTTP; Wed, 14 Nov 2012 15:18:24 -0800 (PST) In-Reply-To: <50A1FCEC.9020404@gmail.com> References: <50A12DF9.8090107@gmail.com> <50A1FCEC.9020404@gmail.com> Date: Thu, 15 Nov 2012 00:18:24 +0100 Message-ID: Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad From: Stefan Horomnea To: matt Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 23:18:27 -0000 I have tried the debug.acpi.resume_beep=1 (with suspend_bounce cleared) and, again, it seems to go to sleep (power button pulsing slowly) and when I resume, it hangs completely...blocked with a loud and continuous beep...which I was afraid will make my neighbors call the police and I would have trouble explaining them about the resume_beep flag :) But anyway, now that I know that it is beeping, how does it help me to get further ? In the meantime, I will also try the other tests you suggested. To Lars: I will have to check the BIOS part. Thanks, Stefan On Tue, Nov 13, 2012 at 8:55 AM, matt wrote: > That sounds quite odd...unfortunately I think the L series is only > cosmetically similar to the SL series. I gave it away, so I can't test > with it anymore to see if it's a recent change. > > Try debug.acpi.suspend_bounce=1 and try to suspend. This will either > work with no problems, work with a lot of kernel printf errors, or > reboot. I think the result of that would be interesting. > Try debug.acpi.resume_beep=1 (with suspend_bounce cleared) and try > again...does it beep before rebooting? > > With my SL410, I also went into the bios and disabled everything I > didn't use (although it didn't help). You could also try sending > power_off to usb devices manually with usbconfig, and setting > hw.pci.do_power_nodriver=3 > > debug.acpi.reset_video actually caused a similar problem for me on my > x220, so make sure it's off as well (I doubt you have it on, but it's > worth a mention given the symptoms) > > Matt > From owner-freebsd-acpi@FreeBSD.ORG Thu Nov 15 03:11:14 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 6195A854 for ; Thu, 15 Nov 2012 03:11:14 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9858FC15 for ; Thu, 15 Nov 2012 03:11:13 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id k19so967407qcs.13 for ; Wed, 14 Nov 2012 19:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=4AdnqpP01nnJSJG8on5FBbAfB2rStzgB1DP60Z4pC24=; b=rsfmaJgf+dU+DgBfnAJlELSawCUxxqyJVi4ajxZowTA04JoepfjuZjAfGQLer+1SgB PefUut86nPhG0ZDm5VDsC5CRvMw7PAj/3lVkDRZAJtNsTYX9Ff77pNSzJgDirgiqPCOa D+ESnQh2BiU927grF7K1cin41uko+Hu+zLzbkNMXZzG6aZ1e+b9Ss0Ml8Efh2cKgtabi DYLb8+m3cI9Ntp8MaqoXBUxOXsxMQWBqxVFq1XdPWWP5x0se6OGnhdyx66BPkMP3Gsfl /2XWoak8ddpkmLBKXy6tsy3gBqSv8BuFq/eGyrFFam1tywmO33xqBk8u//ZK5njHYbvO wKig== Received: by 10.49.4.65 with SMTP id i1mr32988805qei.51.1352949073274; Wed, 14 Nov 2012 19:11:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.205.131 with HTTP; Wed, 14 Nov 2012 19:10:32 -0800 (PST) In-Reply-To: References: <50A12DF9.8090107@gmail.com> <50A1FCEC.9020404@gmail.com> From: =?UTF-8?B?5LmU5qWa?= Date: Thu, 15 Nov 2012 11:10:32 +0800 Message-ID: Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad To: Stefan Horomnea Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-acpi X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 03:11:14 -0000 I have the same issue. http://lists.freebsd.org/pipermail/freebsd-acpi/2012-July/007641.html 2012/11/15 Stefan Horomnea > the From owner-freebsd-acpi@FreeBSD.ORG Thu Nov 15 21:48:57 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 109316E6 for ; Thu, 15 Nov 2012 21:48:57 +0000 (UTC) (envelope-from stefan.horomnea@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 914AF8FC16 for ; Thu, 15 Nov 2012 21:48:55 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id 12so43894wgr.31 for ; Thu, 15 Nov 2012 13:48:55 -0800 (PST) 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=Ty4EU1fWE1UOn+pXuqdU/KoFPennMnA1dzz7r5fopjI=; b=QFT93E4OHCuwwNeyvi3HOcrmtBxf3MnURukjFIu3Ky8RTc3h9+dIzfXfEeTHjtrcFU n6KHPU/UsPjTs892Zm+5OlbqimL3Kowv36n0xWnKzWI9IZMzH8Mf8AR+LZnzIWZB07sx JBhvLQrPKpP02JL9SGWmfI9FnxJvcur+ZJoy1nWQtFPl7FfETP/37j1+8J0Y0hx8JSwM ya81Pt+VnfMECQXCXUQq+m2SrhVbInmZYsa9zRhOYDMC6EX2ABlrVB0MOZwaOyY3wQzb 5LRwSwwEBSoazCRoIRPMi9S6Osug7XeaCjoXT+UxfULp9LT/TR8yWE8jyUI3UGeoSbKD YxFA== MIME-Version: 1.0 Received: by 10.180.7.197 with SMTP id l5mr2079563wia.13.1353016134952; Thu, 15 Nov 2012 13:48:54 -0800 (PST) Received: by 10.194.65.70 with HTTP; Thu, 15 Nov 2012 13:48:54 -0800 (PST) In-Reply-To: <20121113082044.GB96846@e-new.0x20.net> References: <50A12DF9.8090107@gmail.com> <20121113082044.GB96846@e-new.0x20.net> Date: Thu, 15 Nov 2012 22:48:54 +0100 Message-ID: Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad From: Stefan Horomnea To: Lars Engels Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 21:48:57 -0000 Hi, After your suggestion, I have searched a bit but found no way so far to update my BIOS on the ThinkPad without having Windows install, in order to run the update they provide on the lenovo website. I used all my partitions for FreeBSD, so I do not space to install Windows. So that would be my last resort. If you guys know how I can update my BIOS without installing Windows, let me know. Until then, I will continue with the other tests. Thank you, Stefan On Tue, Nov 13, 2012 at 9:20 AM, Lars Engels wrote: > On Tue, Nov 13, 2012 at 08:13:37AM +0100, Stefan Horomnea wrote: > > Hi, > > > > I have tried with 1 and then 0 to both settings (hw.pci.do_power_suspend > > and hw.pci.do_power_resume) but with no luck, it does the same. > > What happens is, after executing the sleep command, I hear a short beep, > > the power button blinks rapidly three times, and then monitor, hdd, stop, > > and the power button pulses as you say, at a slow pace, like it went to > > sleep. But when I wake it, it reboots. > > > > Thanks for your suggestion anyway. Any other suggestions ? > > Do you have the latest BIOS? > From owner-freebsd-acpi@FreeBSD.ORG Thu Nov 15 22:54:38 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 8DB74ED8 for ; Thu, 15 Nov 2012 22:54:38 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 54F978FC08 for ; Thu, 15 Nov 2012 22:54:38 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id kp6so1527366pab.13 for ; Thu, 15 Nov 2012 14:54:37 -0800 (PST) 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:x-enigmail-version:content-type :content-transfer-encoding; bh=3/h9QU0zsMAJJvZSdG2ddvLM9gRS9r59StcYXBN4WhM=; b=UsRYU94wrLyTdqnGQ44IYPAPGzjZ1O+OMgtq2AAC6BAopHLutMQsfjAkxMLFaTQUm8 HplOd+S5aQ7kBpG8nMbsOZM2oDkKrjfylziAkU/jfLq3bdahnx8AnCkfwmBk0wl4T5oK WjxaSTNARpaAbeNSCytlUezI6SH0nNA1w/6JWpZTnzX5NEAOS8a8xAcMkRoSspkUUh2O zwVJ0ToR2gh+mCeAWQGkW0liJcdosaz4xQZUxXtlz7Wz0+3WYXPWlU7dLvIyvmr2j+0R l7snDAQCXAvcgEZrVoyalHznkqNUPJOoYl2AShLB7a7vJvfuHIyN3xjCCt4IYVxSXyZ8 lV5A== Received: by 10.66.86.102 with SMTP id o6mr7483549paz.11.1353020077894; Thu, 15 Nov 2012 14:54:37 -0800 (PST) Received: from bakeneko.local (108-213-216-134.lightspeed.sntcca.sbcglobal.net. [108.213.216.134]) by mx.google.com with ESMTPS id na4sm87750pbc.18.2012.11.15.14.54.35 (version=SSLv3 cipher=OTHER); Thu, 15 Nov 2012 14:54:36 -0800 (PST) Message-ID: <50A572A1.5030501@gmail.com> Date: Thu, 15 Nov 2012 14:54:25 -0800 From: matt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121106 Thunderbird/10.0.10 MIME-Version: 1.0 To: Stefan Horomnea Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad References: <50A12DF9.8090107@gmail.com> <20121113082044.GB96846@e-new.0x20.net> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 22:54:38 -0000 On 11/15/12 13:48, Stefan Horomnea wrote: > Hi, > > After your suggestion, I have searched a bit but found no way so far to > update my BIOS on the ThinkPad without having Windows install, in order to > run the update they provide on the lenovo website. I used all my partitions > for FreeBSD, so I do not space to install Windows. So that would be my last > resort. > If you guys know how I can update my BIOS without installing Windows, let > me know. > Until then, I will continue with the other tests. > > Thank you, > Stefan > > Search for the bios bootable cd. It should be available in small print from the Win7 bios update page. Now without a cdrom drive, it gets tricky, I think I was using a perl script I found somewhere called eltorito.pl to extract the disk image and just dd'd that to a usb disk. If you have a CD drive installed, of course it's much easier to just burn the iso using cdrecord...worked like a charm. Matt From owner-freebsd-acpi@FreeBSD.ORG Fri Nov 16 05:42:46 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 BDF925FB for ; Fri, 16 Nov 2012 05:42:46 +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 DA5508FC14 for ; Fri, 16 Nov 2012 05:42:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id qAG5WFti066430; Fri, 16 Nov 2012 16:32:16 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 16 Nov 2012 16:32:15 +1100 (EST) From: Ian Smith To: Stefan Horomnea Subject: Re: Sleep/resume in FreeBSD 9 on a ThinkPad In-Reply-To: Message-ID: <20121116160823.M72475@sola.nimnet.asn.au> References: <50A12DF9.8090107@gmail.com> <50A1FCEC.9020404@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 05:42:46 -0000 On Wed, 14 Nov 2012 00:09:38 +0100, Stefan Horomnea wrote: > Hi, > > Thanks for your suggestions, so I have a couple more tests to try. > I have just tried with: > sysctl debug.bootverbose=1 > sysctl debug.acpi.suspend_bounce=1 > > And the monitor switches a bit to the terminal, and then gets back to X, so > I guess is suppose to do that. How do I get the needed information after > that ? Run dmesg ? > I just ran dmesg and got: > https://www.dropbox.com/s/lro38v935vpnxn6/dmesg-sleep-bounce.txt > I really don't know how to read/interpret dmesg messages, so I can't tell > what's happening, how the sleep process happens, if it shows why it fails, > etc. > But I can spot as being errors are some lines like this: > ubt0: ubt_intr_read_callback:767: interrupt transfer failed: USB_ERR_STALLED > > should this be the cause, or other ? I picked this message out of the whole thread due to seeing this error message. I've also read the thread honestqiao@gmail.com refers to, and in the light of your more recent message about hearing the continuous piercing beep after attempting to resume with debug.acpi.resume_beep=1, I can suggest something you might want to try. I had a similar problem on my older Thinkpad T23 from 8.0 to 8.2, except after (exactly) 60 seconds of waiting, or waiting through the piercing resume beep, it would come good. I presume you've waited at least that long sometimes? In my case it turned out to be an issue with the uhci driver, which was resolved by a) building a kernel without uhci, ohci or ehci (and for USB 3 I expect xhci too) but leaving USB itself otherwise alone. Here: # 7/7/11 test just the theory that uhci causes the 60-second resume stall include GENERIC ident NO_UHCI # load on boot, unload/reload around suspend/resume nodevice uhci # UHCI PCI->USB interface # not used nodevice ohci # OHCI PCI->USB interface # not used, USB 1 only nodevice ehci # EHCI PCI->USB interface (USB 2.0) b) adding to /etc/rc.suspend: # If a device driver has problems suspending, try unloading it before # suspend and reloading it on resume. Example: # kldunload usb #% 9/7/11 it works! kldunload uhci #% 4/11/11 playing with usb 2.0 pccard, uses ehci on ohci kldunload ehci kldunload ohci and c) adding to /etc/rc.resume the complementary: # If a device driver has problems resuming, try unloading it before # suspend and reloading it on resume. Example: # kldload usb #% 9/7/11 it works! kldload uhci #% 4/11/11 playing with usb 2.0 pccard, uses ehci on ohci kldload ohci kldload ehci Now, this was supposed to have been fixed, I thought, but as I'm still happily running 8.2R for my $realwork, I haven't tried again on 9.x, or even 8.3. This could be completely unrelated to your problem - others have mentioned unloading video drivers instead, etc - but seeing you're desperate, it might be worth a try. FWIW, I looked into the resume code, and resume beep, when enabled, is turned on very early in the resume cycle, and cleared upon success, so your stall or hang is for sure occurring while trying to resume. cheers, Ian > I will also try more of the suggested tests below. > > Thank you, > Stefan > > On Tue, Nov 13, 2012 at 8:55 AM, matt wrote: > > > On 11/12/12 23:13, Stefan Horomnea wrote: > > > Hi, > > > > > > I have tried with 1 and then 0 to both settings (hw.pci.do_power_suspend > > > and hw.pci.do_power_resume) but with no luck, it does the same. > > > What happens is, after executing the sleep command, I hear a short beep, > > > the power button blinks rapidly three times, and then monitor, hdd, stop, > > > and the power button pulses as you say, at a slow pace, like it went to > > > sleep. But when I wake it, it reboots. > > > > > > Thanks for your suggestion anyway. Any other suggestions ? > > > > > > Stefan > > > > > > On Mon, Nov 12, 2012 at 6:12 PM, matt wrote: > > > > > > > > That sounds quite odd...unfortunately I think the L series is only > > cosmetically similar to the SL series. I gave it away, so I can't test > > with it anymore to see if it's a recent change. > > > > Try debug.acpi.suspend_bounce=1 and try to suspend. This will either > > work with no problems, work with a lot of kernel printf errors, or > > reboot. I think the result of that would be interesting. > > Try debug.acpi.resume_beep=1 (with suspend_bounce cleared) and try > > again...does it beep before rebooting? > > > > With my SL410, I also went into the bios and disabled everything I > > didn't use (although it didn't help). You could also try sending > > power_off to usb devices manually with usbconfig, and setting > > hw.pci.do_power_nodriver=3 > > > > debug.acpi.reset_video actually caused a similar problem for me on my > > x220, so make sure it's off as well (I doubt you have it on, but it's > > worth a mention given the symptoms) > > > > Matt