From owner-freebsd-hackers Thu Oct 24 12: 8:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D59FB37B401; Thu, 24 Oct 2002 12:08:36 -0700 (PDT) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41C5943E4A; Thu, 24 Oct 2002 12:08:35 -0700 (PDT) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.6/8.12.6) with ESMTP id g9OJ8X1e005084; Thu, 24 Oct 2002 21:08:34 +0200 (CEST) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.6/8.12.6/Submit) id g9OJ8TEm005079; Thu, 24 Oct 2002 21:08:29 +0200 (CEST) Date: Thu, 24 Oct 2002 21:08:29 +0200 From: Wilko Bulte To: John Baldwin Cc: hackers@FreeBSD.org Subject: Re: Getting ACPI to work on -stable Message-ID: <20021024210829.B4981@freebie.xs4all.nl> References: <20021024200843.A4737@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@FreeBSD.org on Thu, Oct 24, 2002 at 02:25:57PM -0400 X-OS: FreeBSD 4.7-RC X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Oct 24, 2002 at 02:25:57PM -0400, John Baldwin wrote: > > On 24-Oct-2002 Wilko Bulte wrote: > > On Wed, Oct 23, 2002 at 04:20:17PM -0400, John Baldwin wrote: > >> Ok, here are the instructions on getting ACPI going on 4-stable for > >> those of you who are foolish^H^H^H^H^H^H^Hbrave: > >> > >> - First, check out a -stable kernel source tree. > >> - Second, check out current versions of the following parts of the > >> kernel source tree (cvs co -r1 will do this): > >> - src/sys/contrib/dev/acpica > >> - src/sys/dev/acpica > >> - src/sys/i386/acpica > >> - src/sys/i386/include/acpica_machdep.h > >> - src/sys/i386/isa/pmtimer.c > >> - src/sys/kern/subr_power.c > >> - src/sys/sys/power.h > >> - Third, download and apply the patch at > >> http://www.FreeBSD.org/~jhb/~patches/acpi_4x.patch. > > > > Make that: http://www.FreeBSD.org/~jhb/patches/acpi_4x.patch > > > > I'm engaged in testing it now, stay tuned... > > Grammar and URL's don't mix well. :) I just tested it on my Compaq EVO N160 laptop. Testresult is a bit 'hmm hmm' : - any power event (plug in mains, pull mains) results in an immediate reboot - pressing the lid switch results in an immediate reboot - apm gives me: chuck#apm APM version: 1.2 APM Managment: Disabled AC Line status: on-line Battery status: charging Remaining battery life: 0% Remaining battery time: unknown Number of batteries: 1 Battery 0: Battery status: charging Remaining battery life: 0% Remaining battery time: 0:00:00 Resume timer: Thu Jan 1 00:59:59 1970 Resume on ring indicator: disabled APM Capacities: unknown dmesg.boot: Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-STABLE #0: Thu Oct 24 20:08:51 CEST 2002 root@chuck.WBnet:/usr/src/sys/compile/CHUCK.acpi Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (1065.77-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383f9ff real memory = 133562368 (130432K bytes) avail memory = 125665280 (122720K bytes) Preloaded elf kernel "kernel" at 0xc043b000. Preloaded elf module "linux.ko" at 0xc043b09c. Preloaded elf module "agp.ko" at 0xc043b13c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 11 entries at 0xc00fdf10 acpi0: on motherboard Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_cpu0: on acpi0 acpi_tz0: on acpi0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_ec0: port 0x66,0x62 on acpi0 apm: Other PM system enabled. npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 uhci0: port 0x1840-0x185f irq 11 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1860-0x187f irq 10 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcib2: at device 30.0 on pci0 pci2: on pcib2 pci2: (vendor=0x14f1, dev=0x2f00) at 4.0 pci2: (vendor=0x104c, dev=0x8023) at 5.0 pcic0: irq 10 at device 6.0 on pci2 pcic0: PCI Memory allocated: 0x88000000 pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][CSC serial isa irq] pccard0: on pcic0 fxp0: port 0x3000-0x303f mem 0xd0200000-0xd0200fff irq 9 at device 8.0 on pci2 fxp0: Ethernet address 00:02:a5:9d:b3:30 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1800-0x180f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=0x8086, dev=0x2483) at 31.3 irq 5 pcm0: port 0x1880-0x18bf,0x1c00-0x1cff irq 5 at device 31.5 on pci0 orm0: