Date: Mon, 16 Aug 1999 22:36:32 +0200 (CEST) From: Peter Mutsaers <plm@xs4all.nl> To: freebsd-current@FreeBSD.ORG Subject: Re: recent apm changes Message-ID: <14264.30288.954283.366312@muon.xs4all.nl> In-Reply-To: <199908161726.CAA10066@tasogare.imasy.or.jp> References: <199908130352.MAA19931@tasogare.imasy.or.jp> <199908161726.CAA10066@tasogare.imasy.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
>> "MI" == Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> writes: MI> Hi, MI> I got ASUS P2B M/B & ATX case and assembled new box yesterday. With MI> my patch, new box successfully transit into suspend state. There is MI> no sounds from CPU fun, chassis fun and IDE HDD spin (powered down by MI> BIOS setting, Power management setup -> PM Timers -> HDD Power Down: MI> 1 Min.). The power led keeps flashing during suspending. MI> Without the patch, suspending system is never successful (standby MI> also), message `slept 00:00:00' comes up :-( MI> The key release event seems prevent suspend, so some sort of delay MI> mechanism would be necessary such as my patch. MI> Now I'm wondering why your PC doesn't get quite. I suspect that MI> hardware configuration different from yours (I have no SCSI HD on new MI> box). Any suggestions? After a new cvsup I tried your patch again. Same result. Here is my dmesg output. It is about the same at boot, but the APM debug output when suspend is tried is completely different. Copyright (c) 1992-1999 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #9: Mon Aug 16 20:56:59 MET DST 1999 plm@muon:/var/arch/fbsd/src/sys/compile/PLM Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Xeon/Celeron (350.80-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x651 Stepping = 1 Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> real memory = 268423168 (262132K bytes) avail memory = 257990656 (251944K bytes) Pentium Pro MTRR support enabled Probing for PnP devices: CSN 1 Vendor ID: CTL00e4 [0xe4008c0e] Serial 0x1f5ceca5 Comp ID: PNPb02f [0x2fb0d041] Add hook "pcm resume handler" Add hook "pcm suspend handler" pcm1 (SB16pnp <SB16 PnP> sn 0x1f5ceca5) at 0x220-0x22f irq 5 drq 1 flags 0x15 on isa npx0: <math processor> on motherboard npx0: INT 16 interface apm0: <APM BIOS> on motherboard apm: APM BIOS version 0102 apm: Code16 0xc00f0000, Data 0xc00fdbd0 apm: Code entry 0x00007770, Idling CPU disabled, Management enabled apm: CS_limit=0xffff, DS_limit=0xffff apm: Engaged control enabled apm: found APM BIOS v1.2, connected at v1.2 apm: Slow Idling CPU disabled Add hook "default suspend" Add hook "default resume" pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 vga-pci0: <Matrox model 0521 graphics accelerator> irq 11 at device 0.0 on pci1 isab0: <Intel 82371AB PCI to ISA bridge> at device 4.0 on pci0 ata-pci0: <Intel PIIX4 IDE controller> at device 4.1 on pci0 ata-pci0: Busmastering DMA supported ata0 at 0x01f0 irq 14 on ata-pci0 ata1 at 0x0170 irq 15 on ata-pci0 chip1: <UHCI USB controller> at device 4.2 on pci0 chip2: <Intel 82371AB Power management controller> at device 4.3 on pci0 ahc0: <Adaptec 2910/15/20/30C SCSI adapter> irq 9 at device 9.0 on pci0 ahc0: aic7850 Single Channel A, SCSI Id=7, 3/255 SCBs ed0: <NE2000 PCI Ethernet (ProLAN)> irq 10 at device 11.0 on pci0 ed0: address 00:40:95:00:57:83, type NE2000 (16 bit) isa0: <ISA bus> on motherboard fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio2 at port 0x3e8-0x3ef irq 4 on isa0 sio2: type 16550A sio3 at port 0x2e8-0x2ef irq 3 on isa0 sio3: type 16550A ppc0 at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppb0: IEEE1284 device found /NIBBLE/ECP Probing for PnP devices on ppbus0: ppbus0: <Hewlett-Packard OfficeJet Series 700.4.00c> MLC,PCL,PML lpt0: <generic printer> on ppbus 0 lpt0: Interrupt-driven port ata0: master: setting up UDMA2 mode on PIIX4 chip OK ad0: <Maxtor 90680D4/PAS23B15> ATA-4 disk at ata0 as master ad0: 6485MB (13281408 sectors), 13176 cyls, 16 heads, 63 S/T, 512 B/S ad0: piomode=4, dmamode=2, udmamode=2 ad0: 16 secs/int, 0 depth queue, DMA mode ata0: slave: setting up UDMA2 mode on PIIX4 chip OK ad1: <Maxtor 91000D8/SASX1B18> ATA-4 disk at ata0 as slave ad1: 9543MB (19545120 sectors), 19390 cyls, 16 heads, 63 S/T, 512 B/S ad1: piomode=4, dmamode=2, udmamode=2 ad1: 16 secs/int, 0 depth queue, DMA mode ata1: master: setting up UDMA2 mode on PIIX4 chip OK ad2: <ST39140A/841260> ATA-3 disk at ata1 as master ad2: 8693MB (17803440 sectors), 17662 cyls, 16 heads, 63 S/T, 512 B/S ad2: piomode=4, dmamode=2, udmamode=2 ad2: 16 secs/int, 0 depth queue, DMA mode Waiting 5 seconds for SCSI devices to settle sa0 at ahc0 bus 0 target 6 lun 0 sa0: <EXABYTE EXB-85058SQANXR0 07T0> Removable Sequential Access SCSI-2 device sa0: 5.000MB/s transfers (5.000MHz, offset 11) changing root device to wd2s1a APM ioctl: cmd = 0x20005005 called apm_event_enable() cd0 at ahc0 bus 0 target 0 lun 0 cd0: <PLEXTOR CD-ROM PX-20TS 1.00> Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ahc0 bus 0 target 5 lun 0 cd1: <HP CD-Writer 6020 1.07> Removable CD-ROM SCSI-2 device cd1: 3.300MB/s transfers cd1: Attempt to query device size failed: NOT READY, Logical unit not ready, cause not reportable up to here at boot time. this happens when APM SUSPEND is activated either through BIOS timer or suspend button: Received APM Event: PMEV_SUSPENDREQ Execute APM hook "pcm suspend handler." Called APM sound suspend hook for unit 1 Execute APM hook "default suspend." Received APM Event: PMEV_NORMRESUME Execute APM hook "default resume." resumed from suspended mode (slept 00:00:00) Execute APM hook "pcm resume handler." Called APM sound resume hook for unit 1 Received APM Event: PMEV_USERSUSPENDREQ Execute APM hook "pcm suspend handler." Called APM sound suspend hook for unit 1 Execute APM hook "default suspend." Received APM Event: PMEV_NORMRESUME Execute APM hook "default resume." resumed from suspended mode (slept 00:00:00) Execute APM hook "pcm resume handler." Called APM sound resume hook for unit 1 This happens when I issue 'zzz': APM ioctl: cmd = 0x20005001 Execute APM hook "pcm suspend handler." Called APM sound suspend hook for unit 1 Execute APM hook "default suspend." Received APM Event: PMEV_NORMRESUME Execute APM hook "default resume." resumed from suspended mode (slept 00:00:00) Execute APM hook "pcm resume handler." Called APM sound resume hook for unit 1 Maybe sound has something to do with it? I'll try again without a sound device. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14264.30288.954283.366312>