ACPI resume problems in STABLE

Norberto Meijome freebsd at meijome.net
Tue Sep 12 18:40:34 PDT 2006


Hi all,
I have a Thinkpad z60m, with a custom kernel conf. I was trailing RELENG_6 (aka
STABLE)  on an almost daily basis (and world updates every week). ACPI enabled,
APIC disabled.

 I can't tell for sure when
trouble started, but roughly about 2 weeks ago I couldn't resume from suspend
anymore. It would come back and the screen would white out, or stay completelly
black (white out == a nice warm white colour... but dead otherwise). Caps lock
would not light up LED.  There was no kernel dump happening either (no HD
activity, i even let it sit for 10 minutes to see if it would help).
No info on dmesg or /var/log/messages.

I simplified my kernel conf (removed vesa, agp and graphic options for sc) - no
changes. I thought there was an improvement when I removed agp, but it was just
false hopes. 

I then decided to revert kernel + world to RELENG_6_1, without
otherwise changing my kernel or /etc configuration (other than the obvious
mergemaster  changes to /etc). and.. voila, everything back to normal. My
current uname is:

$ uname -a
FreeBSD ayiin.xxx.com 6.1-RELEASE-p6 FreeBSD 6.1-RELEASE-p6 #23:
Tue Sep 12 14:52:32 EST 2006
root at ayiin.xxx.com:/usr/obj/usr/src/sys/AYIIN  i386

The only thing I've noticed that in how my lappy works now is that if_iwi0 is
loaded on startup, but iw_bss and firmware.ko are not. I can load them by hand,
but haven't been able to test to see if it actually works (i have a feeling it
doesnt).

I have installed
iwi-firmware-kmod-3.0_1 Intel PRO/Wireless 2200 Firmware Kernel Module

I have kernel dump from my last RELENG_6 attempt when I removed agp - for once
it actually died with a dump. I have a copy of the RELENG_6 /boot/ as well. If
I can help debugging this problem, please let me know. 

I can try to move to STABLE from 2 or 3 weeks ago and see if that makes any
difference  - any significant date I should look at?

cheers!


My kernel config is:
-----
# AYIIN - Beto's laptop - Kernel config
# IBM/Lenovo Thinkpad z60m
# BASED ON
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/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 ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.5 2006/01/23 14:19:36 marius
Exp $

machine		i386
#cpu		I586_CPU
cpu		I686_CPU
ident		AYIIN

options         PERFMON

# To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		# Default places to look
for devices.

makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug
symbols
options         INCLUDE_CONFIG_FILE     # Include this file in kernel


#options 	SCHED_ULE		# ULE scheduler
options 	SCHED_4BSD		# 4BSD scheduler
options 	PREEMPTION		# Enable kernel thread preemption

options 	INET			# InterNETworking


## As as 2006/01/30, IPSEC is still under GIANT - Disabling until i actually
need it. 
#options         IPSEC                   #IP security
#options         IPSEC_ESP               #IP security (crypto; define w/ IPSEC)
device crypto

# TCP_SIGNATURE adds support for RFC 2385 (TCP-MD5) digests. These are
# carried in TCP option 19. This option is commonly used to protect
# TCP sessions (e.g. BGP) where IPSEC is not available nor desirable.
# This is enabled on a per-socket basis using the TCP_MD5SIG socket option.
# This requires the use of 'device crypto', 'options FAST_IPSEC' or 'options
# IPSEC', and 'device cryptodev'.
#options        TCP_SIGNATURE           #include support for RFC 2385
device cryptodev

options         NETGRAPH                # netgraph(4) system

# altq(9). Enable the base part of the hooks with the ALTQ option.
# Individual disciplines must be built into the base system and can not be
# loaded as modules at this point. 
options         ALTQ
options         ALTQ_CBQ        # Class Bases Queueing
options         ALTQ_RED        # Random Early Detection
options         ALTQ_RIO        # RED In/Out
options         ALTQ_HFSC       # Hierarchical Packet Scheduler
options         ALTQ_CDNR       # Traffic conditioner
options         ALTQ_PRIQ       # Priority Queueing



#options         IPFIREWALL              #firewall
#options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
#options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
#options         IPFIREWALL_FORWARD      #packet destination changes
##options         IPFIREWALL_FORWARD_EXTENDED     #all packet dest changes
#options         IPDIVERT                #divert sockets
#options         IPSTEALTH               #support for stealth forwarding
#options         DUMMYNET

options         ZERO_COPY_SOCKETS

# SMB/CIFS requester
# NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV
# options.
# NETSMBCRYPTO enables support for encrypted passwords.
#options         NETSMB                  #SMB/CIFS requester
options         NETSMBCRYPTO            #encrypted password support for SMB

# Kernel side iconv library
options         LIBICONV
options		LIBMCHAIN

options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_DIRHASH		# Improve performance on big
directories
# Extended attributes allow additional data to be associated with files,
# and is used for ACLs, Capabilities, and MAC labels.
# See src/sys/ufs/ufs/README.extattr for more information.
options     UFS_EXTATTR
options     UFS_EXTATTR_AUTOSTART
# Access Control List support for UFS filesystems.  The current ACL
# implementation requires extended attribute support, UFS_EXTATTR,
# for the underlying filesystem.
# See src/sys/ufs/ufs/README.acls for more information.
options     UFS_ACL
options		QUOTA

options 	MD_ROOT			# MD is a potential root device
options 	NFSCLIENT		# Network Filesystem Client
options 	NFSSERVER		# Network Filesystem Server
options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT

