Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 1999 12:46:36 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        freebsd-mobile@freebsd.org
Subject:   Thinkpad 570 doesn't wake up
Message-ID:  <14322.14754.386862.130332@grasshopper.cs.duke.edu>

next in thread | raw e-mail | index | archive | help


I'm running -CURRENT on a thinkpad 570.  When I suspend it, it will
not wake up.  What I mean by this is that when I press a key, I hear
the disk spin up, but the screen remains dark, and the pccard ethernet
controller does not light up.  At this point, all that I can do is to
reset the system.  Also, it does not matter how the machine is
suspended (zzz, or magic key sequence, or power-shortage, etc) or
awakened (timer, keypress).  

I've tried enabling killing apmd.  I've tried adding/removing
PCIC_RESUME_RESET. I've tried using the new ata driver & the old wd
driver.  Nothing seems to help.  I was hoping somebody might have some 
ideas..

I've included my kernel config file, as well as the /var/log/messages
output.  Note that I compiled apm.c with -DAPM_DEBUG so as to provide
more information.




Sep 29 12:14:59 kedem-pc /kernel: Copyright (c) 1992-1999 The FreeBSD Project.
Sep 29 12:14:59 kedem-pc /kernel: Copyright (c) 1982, 1986, 1989, 1991, 1993
Sep 29 12:14:59 kedem-pc /kernel: The Regents of the University of California. All rights reserved.
Sep 29 12:14:59 kedem-pc /kernel: FreeBSD 4.0-CURRENT #3: Wed Sep 29 12:13:10 EDT 1999
Sep 29 12:14:59 kedem-pc /kernel: gallatin@kedem-pc.cs.duke.edu:/usr/src/sys/compile/THINKPAD
Sep 29 12:14:59 kedem-pc /kernel: Timecounter "i8254"  frequency 1193182 Hz
Sep 29 12:14:59 kedem-pc /kernel: CPU: Celeron (365.01-MHz 686-class CPU)
Sep 29 12:14:59 kedem-pc /kernel: Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
Sep 29 12:14:59 kedem-pc /kernel: Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
Sep 29 12:14:59 kedem-pc /kernel: real memory  = 201261056 (196544K bytes)
Sep 29 12:14:59 kedem-pc /kernel: avail memory = 191647744 (187156K bytes)
Sep 29 12:14:59 kedem-pc /kernel: Preloaded elf kernel "kernel" at 0xc034e000.
Sep 29 12:14:59 kedem-pc /kernel: Pentium Pro MTRR support enabled
Sep 29 12:14:59 kedem-pc /kernel: npx0: <math processor> on motherboard
Sep 29 12:14:59 kedem-pc /kernel: npx0: INT 16 interface
Sep 29 12:14:59 kedem-pc /kernel: apm0: <APM BIOS> on motherboard
Sep 29 12:14:59 kedem-pc /kernel: apm: APM BIOS version 0102
Sep 29 12:14:59 kedem-pc /kernel: apm: Code16 0xc00f0000, Data 0xc0000400
Sep 29 12:14:59 kedem-pc /kernel: apm: Code entry 0x00003eee, Idling CPU disabled, Management enabled
Sep 29 12:14:59 kedem-pc /kernel: apm: CS_limit=0xffff, DS_limit=0xffff
Sep 29 12:14:59 kedem-pc /kernel: apm: Engaged control enabled
Sep 29 12:14:59 kedem-pc /kernel: apm: found APM BIOS v1.2, connected at v1.2
Sep 29 12:14:59 kedem-pc /kernel: apm: Slow Idling CPU disabled
Sep 29 12:14:59 kedem-pc /kernel: Add hook "default suspend"
Sep 29 12:14:59 kedem-pc /kernel: Add hook "default resume"
Sep 29 12:14:59 kedem-pc /kernel: pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
Sep 29 12:14:59 kedem-pc /kernel: pci0: <PCI bus> on pcib0
Sep 29 12:14:59 kedem-pc /kernel: pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
Sep 29 12:14:59 kedem-pc /kernel: pci1: <PCI bus> on pcib1
Sep 29 12:14:59 kedem-pc /kernel: vga-pci0: <NeoMagic model 0005 VGA-compatible display device> irq 11 at device 0.0 on pci1
Sep 29 12:14:59 kedem-pc /kernel: chip1: <PCI to CardBus bridge (vendor=104c device=ac1b)> irq 11 at device 2.0 on pci0
Sep 29 12:15:00 kedem-pc /kernel: chip2: <PCI to CardBus bridge (vendor=104c device=ac1b)> irq 11 at device 2.1 on pci0
Sep 29 12:15:00 kedem-pc /kernel: pci0: unknown card D@S6003 (vendor=0x1013, dev=0x6003) at 5.0 irq 11
Sep 29 12:15:00 kedem-pc /kernel: isab0: <Intel 82371AB PCI to ISA bridge> at device 6.0 on pci0
Sep 29 12:15:00 kedem-pc /kernel: isa0: <ISA bus> on isab0
Sep 29 12:15:00 kedem-pc /kernel: ide_pci0: <Intel PIIX4 Bus-master IDE controller> at device 6.1 on pci0
Sep 29 12:15:00 kedem-pc /kernel: uhci0: <Intel 82371AB/EB (PIIX4) USB controller> irq 11 at device 6.2 on pci0
Sep 29 12:15:00 kedem-pc /kernel: usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
Sep 29 12:15:00 kedem-pc /kernel: uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
Sep 29 12:15:00 kedem-pc /kernel: uhub0: 2 ports with 2 removable, self powered
Sep 29 12:15:00 kedem-pc /kernel: chip3: <Intel 82371AB Power management controller> at device 6.3 on pci0
Sep 29 12:15:00 kedem-pc /kernel: pci0: unknown card DNA0448 (vendor=0x11c1, dev=0x0448) at 7.0 irq 11
Sep 29 12:15:00 kedem-pc /kernel: pccard0: <PC Card bus -- KLUDGE version> on motherboard
Sep 29 12:15:00 kedem-pc /kernel: fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
Sep 29 12:15:00 kedem-pc /kernel: fdc0: FIFO enabled, 8 bytes threshold
Sep 29 12:15:00 kedem-pc /kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0
Sep 29 12:15:00 kedem-pc /kernel: wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xe0ff on isa0
Sep 29 12:15:00 kedem-pc /kernel: wdc0: unit 0 (wd0): <IBM-DBCA-206480>, DMA, 32-bit, multi-block-16, sleep-hack
Sep 29 12:15:00 kedem-pc /kernel: wd0: 6149MB (12594960 sectors), 13328 cyls, 15 heads, 63 S/T, 512 B/S
Sep 29 12:15:00 kedem-pc /kernel: atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
Sep 29 12:15:00 kedem-pc /kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Sep 29 12:15:00 kedem-pc /kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0
Sep 29 12:15:00 kedem-pc /kernel: psm0: model Generic PS/2 mouse, device ID 0
Sep 29 12:15:00 kedem-pc /kernel: vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0
Sep 29 12:15:00 kedem-pc /kernel: sc0: <System console> on isa0
Sep 29 12:15:00 kedem-pc /kernel: sc0: VGA <16 virtual consoles, flags=0x200>
Sep 29 12:15:00 kedem-pc /kernel: sio0: configured irq 4 not in bitmap of probed irqs 0
Sep 29 12:15:00 kedem-pc /kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
Sep 29 12:15:00 kedem-pc /kernel: sio0: type 8250
Sep 29 12:15:00 kedem-pc /kernel: sio1: configured irq 3 not in bitmap of probed irqs 0
Sep 29 12:15:00 kedem-pc /kernel: sio2: not probed (disabled)
Sep 29 12:15:00 kedem-pc /kernel: sio3: not probed (disabled)
Sep 29 12:15:00 kedem-pc /kernel: ppc0 at port 0x3bc-0x3c3 irq 7 flags 0x40 on isa0
Sep 29 12:15:00 kedem-pc /kernel: isa_compat: didn't get ports for ppc
Sep 29 12:15:00 kedem-pc /kernel: ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
Sep 29 12:15:00 kedem-pc /kernel: plip0: <PLIP network interface> on ppbus 0
Sep 29 12:15:00 kedem-pc /kernel: lpt0: <generic printer> on ppbus 0
Sep 29 12:15:00 kedem-pc /kernel: lpt0: Interrupt-driven port
Sep 29 12:15:00 kedem-pc /kernel: ppi0: <generic parallel i/o> on ppbus 0
Sep 29 12:15:00 kedem-pc /kernel: pcic: pccard bridge VLSI 82C146 (5 mem & 2 I/O windows)
Sep 29 12:15:00 kedem-pc /kernel: Add hook "VLSI 82C146"
Sep 29 12:15:00 kedem-pc /kernel: Add hook "VLSI 82C146"
Sep 29 12:15:00 kedem-pc /kernel: pcic: controller irq 3
Sep 29 12:15:00 kedem-pc /kernel: Add hook "VLSI 82C146"
Sep 29 12:15:00 kedem-pc /kernel: Add hook "VLSI 82C146"
Sep 29 12:15:00 kedem-pc /kernel: pccard: initalizing drivers: ed ep
Sep 29 12:15:00 kedem-pc /kernel: changing root device to wd0s2a
Sep 29 12:15:00 kedem-pc /kernel: pccard: card inserted, slot 1
Sep 29 12:15:02 kedem-pc /kernel: APM ioctl: cmd = 0x20005005
Sep 29 12:15:02 kedem-pc /kernel: called apm_event_enable()
Sep 29 12:15:02 kedem-pc apmd[99]: start
Sep 29 12:15:02 kedem-pc /kernel: apmwrite: event 0x2 enabled
Sep 29 12:15:02 kedem-pc /kernel: apmwrite: event 0x3 enabled
Sep 29 12:15:02 kedem-pc /kernel: apmwrite: event 0xa enabled
Sep 29 12:15:02 kedem-pc /kernel: apmwrite: event 0xb enabled
Sep 29 12:15:09 kedem-pc /kernel: pccard-ed0: <compat ed> at port 0x300-0x31f irq 10 slot 1 on pccard0
Sep 29 12:15:09 kedem-pc /kernel: ed0: address 00:e0:98:08:0d:cc, type NE2000 (16 bit) 
Sep 29 12:15:09 kedem-pc pccardd[46]: pccardd started
Sep 29 12:15:49 kedem-pc /kernel: APM ioctl: cmd = 0x20005001

