From owner-freebsd-mobile Sat Dec 14 21:22:13 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 9A79537B401 for <freebsd-mobile@freebsd.org>; Sat, 14 Dec 2002 21:22:12 -0800 (PST) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52A8143EA9 for <freebsd-mobile@freebsd.org>; Sat, 14 Dec 2002 21:22:12 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (12-231-115-57.client.attbi.com[12.231.115.57]) by rwcrmhc52.attbi.com (rwcrmhc52) with SMTP id <20021215052202052001ajdbe>; Sun, 15 Dec 2002 05:22:02 +0000 Message-ID: <3DFC1177.3060108@mac.com> Date: Sat, 14 Dec 2002 21:21:59 -0800 From: paul beard <paulbeard@mac.com> 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: freebsd-mobile@FreeBSD.ORG Subject: how to load/unload modules at suspend/resume? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-mobile.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-mobile> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-mobile> X-Loop: FreeBSD.org I have finally figured out what I need to do for sound to work on my ThinkPad A20. My first mistake was compiling the module into the kernel: kinda makes it hard for the kernel to detach/attach devices and drivers if you do that. So now I have worked out that if I can send a "kldunload snd_pcm && kldunload snd_csa" at suspend and the reverse (kldload) at resume, everything will be fine. But how to do that? I thought it was done in apmd.conf, but that hasn't paid off so far. What am I missing? -- Paul Beard: seeking UNIX/internet engineering work in Seattle area. Details available below: <http://paulbeard.no-ip.org/paulbeard.html> Weiner's Law of Libraries: There are no answers, only cross references. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message