From owner-freebsd-stable@FreeBSD.ORG Fri Dec 2 02:04:56 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D61D16A41F; Fri, 2 Dec 2005 02:04:56 +0000 (GMT) (envelope-from garrigue@math.nagoya-u.ac.jp) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B06443D5C; Fri, 2 Dec 2005 02:04:55 +0000 (GMT) (envelope-from garrigue@math.nagoya-u.ac.jp) Received: from localhost (suiren [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.13.1/8.13.1) with ESMTP id jB224ruS023450; Fri, 2 Dec 2005 11:04:53 +0900 (JST) Date: Fri, 02 Dec 2005 11:04:48 +0900 (JST) Message-Id: <20051202.110448.25479607.garrigue@math.nagoya-u.ac.jp> To: freebsd-mobile@freebsd.org, freebsd-stable@freebsd.org From: Jacques Garrigue In-Reply-To: <20051114.175031.93019232.garrigue@math.nagoya-u.ac.jp> References: <20051114.175031.93019232.garrigue@math.nagoya-u.ac.jp> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: IBM T42 freezes when going to sleep under X11 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 02:04:56 -0000 From: Jacques Garrigue > I've got a strange problem with my IBM T42 / Radeon M10 setup. > > When using the 6.0-RELEASE kernel (including GENERIC), I cannot go to > sleep when X11 is running: the machine freezes, display still on. I > tried disabling DRI, but this does not seem to be the problem: I have > no DRM anyway. > > On the other hand, everything works fines with a 6.0-RC1 kernel. > Was there a big change in between, such that I need to change my > configuration? I finally found the cause of my problems: there has been changes in the em driver (Gb ethernet), such that the machine freezes when trying to switch automatically from the X11 VT to the system console, before going to sleep. The interaction is surprising, but clearly the problem disappears when I remove "device em" from the kernel configuration, and it reappears when I do "kldload if_em". Since I'm using only ath (wireless) anyway, this is fine with me... A previous partial solution suggested to me was to add hw.syscons.sc_no_suspend_vtswitch=1 to sysctl.conf, but this means the screen gets garbled and I have to do the switch by hand anyway, which is a real pain. Worse still: the machine would still freeze when going to sleep while the disk is active. The last step is to track down the bug in em, as it still seems to be there in yesterday's STABLE. Jacques Garrigue