#
# PCCARD -- Generic machine with WD/AHx/NCR/BTx family disks and PCMCIA
#           hardware support
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.freebsd.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.ORG/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/PCCARD,v 1.20 1999/09/08 19:02:26 markm Exp $

machine		i386
ident		THINKPAD
cpu             I686_CPU
maxusers	64

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	MFS			#Memory Filesystem
options 	MFS_ROOT		#MFS usable as root device, "MFS" req'ed
options 	NFS			#Network Filesystem

options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root. "CD9660" req'ed
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Be pessimistic about Joe SCSI device
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) syscall trace support
options         SYSVSHM			#SYSV-style shared memory
options         SYSVMSG			#SYSV-style message queues
options         SYSVSEM			#SYSV-style semaphores
options		SOFTUPDATES

# To make an SMP kernel, the next two are needed
#options 	SMP			# Symmetric MultiProcessor Kernel
#options 	APIC_IO			# Symmetric (APIC) I/O
# Optionally these may need tweaked, (defaults shown):
#options 	NCPU=2			# number of CPUs
#options 	NBUS=4			# number of busses
#options 	NAPIC=1			# number of IO APICs
#options 	NINTR=24		# number of INTs

controller	isa0
controller	pnp0			# PnP support for ISA
controller	pci0

# Floppy drives
controller	fdc0	at isa? port IO_FD1 irq 6 drq 2
disk		fd0	at fdc0 drive 0


