From owner-freebsd-questions@FreeBSD.ORG Fri Mar 10 03:52:42 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FC9716A420 for ; Fri, 10 Mar 2006 03:52:42 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD36543D48 for ; Fri, 10 Mar 2006 03:52:41 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 18571 invoked from network); 10 Mar 2006 14:52:41 +1100 Received: from andromeda.lef.com.au (HELO localhost) (210.8.93.2) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 10 Mar 2006 14:52:40 +1100 Date: Fri, 10 Mar 2006 14:52:33 +1100 From: Norberto Meijome To: Norberto Meijome Message-ID: <20060310145233.0f23bf39@localhost> In-Reply-To: <43DCD2FB.7040106@meijome.net> References: <43DCD2FB.7040106@meijome.net> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: SOLUTION : Lockup when suspending from X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2006 03:52:42 -0000 On Mon, 30 Jan 2006 01:36:43 +1100 Norberto Meijome wrote: > Hi all, > I need some help trying to understand why this is happening. > > apm -z (or zzz) works just fine from any of the text-based virtual > consoles. If I run it from a shell in X, either as root or myself > with sudo, the computer locks up - no panic, nothing . The only > change I can see is the light in the USB mouse goes out, and that's > it, total lock. > > If I do ctrl-Alt-F1 , a non-stopping beeping ensues. > > Upon restart, there is no log whatsoever of the apm -z attempt, and > background fsck is run against all partitions > > sudo apm -z works fine. > It happens in X having kdm or not kdm, KDE or just an xterm with no > window manager running (aka 'failsafe' session type in kdm) > > - Toshiba Tecra A2, Bios 1.30 > - FreeBSD xxxxxxx 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Jan 19 > 01:54:47 EST 2006 root@xxxxxx:/usr/obj/usr/src/sys/GENERIC i386 > > - APM, no ACPI (disabled via boot/device.hints) (long story, tons of > g_vfs_done errors on resume) works for suspend (apm -z )and standby > (apm -Z) . > - rc.conf : allscreens_flags="MODE_30" > apm_enable="YES" > apmd_enable="YES" > (and lots others, but only these seem relevant) > - Xserver : xorg-server-6.8.2_6 , xorg-libraries-6.9.0 > - KDE 3.4.2 --- For the archive : sysctl knob hw.syscons.sc_no_suspend_vtswitch=1 fixed the issue Add it to /etc/sysctl.conf so it's set on start up