From owner-freebsd-mobile@FreeBSD.ORG Tue Aug 12 14:38:17 2003 Return-Path: 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 164E037B401 for ; Tue, 12 Aug 2003 14:38:17 -0700 (PDT) Received: from grouse.mail.pas.earthlink.net (grouse.mail.pas.earthlink.net [207.217.120.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B1B443F75 for ; Tue, 12 Aug 2003 14:38:16 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from rowlf.psp.pas.earthlink.net ([207.217.78.187]) by grouse.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19mgqN-00022G-00; Tue, 12 Aug 2003 14:38:15 -0700 Received: from [207.217.78.205] by EarthlinkWAM via HTTP; Tue Aug 12 14:38:15 PDT 2003 Message-ID: <1668879.1060724295591.JavaMail.nobody@rowlf.psp.pas.earthlink.net> Date: Tue, 12 Aug 2003 14:37:18 -0500 (GMT) From: Sean Welch To: spadger@best.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-mobile@freebsd.org Subject: Hot swap of bay devices -- problem solved (I8K) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2003 21:38:17 -0000 Well, I just tried again and I think I found my issue. I must have misremembered the steps I tried. I believe I inserted the drive, tried an attach (which gave me an error messag as the channel was already attached), then tried a reinit. This confused the kernel mightily (apparently) because the devices had changed. Here is what I have discovered I can do successfully under 4.8-RELEASE (I have 5.1-RELEASE also installed and will try that one later): 1) *ALWAYS* do an atacontrol detach [CHANNEL] first, even if booted with a battery or floppy drive in the bay. The channel is definitely attached at boot whether there are any devices there or not. 2) Insert the drive. If it is a floppy drive it will just work. Running atacontrol attach [CHANNEL] won't show anything attached. If it is an atapi drive run atacontrol attach [CHANNEL] and it will show up, ready to be used (provided the device nodes have already been created, of course). In this case it means that after boot (with a battery in the bay the way I usually have it) I can do this: 1) atacontrol detach 1 2) Remove battery 3) Insert floppy and use *OR* Insert Sony CDRW, atacontrol attach 1, and use In my case there are no beeps and I do not have to suspend. (Good thing about that latter -- I upgraded the graphics card and now the bios doesn't resume from RAM suspends and though suspend to disk works well it takes 3 minutes to shut down/start up.) I hope this helps someone else! I think it might be a good thing to consider adding some sort of status switch to atacontrol to show whether or not a channel is attached... Sean