options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem (requires
PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework


options         GEOM_ELI                # Disk encryption.
options 	GEOM_GPT		# GUID Partition Tables.

options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	SCSI_DELAY=5000		# Delay (in ms) before probing
SCSI
options 	KTRACE			# ktrace(1) support

options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores


#####################################################################
# SYSV IPC KERNEL PARAMETERS
#
# Maximum number of entries in a semaphore map.
#options         SEMMAP=31

# Maximum number of System V semaphores that can be used on the system at
# one time.
#options         SEMMNI=11

# Total number of semaphores system wide
#options         SEMMNS=61

# Total number of undo structures in system
#options         SEMMNU=31

# Maximum number of System V semaphores that can be used by a single process
# at one time.
#options         SEMMSL=61

# Maximum number of operations that can be outstanding on a single System V
# semaphore at one time.
#options         SEMOPM=101

# Maximum number of undo operations that can be outstanding on a single
# System V semaphore at one time.
#options         SEMUME=11

# Maximum number of shared memory pages system wide.
#options         SHMALL=1025

# Maximum size, in bytes, of a single System V shared memory region.
#options         SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)
#options         SHMMAXPGS=1025

# Minimum size, in bytes, of a single System V shared memory region.
#options         SHMMIN=2

# Maximum number of shared memory regions that can be used on the system
# at one time.
#options         SHMMNI=33

# Maximum number of System V shared memory regions that can be attached to
# a single process at one time.
#options         SHMSEG=9

############################################################



options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~215k to driver.
options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.

options         DEVICE_POLLING
options		HZ=1600


######################################################################
# The apic device enables the use of the I/O APIC for interrupt delivery.
# The apic device can be used in both UP and SMP kernels, but is required
# for SMP kernels.  Thus, the apic device is not strictly an SMP option,
# but it is a prerequisite for SMP.
## COMMENTED OUT - BREAKS ACPI IN Thinkpad Z60M
#device		apic			# I/O APIC

# Bus support.
device		eisa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
device		ataraid		# ATA RAID drives
device		atapicd		# ATAPI CDROM drives
device		atapifd		# ATAPI floppy drives
device		atapist		# ATAPI tape drives
device      atapicam        # emulate ATAPI devices as SCSI ditto via CAM
                                # needs CAM to be present (scbus & pass)
device      cd              # CD
device      pass            # Passthrough device (direct SCSI access)

options 	ATA_STATIC_ID	# Static device numbering


# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

#device		splash		# Splash screen and screen saver
support

# syscons is the default console driver, resembling an SCO console
device		sc

## The following (VESA, SC_PIXEL_MODE, VGA_WIDTH90) improve behaviour of text
virtual console...not REALLY needed...
## if Enabled may cause resume problems? (2006-09-06)
#options         VESA
#options         SC_PIXEL_MODE
# The following option probably won't work with the LCD displays.
#options         VGA_WIDTH90             # support 90 column modes

#The following lines will set the default colors of the kernel message.
#The kernel message will be printed bright red on black background.  The
#reversed message will be black on red background.
options SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK)
options SC_KERNEL_CONS_REV_ATTR=(FG_LIGHTGREY|BG_RED)


# Enable this for the pcvt (VT220 compatible) console driver
#device		vt
#options 	XSERVER		# support for X server on a vt console
#options 	FAT_CURSOR	# start with block cursor


#device		agp		# support several AGP chipsets
#device      drm
#device 	 radeondrm

# Power management support (see NOTES for more options)
#USING ACPI in z60m
#device		apm
# Add suspend/resume support for the i8254.
device		pmtimer


# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
device		cbb		# cardbus (yenta) bridge
device		pccard		# PC Card (16-bit) bus
device		cardbus		# CardBus (32-bit) bus

# Serial (COM) ports
#device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
#device		ppc
#device		ppbus		# Parallel port bus (required)
#device		lpt		# Printer
#device		plip		# TCP/IP over parallel
#device		ppi		# Parallel port interface device


# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		bfe		# Broadcom BCM440x 10/100 Ethernet
device		bge		# Broadcom BCM570xx Gigabit Ethernet
device		dc		# DEC/Intel 21143 and various workalikes
device		fxp		# Intel EtherExpress PRO/100B (82557,
82558)


# Wireless NIC cards
device          wlan                    #802.11 support
device          wlan_wep                #802.11 WEP support
device          wlan_ccmp               #802.11 CCMP support
device          wlan_tkip               #802.11 TKIP support
device          wlan_xauth              #802.11 external authenticator support
device          wlan_acl                #802.11 MAC ACL support
#device          iwi                     #Intel(R) PRO/Wireless 2200BG> -
builtin wireless card.


# Pseudo devices.
device		loop		# Network loopback
device		random		# Entropy device
device		ether		# Ethernet support
device		sl		# Kernel SLIP
device		ppp		# Kernel PPP
options     PPP_BSDCOMP             #PPP BSD-compress support
options     PPP_DEFLATE             #PPP zlib/deflate/gzip support
options     PPP_FILTER              #enable bpf filtering (needs bpf)

device      tap             #Ethernet tunnel software network interface

device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
device      disc                    #Discard device (ds0, ds1, etc)
device      gre                     #IP over IP tunneling


# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

device      pf
device      pflog

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		ehci		# EHCI PCI->USB interface (USB 2.0)
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires
scbus and da
device		ums		    # Mouse
device      ucom        # serial port over USB
device      uplcom      # Prolific PL-2303 - Comsol's USB-Serial port

device      scbus           # SCSI bus (required for SCSI)
device      da              # Direct Access (disks)





----




_________________________
{Beto|Norberto|Numard} Meijome

"Any intelligent fool can make things bigger and more complex... 
 It takes a touch of genius - and a lot of courage to move in the opposite
direction." Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.


More information about the freebsd-mobile mailing list