Re: ACPI question
On Wed, Nov 25, 2009 at 11:12:10PM -0500, STeve Andre' wrote: Is it reasonable to start playing with suspend/resume yet, or are things developing enough that comments will only be annoying? Wait until we send a mail for you to start testing, things are crazy at the moment and changes are happening really really fast.
Re: ACPI question
On 11/26/09, Paul Irofti bulib...@sdf.lonestar.org wrote: On Wed, Nov 25, 2009 at 11:12:10PM -0500, STeve Andre' wrote: Is it reasonable to start playing with suspend/resume yet, or are things developing enough that comments will only be annoying? Wait until we send a mail for you to start testing, things are crazy at the moment and changes are happening really really fast. To wait does seem to be most appropriate now. I myself was reckles enough and tried the freshly built kernel (fresh enough so it contains 1.151 revision of /sys/dev/acpi/acpi.c) on my Compaq nc6000. Compaqs and HPs were troublesome in the past WRT ACPI, so I was curious :-) Well, zzz puts it to sleep all right, so it spews the following lines and goes to sleep: activate: mainbus0 2 device bios0 act 2 activate: bios0 2 device acpi0 act 2 activate: acpi0 2 device pci0 act 2 activate: pci0 2 device pchb0 act 2 activate: pchb0 2 device ppb0 act 2 activate: ppb0 2 device pci1 act 2 activate: pci1 2 device uhci0 act 2 activate: uhci0 2 device uhci1 a\M-ct 2 activate: uhci1 2 device uhci2 act 2 activate: uhci2 2 device ehci0 act 2 activate: ehci0 2 device ppb1 act 2 activate: ppb1 2 device pci2 act 2 activate: pci2 2 Upon wake up it spews all kinds of messages, like usb controller reset failures, ata lost interrupts, bge watchdogs and it never recovers of course: uhci0: host system error uhci0: host controller process error uhci0: host controller halted uhci1: host system errov uhci1:(host controller process error uhci1: host controller halted uhci2: host system error uhci2: host controller process error uhci2: host controll: port 1 reset failed uhub2: port 1 reset failed uhub3: port 1 reset failed uhub1: port 2 reset failed uhub2: port 2 reset failed uhub3: port 2 reset failed uhub1: port 1 reset failed uhub2: port 1 reset failed uhub3: port 1 reset failed uhub1: port 2 rese5 uhci_freex: xfer=0xd13a9100 not busy, 0x4f4e5155 eset failed ug timeout -- resetting The above is the part that gets into dmesg... It's a pity that serial console's port gets fscked up upon wake up, so I can only watch it on the vga console. I tried different serial settings on the other end, but no luck. OpenBSD/i386 BOOT 3.02 boot boot booting hd0a:/bsd: 6798748+1054568 [52+353856+336919]=0x826104 entry point at 0x200120 [ using 691200 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2009 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.6-current (GENERIC) #0: Thu Nov 26 12:45:03 EET 2009 cy...@openbox:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) M processor 1600MHz (GenuineIntel 686-class) 1.60 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2 real mem = 536244224 (511MB) avail mem = 510959616 (487MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 08/30/06, BIOS32 rev. 0 @ 0xf, SMBIOS rev. 2.3 @ 0xfa1ee (31 entries) bios0: vendor Hewlett-Packard version 68BDD Ver. F.15 date 08/30/2006 bios0: Hewlett-Packard HP Compaq nc6000 (DJ256A#ABB) apm at bios0 function 0x15 not configured acpi0 at bios0: rev 0 acpi0: tables DSDT FACP SSDT acpi0: wakeup devices C056(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiprt0 at acpi0: bus 1 (C045) acpiprt1 at acpi0: bus 2 (C056) acpiprt2 at acpi0: bus 0 (C044) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpipwrres0 at acpi0: C16D acpipwrres1 at acpi0: C13D acpipwrres2 at acpi0: C184 acpipwrres3 at acpi0: C18B acpipwrres4 at acpi0: C195 acpipwrres5 at acpi0: C0E6 acpipwrres6 at acpi0: C20B acpipwrres7 at acpi0: C20C acpipwrres8 at acpi0: C20D acpipwrres9 at acpi0: C20E acpitz0 at acpi0: critical temperature 103 degC acpitz1 at acpi0: critical temperature 115 degC acpitz2 at acpi0: critical temperature 103 degC acpibat0 at acpi0: C137 model Primary serial 07280 2004/04/16 type LIon oem Hewlett-Packard acpibat1 at acpi0: C136 not present acpiac0 at acpi0: AC unit online acpibtn0 at acpi0: C139 acpibtn1 at acpi0: C138 acpivideo at acpi0 not configured bios0: ROM list: 0xc/0x1 cpu0 at mainbus0: (uniprocessor) cpu0: Enhanced SpeedStep 1595 MHz: speeds: 1600, 1400, 1200, 1000, 800, 600 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82855PM Host rev 0x03 intelagp0 at pchb0 agp0 at intelagp0: aperture at 0xb000, size 0x1000 ppb0 at pci0 dev 1 function 0 Intel 82855PM AGP rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M10 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: irq 10 drm0 at radeondrm0 uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x03: irq 10 uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x03: irq 10 uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x03: irq 10
ACPI question
Is it reasonable to start playing with suspend/resume yet, or are things developing enough that comments will only be annoying? Reading the acpi specs is an exercise in... well, something. --STeve Andre'
Re: ACPI question and status request
Gordon Willem Klok wrote: On Sat, May 05, 2007 at 02:32:17AM +0200, Alexander Hall wrote: acpicpu0 at acpi0: CPU0: 866, 667 MHz apmd -C is your friend, without acpi this is done in SMM by the bios at least it was on my lattitude before it kicked the bucket. $ pgrep -fl apmd 214 /usr/sbin/apmd -C Thanks, but that was not really the issue. I was rather worried about fscking up the cooling of the machine or risking to damage something else by disabling the built-in routines and instead using something that might not fully handle everything. However, if I do not get any more answers, I will assume that things more or less just works, as I am used to with this OS. :-) /Alexander
ACPI question and status request
Hello, In order to have my laptop (Dell Inspiron 4100) not powerdown immediately on pressing the power button, I recompiled the kernel with ACPI_ENABLE. However, it does not shutdown the box, but rather makes the button inactive (although it seems to locate it, according to the dmesg). Since I'm on a laptop, I'm also a bit worried about the cooling and such, but with a quick while true; do done-test, the fans started spinning when acpitz0.temp0 hit ~62 degC. Before asking a lot of specific questions on a moving target, what's the status of ACPI on OpenBSD, or where can I read about it (man pages aside)? I guess http://www.disorder.ru/openbsd/acpi.html is quite outdated. Some of the questions I (think I) have: - Would you describe ACPI on OpenBSD to be concidered experimental, decent or stable? - Does ACPI_ENABLE mean shifting from legacy mode to full ACPI/OSPM mode? - What can I expect to work or not work with/without ACPI_ENABLE? - Why does not the power button work? :) - Should I be worried about the cooling? Kernel configuration file ACPI and dmesg follows. acpi and acpiec are enabled post-build through config(8) in order to minimize the deviation from GENERIC. /Alexander ACPI # ACPI kernel, based on GENERIC include arch/i386/conf/GENERIC option ACPIVERBOSE option ACPI_ENABLE dmesg OpenBSD 4.1-current (ACPI) #2: Fri May 4 22:58:36 CEST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/ACPI cpu0: Intel(R) Pentium(R) III Mobile CPU 866MHz (GenuineIntel 686-class) 864 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 670474240 (654760K) avail mem = 603484160 (589340K) using 4278 buffers containing 33648640 bytes (32860K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+ BIOS, date 05/16/03, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev. 2.3 @ 0xf76b0 (61 entries) bios0: Dell Computer Corporation Inspiron 4100 apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 97% apm0: AC on, battery charge high, charging, estimated 1:34 hours apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbb90/208 (11 entries) pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371 ISA and IDE rev 0x00) pcibios0: PCI bus #4 is the last bus bios0: ROM list: 0xc/0x1 acpi0 at mainbus0: rev 0 acpi0: tables DSDT FACP acpitimer0 at acpi0: 3579545 Hz, 24 bits acpi device at acpi0 from table DSDT not configured acpi device at acpi0 from table FACP not configured acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (PCIE) acpiprt3 at acpi0: bus 0 (MPCI) acpicpu0 at acpi0: CPU0: 866, 667 MHz acpitz0 at acpi0, critical temperature: 100 degC acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0: model: 0002M400 serial: 4940 type: LION oem: SANYO acpibat1 at acpi0: BAT1: model: 0002M400 serial: 4943 type: LION oem: SANYO acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: PBTN acpibtn2 at acpi0: SBTN acpidock0 at acpi0: GDCK: not docked (0) cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82830MP CPU-I/O-1 rev 0x02 ppb0 at pci0 dev 1 function 0 Intel 82830MP CPU-AGP rev 0x02 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M6 LY rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) uhci0 at pci0 dev 29 function 0 Intel 82801CA/CAM USB rev 0x01: irq 11 ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x41 pci2 at ppb1 bus 2 xl0 at pci2 dev 0 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, address 00:06:5b:36:f8:e1 exphy0 at xl0 phy 24: 3Com internal media interface cbb0 at pci2 dev 1 function 0 TI PCI1420 CardBus rev 0x00: irq 11 cbb1 at pci2 dev 1 function 1 TI PCI1420 CardBus rev 0x00: irq 11 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 4 device 0 cacheline 0x8, lattimer 0x20 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0x20 pcmcia1 at cardslot1 ichpcib0 at pci0 dev 31 function 0 Intel 82801CAM LPC rev 0x01 pciide0 at pci0 dev 31 function 1 Intel 82801CAM IDE rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: HITACHI_DK23CA-30 wd0: 16-sector PIO, LBA, 28615MB, 58605120 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 pciide0: channel 1 disabled (no drives) auich0 at pci0 dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x01: irq 11, ICH3 AC97 ac97: codec id 0x4352595b (Cirrus Logic CS4205 rev 3) ac97: codec features mic channel, tone, simulated stereo, bass boost, 20 bit DAC, 18 bit ADC, SRS 3D audio0 at auich0 Intel 82801CA/CAM Modem rev 0x01 at pci0 dev 31 function 6 not configured usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev