From owner-freebsd-mobile Fri Dec 27 4:27:59 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 D101337B401 for ; Fri, 27 Dec 2002 04:27:57 -0800 (PST) Received: from aristo.essus.net (aristo.fizyka.amu.edu.pl [150.254.108.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id D390943F08 for ; Fri, 27 Dec 2002 04:27:56 -0800 (PST) (envelope-from nexus@essus.net) Received: by aristo.essus.net (Postfix, from userid 1000) id 75F5210821; Fri, 27 Dec 2002 13:27:53 +0100 (CET) Date: Fri, 27 Dec 2002 13:27:53 +0100 From: Bohdan Horst To: freebsd-mobile@FreeBSD.ORG Subject: Re: Thinkpad 600 (Type 2645) & display settings & sound Message-ID: <20021227122752.GA43119@essus.net> References: <20021224122644.6bcf869a.lo0@gmx.net> <20021224134809.GC11786@zot.electricrain.com> <3E0B4F09.1080502@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E0B4F09.1080502@mac.com> User-Agent: Mutt/1.5.1i 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 On Thu, Dec 26, 2002 at 10:48:41AM -0800, paul beard wrote: > Chris Doherty wrote: > >On Tue, Dec 24, 2002 at 12:26:44PM +0100, Baas van Grat said: > > >there's no problems running, but there is a seemingly intractable bug in > >the interaction of the sound driver and APM--if you suspend the system, > >sound doesn't work when it wakes up. I asked freebsd-mobile@ and the > >information (including from Warner Losh) was that the pcm driver is not > >APM-aware, and I'm not sure if it's even possible to fix. > > > >I also haven't had any luck running pcm/csa as loadable modules, although > >other people did, so it's possible I gave up too soon. > > > > I have found that keeping csa and pcm out of the kernel config and > doing the loading/unloading by hand is the only reliable way to > ensure sound works across a suspend/resume. I monkeyed with > rc.suspend/resume but one panic and reboot was enough to keep me > out of that. > > This is on a TPad A20m 2628-4CU. TP 600X 2645-EYG RELENG4 rc.suspend: logger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'` +kldunload snd_csa sync && sync && sync rc.resume: sync && sync && sync +kldload snd_csa exit 0 and works fine :) btw: i had some panics/lockdowns with pcmcia power down added to rc.* (to suspend with AC) best regards -- / irl: Bohdan 'Nexus' Horst | irc: Nexus \ {----------------------v-------^---------------} \ http://irc.pl/nexus | mailto: nexus@irc.pl / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message