From owner-freebsd-current@FreeBSD.ORG Mon Feb 2 05:36:05 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD78E16A4CE for ; Mon, 2 Feb 2004 05:36:05 -0800 (PST) Received: from d7058.upc-d.chello.nl (d7058.upc-d.chello.nl [213.46.7.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB24D43D1D for ; Mon, 2 Feb 2004 05:36:03 -0800 (PST) (envelope-from marc@bowtie.nl) Received: from bowtie.nl (host29.meck.bowtie.nl [192.168.5.29]) i12DZTF1038986; Mon, 2 Feb 2004 14:35:31 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <401E5227.2030804@bowtie.nl> Date: Mon, 02 Feb 2004 14:35:35 +0100 From: Marc van Kempen User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jake Khuon References: <200402012253.i11MrQEP006609@Espresso.NEEBU.Net> In-Reply-To: <200402012253.i11MrQEP006609@Espresso.NEEBU.Net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: APM panics X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 13:36:05 -0000 Jake Khuon wrote: >I've been wrestling with this since last week and have tried to use ACPI but >I really do need to be able to suspend... something which ACPI doesn't >support on my IBM T30. I get the following when I issue the apm command >with the apm module loaded: > > kernel trap 9 with interrupts disabled > > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x8:0xc067d0cb > stack pointer = 0x10:0xd4758a38 > frame pointer = 0x10:0xd4758a44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 64 (apm) > trap number = 9 > panic: general protection fault > at line 821 in file /usr/src/sys/i386/i386/trap.c > cpuid = 0; > > > Hi Jake, I have an IBM R40 and got ACPI (sort of) running by doing the following: I got suspend/resume (with X running) working with ACPI by disabling glx in /etc/XF86Config and setting the following sysctl variables: hw.acpi.sleep_button_state=S3 hw.acpi.lid_switch_state=S3 However, after suspending and resuming, the ethernetcard hangs after transmitting several hundred kBs. Suspending/resuming resets the interface and makes it work again, however for the same short period of time as after the first suspend/resume. Regards, Marc.