Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 21:08:29 +0200
From:      Wilko Bulte <wkb@freebie.xs4all.nl>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        hackers@FreeBSD.org
Subject:   Re: Getting ACPI to work on -stable
Message-ID:  <20021024210829.B4981@freebie.xs4all.nl>
In-Reply-To: <XFMail.20021024142557.jhb@FreeBSD.org>; from jhb@FreeBSD.org on Thu, Oct 24, 2002 at 02:25:57PM -0400
References:  <20021024200843.A4737@freebie.xs4all.nl> <XFMail.20021024142557.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
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: <PTLTD  	 RSDT  > on motherboard
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
apm: Other PM system enabled.
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82830 host to AGP bridge> mem 0xe0000000-0xefffffff at device 0.0 on pci0
pcib1: <PCI to PCI bridge (vendor=8086 device=3576)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4c59 graphics accelerator> at 0.0 irq 11
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x1840-0x185f irq 11 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> 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: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0x1860-0x187f irq 10 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> 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: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
pci2: <unknown card> (vendor=0x14f1, dev=0x2f00) at 4.0
pci2: <unknown card> (vendor=0x104c, dev=0x8023) at 5.0
pcic0: <TI PCI-1410 PCI-CardBus Bridge> 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: <PC Card 16-bit bus (classic)> on pcic0
fxp0: <Intel Pro/100 Ethernet> port 0x3000-0x303f mem 0xd0200000-0xd0200fff irq 9 at device 8.0 on pci2
fxp0: Ethernet address 00:02:a5:9d:b3:30
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI to ISA bridge (vendor=8086 device=248c)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 ATA100 controller> 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: <unknown card> (vendor=0x8086, dev=0x2483) at 31.3 irq 5
pcm0: <Intel 82801CA (ICH3)> port 0x1880-0x18bf,0x1c00-0x1cff irq 5 at device 31.5 on pci0
orm0: <Option ROMs> at iomem 0xc0000-0xcdfff,0xdb000-0xdbfff,0xdc000-0xdffff on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
IPsec: Initialized Security Association Processing.
ad0: 19077MB <HITACHI_DK23DA-20> [38760/16/63] at ata0-master UDMA100
acd0: CDROM <CRN-8243B> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s2a
WARNING: / was not properly dismounted
pccard: card inserted, slot 0
pccard: card removed, slot 0
pccard: card inserted, slot 0

-- 
|   / o / /_  _   		FreeBSD core team secretary
|/|/ / / /(  (_)  Bulte		wilko@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021024210829.B4981>