# IDE controller and disks
controller	wdc0	at isa? port IO_WD1 irq 14 flags 0xe0ff
disk		wd0	at wdc0 drive 0
#disk		wd1	at wdc0 drive 1

#controller	wdc1	at isa? port IO_WD2 irq 15
#disk		wd2	at wdc1 drive 0
#disk		wd3	at wdc1 drive 1

# ATAPI devices on wdc?
#device		wcd0		#IDE CD-ROM
#device		wfd0		#IDE Floppy (e.g. LS-120)
#device		wst0		#IDE Tape (e.g. Travan)

# SCSI Controllers
# A single entry for any of these controllers (ncr, ahb, ahc) is
# sufficient for any number of installed devices.

controller	aha0	at isa? port ? irq ?

# SCSI peripherals
# Only one of each of these is needed, they are dynamically allocated.
controller	scbus0		# SCSI bus (required)
device		da0		# Direct Access (disks)
device		sa0		# Sequential Access (tape etc)
device		cd0		# CD
device		pass0		# Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
controller	atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1
device		psm0	at atkbdc? irq 12

device		vga0	at isa? port ? conflicts

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa?

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa?
#options 	XSERVER			# support for X server
#options 	FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options 	PCVT_SCANSET=2		# IBM keyboards are non-std

# 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? # Advanced Power Management

# PCCARD (PCMCIA) support
controller	card0
device		pcic0	at card?
device		pcic1	at card?

# You may need to reset all pccards after resuming
options         PCIC_RESUME_RESET       # reset after resume      

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

# Parallel port
device		ppc0	at isa? port? flags 0x40 irq 7
controller	ppbus0		# Parallel port bus (required)
device		lpt0		# Printer
device		plip0		# TCP/IP over parallel
device		ppi0		# Parallel port interface device
controller	vpo0		# Requires scbus and da0

# MII bus support, required for some 10/100 NICs
controller	miibus0

# PCI Ethernet NICs.
device		al0		# ADMtek AL981 (``Comet'')
device		ax0		# ASIX AX88140A
device		de0		# DEC/Intel DC21x4x (``Tulip'')
device		dm0		# Davicom DM9100/DM9102
device		fxp0		# Intel EtherExpress PRO/100B (82557, 82558)
device		mx0		# Macronix 98713/98715/98725 (``PMAC'')
device		pn0		# Lite-On 82c168/82c169 (``PNIC'')
device		rl0		# RealTek 8129/8139
device		sf0		# Adaptec AIC-6915 (``Starfire'')
device		sis0		# Silicon Integrated Systems SiS 900/SiS 7016
device		ste0		# Sundance ST201 (D-Link DFE-550TX)
device		tl0		# Texas Instruments ThunderLAN
device		tx0		# SMC 9432TX (83c170 ``EPIC'')
device		vr0		# VIA Rhine, Rhine II
device		vx0		# 3Com 3c590, 3c595 (``Vortex'')
device		wb0		# Winbond W89C840F
device		xl0		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.
# The probe order of these is presently determined by i386/isa/isa_compat.c.
device		ed0	at isa? port 0x280 irq 10 iomem 0xd8000
device		ep0	at isa? port 0x300 irq 10

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	gzip		# Exec gzipped a.out's

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter

# USB support
controller	uhci0		# UHCI PCI->USB interface
controller	ohci0		# OHCI PCI->USB interface
controller	usb0		# USB Bus (required)
device		ugen0		# Generic
device		uhid0		# "Human Interface Devices"
device		ukbd0		# Keyboard
device		ulpt0		# Printer
controller	umass0		# Disks/Mass storage - Requires scbus and da0
device		ums0		# Mouse
#
# ATA and ATAPI devices
# This is work in progress, use at your own risk.
# It currently reuses the majors of wd.c and friends.
# It cannot co-exist with the old system in one kernel.
# You only need one "controller ata0" for it to find all
# PCI devices on modern machines.
#controller      ata0
#device          atadisk0        # ATA disk drives
#device          atapicd0        # ATAPI CDROM drives
#device          atapifd0        # ATAPI floppy drives
#device          atapist0        # ATAPI tape drives
#
# For pnp sound cards:
device pcm0
#
# SMB bus
#
# System Management Bus support provided by the 'smbus' device.
#
# Supported devices:
# smb   standard io
#
# Supported interfaces:
# iicsmb I2C to SMB bridge with any iicbus interface
# bktr  brooktree848 I2C hardware interface
# intpm Intel PIIX4 Power Management Unit
# alpm  Acer Aladdin-IV/V/Pro2 Power Management Unit
#

#
# Certain applications can grow to be larger than the 128M limit
# that FreeBSD initially imposes.  Below are some options to
# allow that limit to grow to 256MB, and can be increased further
# with changing the parameters.  MAXDSIZ is the maximum that the
# limit can be set to, and the DFLDSIZ is the default value for
# the limit.  You might want to set the default lower than the
# max, and explicitly set the maximum with a shell command for processes
# that regularly exceed the limit like INND.
#
options         MAXDSIZ="(512*1024*1024)"
options         DFLDSIZ="(256*1024*1024)"

# Options for the VM subsystem
#options        PQ_NOOPT                # No coloring
#options        PQ_LARGECACHE           # color for 512k/16k cache
#options        PQ_HUGECACHE            # color for 1024k/16k cache



Thanks,

Drew
------------------------------------------------------------------------------
Andrew Gallatin, Sr Systems Programmer	http://www.cs.duke.edu/~gallatin
Duke University				Email: gallatin@cs.duke.edu
Department of Computer Science		Phone: (919) 660-6590


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?14322.14754.386862.130332>