Date: Sat, 8 Apr 2000 00:37:59 -0700 (PDT) From: Allan Saddi <asaddi@philosophysw.com> To: freebsd-mobile@freebsd.org Subject: Strange suspend/standby behavior Message-ID: <Pine.BSF.4.21.0004080036420.85694-100000@web2.sea.nwserv.com>
next in thread | raw e-mail | index | archive | help
Hi all, I inherited an old Compaq Presario 1215 recently. I installed 4.0-RELEASE (and subsequently 4.0-STABLE) on it. Much to my surprise, I got almost everything about it working in a few hours. (Except the modem -- it's probably a winmodem.) Good job, BTW. :) Anyway, I'm having a minor problem with the suspend/standby feature. When running on batteries, after I issue a 'zzz', it sleeps for *exactly* 15 minutes, resumes on its own, and then spontaneously reboots! Putting it in standby only results in it resuming after 15 minutes as well. When plugged into the AC outlet, it remains in suspend/standby for however long, until I choose to wake it. Has anyone else experienced anything similar? I've played around with the power settings in BIOS, scrutinized the source code, scoured the mailing lists, and I've even tried single stepping through the kernel APM code with DDB... I still can't figure out why it's doing this. And unfortunately, it just reboots... no panic, no core dump, no error messages. I'll probably pick up a null modem cable in a few days so I can gdb it. But I'm not at all familiar with APM/APM BIOS... Does anyone have any suggestions for debugging this or for helping me get to the root of this strange behavior? I've included an excerpt from /var/log/messages showing a suspend/resume operation, dmesg output, and my kernel config at the end. TIA! -- Allan Saddi "The Earth is the cradle of mankind, asaddi@philosophysw.com but we cannot live in the cradle http://www.philosophysw.com/asaddi/ forever." - K.E. Tsiolkovsky [/var/log/messages] Apr 7 02:48:14 trantor /kernel: ed0: unload Apr 7 02:48:15 trantor /kernel: stray irq 3 Apr 7 02:48:16 trantor /kernel: pccard: card disabled, slot 0 Apr 7 02:48:16 trantor /kernel: Execute APM hook "default suspend." Apr 7 02:48:16 trantor /kernel: Received APM Event: PMEV_STANDBYRESUME Apr 7 02:48:16 trantor /kernel: Execute APM hook "default resume." Apr 7 02:48:16 trantor /kernel: resumed from suspended mode (slept 00:15:00) Apr 7 02:48:16 trantor /kernel: ata0: resetting devices .. done Apr 7 02:48:16 trantor /kernel: ata1: resetting devices .. done Apr 7 02:48:16 trantor /kernel: pccard: card inserted, slot 0 Apr 7 02:48:16 trantor /kernel: Received APM Event: PMEV_UPDATETIME [rest of messages probably lost due to spontaneous reboot] [dmesg output] Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-STABLE #42: Fri Apr 7 02:27:42 PDT 2000 root@utopia.philosophysw.com:/usr/src/sys/compile/TRANTOR Timecounter "i8254" frequency 1193182 Hz CPU: Cyrix GXm (8.04-MHz 586-class CPU) Origin = "CyrixInstead" Id = 0x540 DIR=0x3343 Stepping=3 Revision=3 real memory = 25165824 (24576K bytes) config> di ata1 config> q avail memory = 21901312 (21388K bytes) Preloaded elf kernel "kernel" at 0xc02ba000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc02ba09c. Preloaded elf module "splash_bmp.ko" at 0xc02ba0ec. Preloaded splash_image_data "/knights.bmp" at 0xc02ba190. apm0: <APM BIOS> on motherboard apm: APM BIOS version 0102 apm: Code16 0xc00f0000, Data 0xc0000400 apm: Code entry 0x00005b83, 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" npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 isab0: <PCI to ISA bridge (vendor=1078 device=0002)> port 0x5000-0x500f,0x4000-0x401f,0x3000-0x307f mem 0x40010000-0x40010fff at device 18.0 on pci0 isa0: <ISA bus> on isab0 pci0: <NeoMagic model 0083 VGA-compatible display device> at 20.0 irq 0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 psm0: <PS/2 Mouse> flags 0x400 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> on isa0 sc0: VGA <16 virtual consoles, flags=0x200> pcic0: <Cirrus Logic PD6710> at port 0x3e0 iomem 0xd0000 irq 11 on isa0 pcic0: management irq 11 pccard0: <PC Card bus -- kludge version> on pcic0 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: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 sbc0: <Soundblaster 16> at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0 sbc0: setting card to irq 5, drq 1, 5 pcm0: <SB DSP 4.12> on sbc0 ad0: 1556MB <FUJITSU M2724TA> [3162/16/63] at ata0-master using BIOSPIO Mounting root from ufs:/dev/ad0s1a pccard: card inserted, slot 0 ed0 at port 0x240-0x25f irq 3 slot 0 on pccard0 ed0: address 00:80:c8:42:2f:d9, type Linksys (16 bit) APM ioctl: cmd = 0x20005005 called apm_event_enable() APM ioctl: cmd = 0x4040500b APM ioctl: cmd = 0xc018500a APM ioctl: cmd = 0xc018500a apmwrite: event 0x2 enabled apmwrite: event 0x3 enabled apmwrite: event 0xa enabled apmwrite: event 0xb enabled [kernel config] machine i386 cpu I586_CPU ident TRANTOR maxusers 32 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extentions options _KPOSIX_PRIORITY_SCHEDULING options DDB device isa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata0 at isa? port IO_WD1 irq 14 device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives #options ATA_STATIC_ID #Static device numbering #options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 device psm0 at atkbdc? irq 12 flags 0x400 device vga0 at isa? # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? flags 0x20 # Advanced Power Management options APM_DEBUG # PCCARD (PCMCIA) support device card device pcic0 at isa? irq 11 port 0x3e0 iomem 0xd0000 # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device #device vpo # Requires scbus and da # ISA Ethernet NICs. device ed # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter device pcm device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0004080036420.85694-100000>