From owner-freebsd-mobile Tue Dec 17 10:41:29 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1F5137B406 for ; Tue, 17 Dec 2002 10:41:24 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F06143EA9 for ; Tue, 17 Dec 2002 10:41:24 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (12-231-115-57.client.attbi.com[12.231.115.57]) by sccrmhc01.attbi.com (sccrmhc01) with SMTP id <2002121718412300100pob95e>; Tue, 17 Dec 2002 18:41:23 +0000 Message-ID: <3DFF6FD3.9080304@mac.com> Date: Tue, 17 Dec 2002 10:41:23 -0800 From: paul beard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Troxel , mobile Subject: Re: how to load/unload modules at suspend/resume? References: <3DFC1177.3060108@mac.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greg Troxel wrote: > Given that you need to unload and reload the sound driver, I wonder if > that is a symptom that some of the control registers are not being > saved and restored properly across a suspend. I ran into this problem > on a 600E. well, i added some stuff to apmd.conf to exec a couple of kldload/kldunload statements. It still doesn't work upon resume and when I tried loading and unloading it crashed the laptop. I'll try it again but *after* I send this. I confess to some confusion: I can't figure out what comes first, rc.suspend/resume or apmd. There are zzz commands in all of them: I was thinking there was something that listened for zzz and then got things in order before suspending. I guess I should stop being lazy and write a suspend script and have done with this. -- Paul Beard: seeking UNIX/internet engineering work in Seattle area. Details available below: FreeBSD: Have you had your fairings today? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message