From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 00:11:51 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49AD016A4CE for ; Sun, 12 Dec 2004 00:11:51 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD5CE43D3F for ; Sun, 12 Dec 2004 00:11:50 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iBC0BSOa016484; Sat, 11 Dec 2004 17:11:28 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 11 Dec 2004 17:11:47 -0700 (MST) Message-Id: <20041211.171147.70219782.imp@bsdimp.com> To: Alex.Kovalenko@verizon.net From: "M. Warner Losh" In-Reply-To: <1102804150.2640.4.camel@RabbitsDen> References: <1102804150.2640.4.camel@RabbitsDen> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: Keeping PCMCIA card powered while in S3 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 00:11:51 -0000 In message: <1102804150.2640.4.camel@RabbitsDen> "Alexandre \"Sunny\" Kovalenko" writes: : is there any chance to keep PCMCIA firewire card powered when machine : goes into S3 mode, or at least push poweroff as far as possible. The : reason for the question is that I am trying to debug S3 mode and do not : have any other usable means on this laptop. : : Any suggestions, especially RTFMs with FM pointers are welcome. Right now the pccard suspend methods detach the cards. In general, it isn't possible to know if the card is replaced while the system is suspended, and there are some reinitialization issues that doing this "fixes". If you remove the detach from the suspend path, that's a first set. The next step may be to hack whatever driver(s) you are interested in to properly reinitialize. There may be some power issues as well. src/sys/dev/pccard is a good place to start looking. Warner From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 00:17:49 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B693A16A4CE for ; Sun, 12 Dec 2004 00:17:49 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FDD843D31 for ; Sun, 12 Dec 2004 00:17:49 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iBC0Fwcd016555; Sat, 11 Dec 2004 17:15:58 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 11 Dec 2004 17:16:16 -0700 (MST) Message-Id: <20041211.171616.64807335.imp@bsdimp.com> To: nate@root.org From: "M. Warner Losh" In-Reply-To: <41BB83F6.4010309@root.org> References: <1102804150.2640.4.camel@RabbitsDen> <41BB83F6.4010309@root.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: Keeping PCMCIA card powered while in S3 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 00:17:49 -0000 In message: <41BB83F6.4010309@root.org> Nate Lawson writes: : Alexandre "Sunny" Kovalenko wrote: : > Good people, : > : > is there any chance to keep PCMCIA firewire card powered when machine : > goes into S3 mode, or at least push poweroff as far as possible. The : > reason for the question is that I am trying to debug S3 mode and do not : > have any other usable means on this laptop. : > : > Any suggestions, especially RTFMs with FM pointers are welcome. : > : : We currently don't power down cardbus (PCMCIA) busses but we do power : down the card itself. Setting hw.pci.do_powerstate=0 before suspending : (or in /boot/loader.conf) should stop all PCI power state setting : (including cardbus which is just another pci-like bridge). I thought that we did power off cardbus cards: static int cardbus_suspend(device_t self) { cardbus_detach_card(self); return (0); } which has the side effects of turning off the card entirely. Warner From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 03:08:54 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9048B16A4CE for ; Sun, 12 Dec 2004 03:08:54 +0000 (GMT) Received: from muse.clarku.edu (calliope.clarku.edu [140.232.1.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id E777C43D58 for ; Sun, 12 Dec 2004 03:08:53 +0000 (GMT) (envelope-from ipartola@pisem.net) Received: from [140.232.148.83] (thalia.clarku.edu [140.232.1.65]) by muse.clarku.edu (Postfix) with ESMTP id 4271A1C9047; Sat, 11 Dec 2004 22:08:53 -0500 (EST) Message-ID: <41BBB645.3010500@pisem.net> Date: Sat, 11 Dec 2004 22:08:53 -0500 From: Igor Partola User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson , freebsd-acpi@freebsd.org References: <41BA85A0.3050206@pisem.net> <41BB4DC4.6090901@root.org> In-Reply-To: <41BB4DC4.6090901@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Dell Inspiron 8600 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 03:08:54 -0000 Nate Lawson wrote: > > Yes, this is a deficiency in the current usermode interface. If you > look at my web page, I have a description of how to fix this if > someone wants to do it. It includes implementing the /dev/apm > suspend/standby compatibility ioctls including a timeout interface. > See the "Implement X suspend/resume notification" section below. > > http://www.root.org/~nate/freebsd/acpi-todo.html > That's a deficiency in the X server though isn't it? Without X running this fix would do no good. I thought the problem was in either the kernel ACPI implementation or in devd. I do not claim to be in any degree an expert in this though since I am not at all familiar with the inner workings of either. I'm just trying to set up this laptop to work nicely with FreeBSD. :). Respect, Igor From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 05:55:12 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ED9916A4CE for ; Sun, 12 Dec 2004 05:55:12 +0000 (GMT) Received: from ylpvm29.prodigy.net (ylpvm29-ext.prodigy.net [207.115.57.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13EAE43D39 for ; Sun, 12 Dec 2004 05:55:12 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.50] (adsl-64-171-186-123.dsl.snfc21.pacbell.net [64.171.186.123])iBC5t6HD010704; Sun, 12 Dec 2004 00:55:06 -0500 Message-ID: <41BBDD38.2010203@root.org> Date: Sat, 11 Dec 2004 21:55:04 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041205) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "M. Warner Losh" References: <1102804150.2640.4.camel@RabbitsDen> <41BB83F6.4010309@root.org> <20041211.171616.64807335.imp@bsdimp.com> In-Reply-To: <20041211.171616.64807335.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: Keeping PCMCIA card powered while in S3 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 05:55:12 -0000 M. Warner Losh wrote: > In message: <41BB83F6.4010309@root.org> > Nate Lawson writes: > : Alexandre "Sunny" Kovalenko wrote: > : > Good people, > : > > : > is there any chance to keep PCMCIA firewire card powered when machine > : > goes into S3 mode, or at least push poweroff as far as possible. The > : > reason for the question is that I am trying to debug S3 mode and do not > : > have any other usable means on this laptop. > : > > : > Any suggestions, especially RTFMs with FM pointers are welcome. > : > > : > : We currently don't power down cardbus (PCMCIA) busses but we do power > : down the card itself. Setting hw.pci.do_powerstate=0 before suspending > : (or in /boot/loader.conf) should stop all PCI power state setting > : (including cardbus which is just another pci-like bridge). > > I thought that we did power off cardbus cards: > > static int > cardbus_suspend(device_t self) > { > cardbus_detach_card(self); > return (0); > } > > which has the side effects of turning off the card entirely. Sorry, I was wrong. I was looking at this from a pure pci_suspend() perspective. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 05:59:28 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5651E16A4CE for ; Sun, 12 Dec 2004 05:59:28 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0797643D77 for ; Sun, 12 Dec 2004 05:59:28 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.50] (adsl-64-171-186-123.dsl.snfc21.pacbell.net [64.171.186.123])iBC5xWsV020834; Sun, 12 Dec 2004 00:59:33 -0500 Message-ID: <41BBDE39.6020101@root.org> Date: Sat, 11 Dec 2004 21:59:21 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041205) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Igor Partola References: <41BA85A0.3050206@pisem.net> <41BB4DC4.6090901@root.org> <41BBB645.3010500@pisem.net> In-Reply-To: <41BBB645.3010500@pisem.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: Dell Inspiron 8600 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 05:59:28 -0000 Igor Partola wrote: > Nate Lawson wrote: > >> >> Yes, this is a deficiency in the current usermode interface. If you >> look at my web page, I have a description of how to fix this if >> someone wants to do it. It includes implementing the /dev/apm >> suspend/standby compatibility ioctls including a timeout interface. >> See the "Implement X suspend/resume notification" section below. >> >> http://www.root.org/~nate/freebsd/acpi-todo.html >> > That's a deficiency in the X server though isn't it? Without X running > this fix would do no good. I thought the problem was in either the > kernel ACPI implementation or in devd. > > I do not claim to be in any degree an expert in this though since I am > not at all familiar with the inner workings of either. I'm just trying > to set up this laptop to work nicely with FreeBSD. :). If I hook up suspend/resume events to just go out devd, there's no guarantee your usermode code would get run before the system suspends since devd is not blocking. By implementing the ioctl, we could depend on apmd running rc.suspend/resume before allowing the requested action to continue. It has the side effect that another usermode program (X), can also sit blocking the suspend path but multiple control programs (apmd, X) would require device cloning or BPF-style /dev/apm0, 1, 2, ... and the kernel would not be allowed to suspend until everyone voted "yes". As you can see, this requires some thinking and implementation work and I'd be happy if someone wanted to do it. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 06:22:56 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9091A16A4CE for ; Sun, 12 Dec 2004 06:22:56 +0000 (GMT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A10A43D41 for ; Sun, 12 Dec 2004 06:22:56 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id iBC6MtOJ014891; Sun, 12 Dec 2004 00:22:55 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <41BBE3BE.8090201@centtech.com> Date: Sun, 12 Dec 2004 00:22:54 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041110 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <20041208095845.GA896@galgenberg.net> <41B76AF2.3040204@root.org> <20041210180446.GA768@galgenberg.net> <41B9EE4E.8030703@root.org> <20041210205417.GB768@galgenberg.net> <41BB5146.1080102@root.org> In-Reply-To: <41BB5146.1080102@root.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: suspend/resume improved? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 06:22:56 -0000 Nate Lawson wrote: > Ulrich Spoerlein wrote: > >> On Fri, 10.12.2004 at 10:43:26 -0800, Nate Lawson wrote: >> >>>> Line 444 is the culprit: >>>> ACPI_FLUSH_CPU_CACHE (); >>>> >>>> Status = AcpiHwRegisterWrite (ACPI_MTX_DO_NOT_LOCK, >>>> ACPI_REGISTER_PM1A_CONTROL, PM1AControl); >>>> if (ACPI_FAILURE (Status)) >>>> { >>>> return_ACPI_STATUS (Status); >>>> } >>>> >>>> Putting the loop before AcpiHwRegisterWrite will enter infinite loop, >>>> putting it after it -> Reset >>> >>> >>> Interesting. If you add a "DELAY(10000);" before the register write, >>> does this help? A more likely issue is that we need to write pm1a/b >>> at the same time. Let me think about this and get you more info later. >> >> >> >> It "looks" like the delay does nothing, however I noticed that all three >> LEDs (num/scroll/caps lock) were lighting up for 1-2s. >> >> I then swapped pm1a and pm1b, but nothing changed. > > > That's not quite what I meant. The acpi-ca code splits the write of > SLP_TYP and SLP_EN into two separate writes. I suspect some BIOSes > don't like this. Try the attached patch that combines them. I just tried this patch (my laptop is having similar responses) - no change. I'm off to adding some manual debug code to the acpi source files you mentioned in an earlier email. I can't seem to find Warner's beep code patch though - do you have a pointer? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology When in doubt, mumble; when in trouble, delegate; when in charge, ponder ------------------------------------------------------------------------ From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 06:28:25 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6589516A4CE for ; Sun, 12 Dec 2004 06:28:25 +0000 (GMT) Received: from ylpvm29.prodigy.net (ylpvm29-ext.prodigy.net [207.115.57.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 150F843D5D for ; Sun, 12 Dec 2004 06:28:25 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.50] (adsl-64-171-186-123.dsl.snfc21.pacbell.net [64.171.186.123])iBC6SKHD003881; Sun, 12 Dec 2004 01:28:20 -0500 Message-ID: <41BBE502.8020306@root.org> Date: Sat, 11 Dec 2004 22:28:18 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041205) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <20041208095845.GA896@galgenberg.net> <41B76AF2.3040204@root.org> <20041210180446.GA768@galgenberg.net> <41B9EE4E.8030703@root.org> <20041210205417.GB768@galgenberg.net> <41BB5146.1080102@root.org> <41BBE3BE.8090201@centtech.com> In-Reply-To: <41BBE3BE.8090201@centtech.com> Content-Type: multipart/mixed; boundary="------------040000090002020704050907" cc: acpi@freebsd.org Subject: Re: suspend/resume improved? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 06:28:25 -0000 This is a multi-part message in MIME format. --------------040000090002020704050907 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Eric Anderson wrote: > I just tried this patch (my laptop is having similar responses) - no > change. I'm off to adding some manual debug code to the acpi source > files you mentioned in an earlier email. > > I can't seem to find Warner's beep code patch though - do you have a > pointer? I dug this out of Warner's p4 tree, as written by Takanori Watanabe (attached). I'll commit this at some point under a kernel option so it can be enabled for testing. For now, just use the patch. -- Nate --------------040000090002020704050907 Content-Type: text/plain; name="beep.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="beep.diff" Index: sys/i386/acpica/acpi_wakecode.S =================================================================== RCS file: /home/ncvs/src/sys/i386/acpica/acpi_wakecode.S,v retrieving revision 1.9 diff -u -r1.9 acpi_wakecode.S --- sys/i386/acpica/acpi_wakecode.S 1 Jan 2004 22:57:22 -0000 1.9 +++ sys/i386/acpica/acpi_wakecode.S 12 Dec 2004 06:26:15 -0000 @@ -33,12 +33,20 @@ #include #include +#define BEEP movb $0xc0, %al ; \ + outb %al, $0x42 ; \ + movb $0x01, %al ; \ + outb %al, $0x42 ; \ + inb $0x61, %al ; \ + orb $0x3, %al ; \ + outb %al, $0x61 ; \ + .align 4 .code16 wakeup_16: nop cli - + BEEP /* * Set up segment registers for real mode and a small stack for * any calls we make. --------------040000090002020704050907-- From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 07:00:00 2004 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB79516A4CE; Sun, 12 Dec 2004 07:00:00 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B562D43D5A; Sun, 12 Dec 2004 07:00:00 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBC700lT028099; Sun, 12 Dec 2004 07:00:00 GMT (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBC7004q028095; Sun, 12 Dec 2004 07:00:00 GMT (envelope-from njl) Date: Sun, 12 Dec 2004 07:00:00 GMT From: Nate Lawson Message-Id: <200412120700.iBC7004q028095@freefall.freebsd.org> To: rehsack@liwing.de, njl@FreeBSD.org, freebsd-acpi@FreeBSD.org Subject: Re: kern/53008: [PATCH] genwakecode generates errornously define for undefined constant X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 07:00:01 -0000 Synopsis: [PATCH] genwakecode generates errornously define for undefined constant State-Changed-From-To: open->closed State-Changed-By: njl State-Changed-When: Sun Dec 12 06:59:23 GMT 2004 State-Changed-Why: I committed this although it makes no difference in our current code generation. Thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=53008 From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 11:50:47 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 564A616A4CE for ; Sun, 12 Dec 2004 11:50:47 +0000 (GMT) Received: from smtp1.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16B1843D39 for ; Sun, 12 Dec 2004 11:50:47 +0000 (GMT) (envelope-from aurelien.nephtali@wanadoo.fr) Received: from me-wanadoo.net (reject.steria.net [127.0.0.1]) by mwinf0106.wanadoo.fr (SMTP Server) with SMTP id F01271C0015C; Sun, 12 Dec 2004 12:50:45 +0100 (CET) Received: from [192.168.2.30] (ca-sqy-11-40.w80-8.abo.wanadoo.fr [80.8.64.40]) by mwinf0106.wanadoo.fr (SMTP Server) with ESMTP id 93C0C1C00156; Sun, 12 Dec 2004 12:50:45 +0100 (CET) Message-ID: <41BC3094.6040302@wanadoo.fr> Date: Sun, 12 Dec 2004 12:50:44 +0100 From: Aurelien Nephtali User-Agent: Mozilla Thunderbird 0.9 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <41B554B1.7070508@wanadoo.fr> <41B5CFDB.4090203@root.org> In-Reply-To: <41B5CFDB.4090203@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: suspend/resume improved? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 11:50:47 -0000 Nate Lawson wrote: > > The beep code is very heavy-handed. It just writes directly to the > speaker port in real mode so it really doesn't matter what devices you > have configured. That's why it's for debug only. Warner, could you > commit the patch under an appropriate kernel option (ACPI_DEBUG_BEEP or > something)? > I've tested with a minimal kernel, a minimal HW config and with the beep code and there is not beep and it still does not resume :/ What more can I do ? Thanks. -- NEPHTALI 'dak' Aurelien From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 21:37:03 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CD2F16A4CE for ; Sun, 12 Dec 2004 21:37:03 +0000 (GMT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B77F843D5D for ; Sun, 12 Dec 2004 21:37:02 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id iBCLavOJ081875; Sun, 12 Dec 2004 15:37:01 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <41BCB9F7.9090705@centtech.com> Date: Sun, 12 Dec 2004 15:36:55 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041110 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <20041208095845.GA896@galgenberg.net> <41B76AF2.3040204@root.org> <20041210180446.GA768@galgenberg.net> <41B9EE4E.8030703@root.org> <20041210205417.GB768@galgenberg.net> <41BB5146.1080102@root.org> <41BBE3BE.8090201@centtech.com> <41BBE502.8020306@root.org> In-Reply-To: <41BBE502.8020306@root.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: suspend/resume improved? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 21:37:03 -0000 Nate Lawson wrote: > Eric Anderson wrote: > >> I just tried this patch (my laptop is having similar responses) - no >> change. I'm off to adding some manual debug code to the acpi source >> files you mentioned in an earlier email. >> >> I can't seem to find Warner's beep code patch though - do you have a >> pointer? > > > I dug this out of Warner's p4 tree, as written by Takanori Watanabe > (attached). I'll commit this at some point under a kernel option so it > can be enabled for testing. For now, just use the patch. Thanks - I'll play with this. So far, what I've found is that my machine reboots executing this line: Status = AcpiHwRegisterWrite (ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1A_CONTROL, PM1AControl); in: src/sys/contrib/dev/acpica/hwsleep.c What's the next step? Should I bother going through the case statements in hwregs.c to see if I can nail what's doing it, or do you maybe have some hints? It's painfully slow rebuilding kernels and testing them each time.. :) Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology When in doubt, mumble; when in trouble, delegate; when in charge, ponder ------------------------------------------------------------------------ From owner-freebsd-acpi@FreeBSD.ORG Sun Dec 12 22:16:28 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC11B16A504 for ; Sun, 12 Dec 2004 22:16:28 +0000 (GMT) Received: from vanadium.mailguard.com.au (vanadium.mailguard.com.au [66.235.184.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FB8243D48 for ; Sun, 12 Dec 2004 22:16:26 +0000 (GMT) (envelope-from alerts@bounces.mailguard.com.au) Received: from localhost (vanadium.mailguard.com.au [127.0.0.1]) by vanadium.mailguard.com.au (Postfix) with ESMTP id AC953200150 for ; Mon, 13 Dec 2004 09:12:24 +1100 (EST) MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) From: MailGuard Content Filter To: freebsd-acpi@freebsd.org Message-Id: <20041212221224.AC953200150@vanadium.mailguard.com.au> Date: Mon, 13 Dec 2004 09:12:24 +1100 (EST) Content-Type: text/plain Content-Transfer-Encoding: binary Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: Mail Delivery (failure gm@eastlakegolfclub.com.au) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: support@mailguard.com.au List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 22:16:28 -0000 MAILGUARD(R) E-MAIL FILTER ALERT Date: December 13 2004, 9:12AM From: freebsd-acpi@freebsd.org To: gm@eastlakegolfclub.com.au Subject: Mail Delivery (failure gm@eastlakegolfclub.com.au) Size: 61.7 KB This message has been DELETED by the MailGuard service for the following reason: The message contains the W32/Flcss virus. ---------- Regards, MailGuard E-mail Anti-Virus, Anti-Spam and Content Filtering Service. http://www.mailguard.com.au From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 09:11:58 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D05616A4CE for ; Mon, 13 Dec 2004 09:11:58 +0000 (GMT) Received: from muse.clarku.edu (calliope.clarku.edu [140.232.1.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A7843D5E for ; Mon, 13 Dec 2004 09:11:57 +0000 (GMT) (envelope-from ipartola@pisem.net) Received: from [140.232.148.83] (thalia.clarku.edu [140.232.1.65]) by muse.clarku.edu (Postfix) with ESMTP id 260C51D702D; Mon, 13 Dec 2004 04:02:24 -0500 (EST) Message-ID: <41BD5AA2.6010902@pisem.net> Date: Mon, 13 Dec 2004 04:02:26 -0500 From: Igor Partola User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson , freebsd-acpi@freebsd.org References: <41BA85A0.3050206@pisem.net> <41BB4DC4.6090901@root.org> <41BBB645.3010500@pisem.net> <41BBDE39.6020101@root.org> In-Reply-To: <41BBDE39.6020101@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Dell Inspiron 8600 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 09:11:58 -0000 Nate Lawson wrote: > Igor Partola wrote: > >> Nate Lawson wrote: >> >>> >>> Yes, this is a deficiency in the current usermode interface. If you >>> look at my web page, I have a description of how to fix this if >>> someone wants to do it. It includes implementing the /dev/apm >>> suspend/standby compatibility ioctls including a timeout interface. >>> See the "Implement X suspend/resume notification" section below. >>> >>> http://www.root.org/~nate/freebsd/acpi-todo.html >>> >> That's a deficiency in the X server though isn't it? Without X >> running this fix would do no good. I thought the problem was in >> either the kernel ACPI implementation or in devd. >> >> I do not claim to be in any degree an expert in this though since I >> am not at all familiar with the inner workings of either. I'm just >> trying to set up this laptop to work nicely with FreeBSD. :). > > > If I hook up suspend/resume events to just go out devd, there's no > guarantee your usermode code would get run before the system suspends > since devd is not blocking. By implementing the ioctl, we could > depend on apmd running rc.suspend/resume before allowing the requested > action to continue. It has the side effect that another usermode > program (X), can also sit blocking the suspend path but multiple > control programs (apmd, X) would require device cloning or BPF-style > /dev/apm0, 1, 2, ... and the kernel would not be allowed to suspend > until everyone voted "yes". As you can see, this requires some > thinking and implementation work and I'd be happy if someone wanted to > do it. > I really wish I could help with this... but programming is more of a hobby for me and after I looked at the bsd_apm.c and other stuff I still have very little (more like theoretical) idea of how to implement this. Is there some kind of a manual on FreeBSD kernel/ACPI hacking that I should read to make things more clear? Aparently knowing some C just isn't enough to write my own code but if there is any material that would help, I'm ready to read it (a couple of times of course). Respect, Igor From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 11:02:10 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B82C616A4CE for ; Mon, 13 Dec 2004 11:02:10 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8C2843D58 for ; Mon, 13 Dec 2004 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBDB2AKe075041 for ; Mon, 13 Dec 2004 11:02:10 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBDB29NF075035 for freebsd-acpi@freebsd.org; Mon, 13 Dec 2004 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 13 Dec 2004 11:02:09 GMT Message-Id: <200412131102.iBDB29NF075035@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 11:02:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/22] i386/54756 acpi ACPI suspend/resume problem on CF-W2 lapt o [2003/08/17] i386/55661 acpi ACPI suspend/resume problem on ARMADA M70 o [2003/08/20] kern/55822 acpi No ACPI power off with SMP kernel o [2003/08/27] kern/56024 acpi ACPI suspend drains battery while in S3 o [2003/09/03] i386/56372 acpi acpi don't work on TYAN tiger100 M/B f [2003/09/10] kern/56659 acpi ACPI trouble on IBM ThinkPad X31 f [2003/12/17] i386/60317 acpi FreeBSD 5.2rc1 doesn't boot with ACPI ena o [2004/03/09] i386/64002 acpi acpi problem o [2004/05/27] i386/67273 acpi [hang] system hangs with acpi and Xfree o [2004/10/12] i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Arma 10 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2004/01/22] i386/61703 acpi ACPI + Sound + Boot = Reboot o [2004/03/17] kern/64365 acpi ACPI problems f [2004/05/25] i386/67189 acpi ACPI S3 reboot computer on Dell Latitude o [2004/05/28] kern/67309 acpi zzz reboot computer (ACPI S3) f [2004/06/23] i386/68219 acpi ACPI + snd_maestro3 problem o [2004/07/29] i386/69750 acpi Boot without ACPI failed on ASUS L5 6 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 17:42:39 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F75416A4CE for ; Mon, 13 Dec 2004 17:42:39 +0000 (GMT) Received: from muse.clarku.edu (calliope.clarku.edu [140.232.1.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D2A243D3F for ; Mon, 13 Dec 2004 17:42:38 +0000 (GMT) (envelope-from ipartola@clarku.edu) Received: from [140.232.148.83] (thalia.clarku.edu [140.232.1.65]) by muse.clarku.edu (Postfix) with ESMTP id 8FE3A1D7557 for ; Mon, 13 Dec 2004 12:41:04 -0500 (EST) Message-ID: <41BDD431.1010702@clarku.edu> Date: Mon, 13 Dec 2004 12:41:05 -0500 From: Igor Partola User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Soundcard powerdown X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 17:42:39 -0000 Good time of day, I found an interesting feature under the Windows installation on my laptop. It seems that when there is no sound playing the soundcard is shut off. I'm not sure how much power this would save but it is interesting that this is possible. Maybe this could appear on a distant wishlist. Respect, Igor From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 18:21:25 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D6AE16A4CE for ; Mon, 13 Dec 2004 18:21:25 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F5F043D1D for ; Mon, 13 Dec 2004 18:21:24 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id iBDILFAm009190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 13 Dec 2004 10:21:20 -0800 Message-ID: <41BDDD93.4020308@root.org> Date: Mon, 13 Dec 2004 10:21:07 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Igor Partola References: <41BDD431.1010702@clarku.edu> In-Reply-To: <41BDD431.1010702@clarku.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: Soundcard powerdown X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 18:21:25 -0000 Igor Partola wrote: > Good time of day, > > I found an interesting feature under the Windows installation on my > laptop. It seems that when there is no sound playing the soundcard is > shut off. I'm not sure how much power this would save but it is > interesting that this is possible. Maybe this could appear on a distant > wishlist. That would need to be built into the sound card driver (or snd mid-layer). All it would have to do is call pci_set_powerstate(dev, ...D3) on attach and then set it to D0 before beginning playback. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 19:06:14 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05D0A16A4CE for ; Mon, 13 Dec 2004 19:06:14 +0000 (GMT) Received: from svm.csie.ntu.edu.tw (svm.csie.ntu.edu.tw [140.112.90.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42B2B43D41 for ; Mon, 13 Dec 2004 19:06:13 +0000 (GMT) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (localhost.csie.ntu.edu.tw [127.0.0.1]) by svm.csie.ntu.edu.tw (8.13.1/8.13.1) with ESMTP id iBDJ69PA082050 for ; Tue, 14 Dec 2004 03:06:09 +0800 (CST) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: (from rafan@localhost) by svm.csie.ntu.edu.tw (8.13.1/8.13.1/Submit) id iBDJ6449082049 for acpi@freebsd.org; Tue, 14 Dec 2004 03:06:04 +0800 (CST) (envelope-from rafan) Date: Tue, 14 Dec 2004 03:06:04 +0800 From: Rong-En Fan To: acpi@freebsd.org Message-ID: <20041213190604.GA81993@svm.csie.ntu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: current powerstate and manually turn on/off? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 19:06:14 -0000 Hello, By using sysctl, I do know what's the current powerstate of each device. I wounder is there any command or sysctl that can manually turn device on or off? Regards, Rong-En Fan From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 19:15:28 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3554616A4CE for ; Mon, 13 Dec 2004 19:15:28 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF2EE43D46 for ; Mon, 13 Dec 2004 19:15:27 +0000 (GMT) (envelope-from imp@harmony.village.org) Received: from localhost (localhost [IPv6:::1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iBDJCXdu081586; Mon, 13 Dec 2004 12:12:33 -0700 (MST) (envelope-from imp@harmony.village.org) Date: Mon, 13 Dec 2004 12:12:33 -0700 (MST) Message-Id: <20041213.121233.104111469.imp@harmony.village.org> To: rafan@infor.org From: Warner Losh In-Reply-To: <20041213190604.GA81993@svm.csie.ntu.edu.tw> References: <20041213190604.GA81993@svm.csie.ntu.edu.tw> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: current powerstate and manually turn on/off? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 19:15:28 -0000 > By using sysctl, I do know what's the current powerstate > of each device. I wounder is there any command or sysctl > that can manually turn device on or off? Not really, no. Warner From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 20:08:13 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6152616A4CE for ; Mon, 13 Dec 2004 20:08:13 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 245C843D2D for ; Mon, 13 Dec 2004 20:08:13 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id iBDK88ug001377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 13 Dec 2004 12:08:09 -0800 Message-ID: <41BDF6A7.3040702@root.org> Date: Mon, 13 Dec 2004 12:08:07 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Warner Losh References: <20041213190604.GA81993@svm.csie.ntu.edu.tw> <20041213.121233.104111469.imp@harmony.village.org> In-Reply-To: <20041213.121233.104111469.imp@harmony.village.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org cc: rafan@infor.org Subject: Re: current powerstate and manually turn on/off? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 20:08:13 -0000 Warner Losh wrote: >>By using sysctl, I do know what's the current powerstate >>of each device. I wounder is there any command or sysctl >>that can manually turn device on or off? > > > Not really, no. I think this is something the drivers should handle and we don't need to add user access to power states since it's probably the biggest way to shoot yourself in the foot. We already power down devices with no driver attached and once drivers get smart about powering down devices that are idle, this would cover all scenarios. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 20:12:32 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C63FF16A4CE for ; Mon, 13 Dec 2004 20:12:32 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7010443D39 for ; Mon, 13 Dec 2004 20:12:32 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iBDKAq5L082351; Mon, 13 Dec 2004 13:10:52 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 13 Dec 2004 13:10:52 -0700 (MST) Message-Id: <20041213.131052.42773193.imp@bsdimp.com> To: nate@root.org From: "M. Warner Losh" In-Reply-To: <41BDF6A7.3040702@root.org> References: <20041213190604.GA81993@svm.csie.ntu.edu.tw> <20041213.121233.104111469.imp@harmony.village.org> <41BDF6A7.3040702@root.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: acpi@FreeBSD.ORG cc: rafan@infor.org Subject: Re: current powerstate and manually turn on/off? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 20:12:32 -0000 In message: <41BDF6A7.3040702@root.org> Nate Lawson writes: : Warner Losh wrote: : >>By using sysctl, I do know what's the current powerstate : >>of each device. I wounder is there any command or sysctl : >>that can manually turn device on or off? : > : > : > Not really, no. : : I think this is something the drivers should handle and we don't need to : add user access to power states since it's probably the biggest way to : shoot yourself in the foot. We already power down devices with no : driver attached and once drivers get smart about powering down devices : that are idle, this would cover all scenarios. It would be nice to have a way to say "This is a really strong hint that you are now idle, go to lowest power, highest latency to get out of it mode." Warner From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 20:17:13 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B533916A4DD for ; Mon, 13 Dec 2004 20:17:13 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7499D43D53 for ; Mon, 13 Dec 2004 20:17:13 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id iBDKHBug001807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 13 Dec 2004 12:17:11 -0800 Message-ID: <41BDF8C6.4030607@root.org> Date: Mon, 13 Dec 2004 12:17:10 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "M. Warner Losh" References: <20041213190604.GA81993@svm.csie.ntu.edu.tw> <20041213.121233.104111469.imp@harmony.village.org> <41BDF6A7.3040702@root.org> <20041213.131052.42773193.imp@bsdimp.com> In-Reply-To: <20041213.131052.42773193.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@FreeBSD.ORG cc: rafan@infor.org Subject: Re: current powerstate and manually turn on/off? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 20:17:13 -0000 M. Warner Losh wrote: > In message: <41BDF6A7.3040702@root.org> > Nate Lawson writes: > : Warner Losh wrote: > : >>By using sysctl, I do know what's the current powerstate > : >>of each device. I wounder is there any command or sysctl > : >>that can manually turn device on or off? > : > > : > > : > Not really, no. > : > : I think this is something the drivers should handle and we don't need to > : add user access to power states since it's probably the biggest way to > : shoot yourself in the foot. We already power down devices with no > : driver attached and once drivers get smart about powering down devices > : that are idle, this would cover all scenarios. > > It would be nice to have a way to say "This is a really strong hint > that you are now idle, go to lowest power, highest latency to get out > of it mode." I believe the driver itself has best knowledge of this, based on refcount, recent I/O, etc. You don't want the user turning off things without the driver's knowledge. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 20:27:36 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBAC416A4CE for ; Mon, 13 Dec 2004 20:27:36 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id B854443D2F for ; Mon, 13 Dec 2004 20:27:35 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iBDKOex6082575; Mon, 13 Dec 2004 13:24:40 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 13 Dec 2004 13:24:39 -0700 (MST) Message-Id: <20041213.132439.41632908.imp@bsdimp.com> To: nate@root.org From: "M. Warner Losh" In-Reply-To: <41BDF8C6.4030607@root.org> References: <41BDF6A7.3040702@root.org> <20041213.131052.42773193.imp@bsdimp.com> <41BDF8C6.4030607@root.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: acpi@FreeBSD.ORG cc: rafan@infor.org Subject: Re: current powerstate and manually turn on/off? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 20:27:37 -0000 CYIn message: <41BDF8C6.4030607@root.org> Nate Lawson writes: : M. Warner Losh wrote: : > In message: <41BDF6A7.3040702@root.org> : > Nate Lawson writes: : > : Warner Losh wrote: : > : >>By using sysctl, I do know what's the current powerstate : > : >>of each device. I wounder is there any command or sysctl : > : >>that can manually turn device on or off? : > : > : > : > : > : > Not really, no. : > : : > : I think this is something the drivers should handle and we don't need to : > : add user access to power states since it's probably the biggest way to : > : shoot yourself in the foot. We already power down devices with no : > : driver attached and once drivers get smart about powering down devices : > : that are idle, this would cover all scenarios. : > : > It would be nice to have a way to say "This is a really strong hint : > that you are now idle, go to lowest power, highest latency to get out : > of it mode." : : I believe the driver itself has best knowledge of this, based on : refcount, recent I/O, etc. You don't want the user turning off things : without the driver's knowledge. I agree. That's why I said 'strong hint' rather than 'command'. Warner From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 22:34:58 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28C2516A4D0 for ; Mon, 13 Dec 2004 22:34:58 +0000 (GMT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 764CE43D49 for ; Mon, 13 Dec 2004 22:34:57 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id iBDMYuOJ007865; Mon, 13 Dec 2004 16:34:56 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <41BE190C.3070805@centtech.com> Date: Mon, 13 Dec 2004 16:34:52 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041110 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> In-Reply-To: <41B50C12.6070103@root.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: suspend/resume improved? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 22:34:58 -0000 Nate Lawson wrote: > Eric Anderson wrote: > >> Nate Lawson wrote: >> >>> I made a commit over the weekend to -current that may fix some >>> suspend/resume driver issues for people. Please test and let me know >>> if it helps. >> >> >> Will these changes also apply to -stable users? > > > In about a day when I MFC. Are those MFC'ed? I'm thinking of updating and rebuilding tonight. Also - what else more can I do with the reboot issue? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology When in doubt, mumble; when in trouble, delegate; when in charge, ponder ------------------------------------------------------------------------ From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 22:40:51 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A1CB16A4CE for ; Mon, 13 Dec 2004 22:40:51 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id E322E43D55 for ; Mon, 13 Dec 2004 22:40:50 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id iBDMedug006727 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 13 Dec 2004 14:40:49 -0800 Message-ID: <41BE1A66.40200@root.org> Date: Mon, 13 Dec 2004 14:40:38 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <41BE190C.3070805@centtech.com> In-Reply-To: <41BE190C.3070805@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: suspend/resume improved? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 22:40:51 -0000 Eric Anderson wrote: > Nate Lawson wrote: > >> Eric Anderson wrote: >> >>> Nate Lawson wrote: >>> >>>> I made a commit over the weekend to -current that may fix some >>>> suspend/resume driver issues for people. Please test and let me >>>> know if it helps. >>> >>> >>> >>> Will these changes also apply to -stable users? >> >> >> >> In about a day when I MFC. > > > Are those MFC'ed? I'm thinking of updating and rebuilding tonight. > > Also - what else more can I do with the reboot issue? Yes, MFCd. The reboot problem appears in Linux too so it's likely that it's something acpi-ca is doing or not doing. Unfortunately, you have to write to pm1a/b to trigger a suspend so it's likely that the code does something wrong before then. Try commenting out various calls to _GTS, _PTS, and all the pm1a/b writes. Test each separately so you can see what each change does. I think someone found a system where calling _GTS actually triggered a sleep (non-standard). -- Nate From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 13 23:04:15 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C4E616A4CE for ; Mon, 13 Dec 2004 23:04:15 +0000 (GMT) Received: from dd1318.kasserver.com (dd1318.kasserver.com [81.209.148.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52C4743D4C for ; Mon, 13 Dec 2004 23:04:14 +0000 (GMT) (envelope-from gbergling@0xfce3.net) Received: from spot.0xfce3.net (port-ip-213-211-224-147.reverse.mdcc-fun.de [213.211.224.147]) by dd1318.kasserver.com (Postfix) with ESMTP id 0DB8F2D1AE for ; Tue, 14 Dec 2004 00:04:10 +0100 (CET) Received: from spot.0xfce3.net (localhost [127.0.0.1]) by spot.0xfce3.net (8.13.1/8.13.1) with ESMTP id iBDN45SJ002425 for ; Tue, 14 Dec 2004 00:04:05 +0100 (CET) (envelope-from gbergling@0xfce3.net) Received: (from gordon@localhost) by spot.0xfce3.net (8.13.1/8.13.1/Submit) id iBDN44Dl002420 for freebsd-acpi@freebsd.org; Tue, 14 Dec 2004 00:04:04 +0100 (CET) (envelope-from gbergling@0xfce3.net) X-Authentication-Warning: spot.0xfce3.net: gordon set sender to gbergling@0xfce3.net using -f Date: Tue, 14 Dec 2004 00:04:04 +0100 From: Gordon Bergling To: freebsd-acpi@freebsd.org Message-ID: <20041213230404.GA2187@spot.0xfce3.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Url: X-Operating-System: FreeBSD 5.3-STABLE i386 X-Host-Uptime: 11:42PM up 1:53, 6 users, load averages: 0.44, 0.17, 0.12 Subject: possible MFC of -current acpi code X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gordon Bergling List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 23:04:15 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi folks, is it possible to get the latest acpi import MFCed to 5-STABLE? The reason I asking for this is, because my system (recent 5-STABLE) hard crashes when I plug an optical usb mouse in. Without acpi it works without any problems, but a modern notebook without acpi isn't that funny. ;) I tested -CURRENT today and it works perfectly. (with the latest import) best regards, Gordon --=20 Gordon Bergling http://www.0xFCE3.net/ PGP Fingerprint: 7732 9BB1 5013 AE8B E42C 28E0 93B9 D32B C76F 02A0 RIPE-HDL: MDTP-RIPE "There is no place like 127.0.0.0/8" --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBvh/kk7nTK8dvAqARAuDSAJ9/pXume81XB+EFvhK+vFre/gZF+ACffUFy JUdvijgRBW1rAJcFdsGYJwE= =+fbb -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft-- From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 14 02:20:16 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DC3516A4CE for ; Tue, 14 Dec 2004 02:20:16 +0000 (GMT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE64043D5D for ; Tue, 14 Dec 2004 02:20:15 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id iBE2KAOJ027269; Mon, 13 Dec 2004 20:20:11 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <41BE4DD8.5020102@centtech.com> Date: Mon, 13 Dec 2004 20:20:08 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041110 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gordon Bergling References: <20041213230404.GA2187@spot.0xfce3.net> In-Reply-To: <20041213230404.GA2187@spot.0xfce3.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: possible MFC of -current acpi code X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 02:20:16 -0000 Gordon Bergling wrote: > Hi folks, > > is it possible to get the latest acpi import MFCed to 5-STABLE? > > The reason I asking for this is, because my system (recent 5-STABLE) > hard crashes when I plug an optical usb mouse in. Without acpi it works > without any problems, but a modern notebook without acpi isn't that funny. > ;) > > I tested -CURRENT today and it works perfectly. (with the latest import) The patches sent a few weeks ago to this list applied cleanly on my -stable box.. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology When in doubt, mumble; when in trouble, delegate; when in charge, ponder ------------------------------------------------------------------------ From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 14 10:37:19 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F1DB16A4CE for ; Tue, 14 Dec 2004 10:37:19 +0000 (GMT) Received: from dd1318.kasserver.com (dd1318.kasserver.com [81.209.148.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A6D943D4C for ; Tue, 14 Dec 2004 10:37:18 +0000 (GMT) (envelope-from gbergling@0xfce3.net) Received: from spot.0xfce3.net (port-ip-213-211-224-147.reverse.mdcc-fun.de [213.211.224.147]) by dd1318.kasserver.com (Postfix) with ESMTP id 8369A2D2D2; Tue, 14 Dec 2004 11:37:16 +0100 (CET) Received: from spot.0xfce3.net (localhost [127.0.0.1]) by spot.0xfce3.net (8.13.1/8.13.1) with ESMTP id iBEAbBU5006654; Tue, 14 Dec 2004 11:37:11 +0100 (CET) (envelope-from gbergling@0xfce3.net) Received: (from gordon@localhost) by spot.0xfce3.net (8.13.1/8.13.1/Submit) id iBEAawkg006648; Tue, 14 Dec 2004 11:36:58 +0100 (CET) (envelope-from gbergling@0xfce3.net) X-Authentication-Warning: spot.0xfce3.net: gordon set sender to gbergling@0xfce3.net using -f Date: Tue, 14 Dec 2004 11:36:58 +0100 From: Gordon Bergling To: Eric Anderson Message-ID: <20041214103658.GA6615@spot.0xfce3.net> References: <20041213230404.GA2187@spot.0xfce3.net> <41BE4DD8.5020102@centtech.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <41BE4DD8.5020102@centtech.com> User-Agent: Mutt/1.4.2.1i X-Url: X-Operating-System: FreeBSD 5.3-STABLE i386 X-Host-Uptime: 11:34AM up 2:33, 5 users, load averages: 0.11, 0.17, 0.21 cc: freebsd-acpi@freebsd.org Subject: Re: possible MFC of -current acpi code X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gordon Bergling List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 10:37:19 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Dec 13, 2004 at 08:20PM -0600, Eric Anderson wrote: > Gordon Bergling wrote: > >Hi folks, > > > >is it possible to get the latest acpi import MFCed to 5-STABLE? > > > >The reason I asking for this is, because my system (recent 5-STABLE) > >hard crashes when I plug an optical usb mouse in. Without acpi it works > >without any problems, but a modern notebook without acpi isn't that funn= y. > >;) > > > >I tested -CURRENT today and it works perfectly. (with the latest import) >=20 > The patches sent a few weeks ago to this list applied cleanly on my=20 > -stable box.. A few days after the commit some local fixes were commited to HEAD and I think the posted patch doesn't include this fixes. I think I'll wait until the acpi code will be merged to 5-STABLE. best regards, Gordon --=20 Gordon Bergling http://www.0xFCE3.net/ PGP Fingerprint: 7732 9BB1 5013 AE8B E42C 28E0 93B9 D32B C76F 02A0 RIPE-HDL: MDTP-RIPE "There is no place like 127.0.0.0/8" --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBvsJJk7nTK8dvAqARAmGdAJ9gvwTAQW8hXfKwboB+BvLhAFzYwwCfT9Y1 DGDCCkWjlHDtrxejcYZTBv4= =+mEN -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy-- From owner-freebsd-acpi@FreeBSD.ORG Fri Dec 17 18:49:19 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 159FE16A4CF; Fri, 17 Dec 2004 18:49:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7E3A43D39; Fri, 17 Dec 2004 18:49:18 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from freefall.freebsd.org (marcus@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBHInImQ074570; Fri, 17 Dec 2004 18:49:18 GMT (envelope-from marcus@freefall.freebsd.org) Received: (from marcus@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBHInIp9074566; Fri, 17 Dec 2004 18:49:18 GMT (envelope-from marcus) Date: Fri, 17 Dec 2004 18:49:18 GMT From: Joe Marcus Clarke Message-Id: <200412171849.iBHInIp9074566@freefall.freebsd.org> To: marcus@FreeBSD.org, freebsd-bugs@FreeBSD.org, acpi@FreeBSD.org Subject: Re: kern/74215: [request] add ACPI headers to /usr/include X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 18:49:19 -0000 Synopsis: [request] add ACPI headers to /usr/include Responsible-Changed-From-To: freebsd-bugs->acpi Responsible-Changed-By: marcus Responsible-Changed-When: Fri Dec 17 18:48:59 GMT 2004 Responsible-Changed-Why: Move this to the acpi team for review. http://www.freebsd.org/cgi/query-pr.cgi?pr=74215 From owner-freebsd-acpi@FreeBSD.ORG Fri Dec 17 19:07:39 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDE1916A4D1; Fri, 17 Dec 2004 19:07:38 +0000 (GMT) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABE0143D1F; Fri, 17 Dec 2004 19:07:37 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 6E6CB78C76; Fri, 17 Dec 2004 20:07:36 +0100 (CET) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 77511-02; Fri, 17 Dec 2004 20:07:27 +0100 (CET) Received: from webmail.thilelli.net (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id D118878C72; Fri, 17 Dec 2004 20:07:27 +0100 (CET) Received: from 192.168.1.19 (SquirrelMail authenticated user jgabel); by webmail.thilelli.net with HTTP; Fri, 17 Dec 2004 20:07:27 +0100 (CET) Message-ID: <54903.192.168.1.19.1103310447.squirrel@192.168.1.19> Date: Fri, 17 Dec 2004 20:07:27 +0100 (CET) From: "Julien Gabel" To: freebsd-acpi@FreeBSD.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net cc: bug-followup@FreeBSD.org Subject: Re: kern/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 19:07:39 -0000 Hello, After trying the BETAs ans RCs just before the release of FreeBSD 5.3 release, i discovered that i can't use any USB ports on one of my systems (i did not encountered this problem on my notebook for example). As a side note, i previously posted about this problem on current@ during the release cycle of 5.3-RELEASE, but focusing on using a USB thumbdrive at this time. I realize later that it seems to be a general USB support problem, not just a relative one to the pendrive i use at this time. http://lists.freebsd.org/mailman/htdig/freebsd-current/2004-October/\ 039444.html After playing with my BIOS settings, i decided to reset them all. And here, i can say that *disable* ACPI at boot time _do_ the trick. I try these parameters as well. Here is what i get: -------------------------------------------------------- BIOS | FreeBSD 5.3 -------------------------------------------------------- USB Legacy Support | ACPI enable | ACPI disable -------------------------------------------------------- "disable" | USB ko :( | USB ko :( "all device" | USB ko :( | USB ok -------------------------------------------------------- So, i ended with these two systems: - notebook: FreeBSD 5.2.1 + ACPI enable => USB ok - notebook: FreeBSD 5.3 + ACPI enable => USB ok - notebook: FreeBSD 5.3 + ACPI disable => USB ok - desktop: FreeBSD 5.2.1 + ACPI enable => USB ok - desktop: FreeBSD 5.3 + ACPI enable => USB ko :( - desktop: FreeBSD 5.3 + ACPI disable => USB ok The desktop is the machine equipped with the MSI K7T266 Pro2 motherboard. The BIOS firmware (v3.7) is up to date with the last revision available. According to "Using and Debugging FreeBSD ACPI", here is the corresponding information: => Please find the ACPI Source Language for this motherboard at: http://www.thilelli.net/~jgabel/pub/PR/74989/MSI.Via.K7T266Pro2.asl => With ACPI enable: 1/ Boot FreeBSD using 'boot -v' Content of /boot/loader.conf: hw.acpi.verbose="1" (just in case) 2/ Content of /var/run/dmesg.boot available at: http://www.thilelli.net/~jgabel/pub/PR/74989/acpi-enable/dmesg.boot 3/ Output of 'sysctl hw.acpi': http://www.thilelli.net/~jgabel/pub/PR/74989/acpi-enable/sysctl_hw.acpi 4/ If i try to use some USB devices (a thumbdrive for example), i get the following in /var/log/messages and the output of 'usbdevs -v': http://www.thilelli.net/~jgabel/pub/PR/74989/acpi-enable/\ usb_thumbdrive.dmesg http://www.thilelli.net/~jgabel/pub/PR/74989/acpi-enable/usbdevs-v => With ACPI disable: 1/ Boot FreeBSD using 'boot -v' Content of /boot/loader.conf: hint.acpi.0.disabled="1" 2/ Content of /var/run/dmesg.boot available at: http://www.thilelli.net/~jgabel/pub/PR/74989/acpi-disable/dmesg.boot 3/ If i try to use some USB devices (a thumbdrive for example), i get the following in /var/log/messages and the output of 'usbdevs -v': http://www.thilelli.net/~jgabel/pub/PR/74989/acpi-disable/\ usb_thumbdrive.dmesg http://www.thilelli.net/~jgabel/pub/PR/74989/acpi-disable/usbdevs-v I don't know if the problem comes from the USB code or from the ACPI code: a conflict between the two exists. I am ready to try all patches and to test all suggestions if any. Thanks for your help, -- -jpeg. From owner-freebsd-acpi@FreeBSD.ORG Fri Dec 17 23:23:22 2004 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4690B16A4CE; Fri, 17 Dec 2004 23:23:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2073243D1D; Fri, 17 Dec 2004 23:23:22 +0000 (GMT) (envelope-from arved@FreeBSD.org) Received: from freefall.freebsd.org (arved@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBHNNMZk007788; Fri, 17 Dec 2004 23:23:22 GMT (envelope-from arved@freefall.freebsd.org) Received: (from arved@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBHNNLbc007784; Fri, 17 Dec 2004 23:23:21 GMT (envelope-from arved) Date: Fri, 17 Dec 2004 23:23:21 GMT From: Tilman Linneweh Message-Id: <200412172323.iBHNNLbc007784@freefall.freebsd.org> To: arved@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-acpi@FreeBSD.org Subject: Re: i386/73822: acpi / thermal support X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 23:23:22 -0000 Synopsis: acpi / thermal support Responsible-Changed-From-To: freebsd-i386->freebsd-acpi Responsible-Changed-By: arved Responsible-Changed-When: Fri Dec 17 23:23:00 GMT 2004 Responsible-Changed-Why: Over to freebsd-acpi mailinglist http://www.freebsd.org/cgi/query-pr.cgi?pr=73822