From owner-freebsd-current@FreeBSD.ORG Thu Jun 19 10:59:28 2003 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 A0EA637B401 for ; Thu, 19 Jun 2003 10:59:28 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9737343FCB for ; Thu, 19 Jun 2003 10:59:26 -0700 (PDT) (envelope-from freebsd-current@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19T3eb-0002h8-00 for ; Thu, 19 Jun 2003 19:56:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19T3WB-0001mv-00 for ; Thu, 19 Jun 2003 19:48:15 +0200 From: Jesse Guardiani Date: Thu, 19 Jun 2003 13:48:18 -0400 Organization: WingNET Lines: 123 Message-ID: References: <200306190025.RAA17828@mina.soco.agilent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@main.gmane.org User-Agent: KNode/0.7.2 X-Mail-Copies-To: never Sender: news Subject: Re: APM problem in 5.1-RELEASE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jesse@wingnet.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 17:59:29 -0000 Jesse Guardiani wrote: > Darryl Okahata wrote: > >> Jesse Guardiani wrote: >> >>> Help! This APM BIOS suspends fine under Linux (2.4.18 >>> kernel)! I've tried everything I can think of to >>> get suspend working under 5.1-RELEASE! >> >> Wild-a** guess: >> >>> ata1-slave: timeout waiting for interrupt >>> ata1-slave: ATAPI identify failed >> >> I don't get this in my dmesg (and I have an A31, where apm seems to >> work). As you say it seems to be hanging during ATA reset, perhaps this >> has something to do with it? Is there any way to disable the >> ata1-slave? BIOS? Kernel setting??? > > I was actually wondering the same thing. I think the > next time I boot I'll try disabling ata1 altogether > with a hint and see if that works. > > I'll be looking for a setting to disable just the slave > in the meantime... OK. Here's an update. This is some funky junk: First off, I'd like to note, once again, that APM works PERFECTLY under Linux on this laptop with a 2.4.18 and 2.4.20 kernel. I could even suspend and resume from X Windows without problems. FreeBSD's APM code must not be as mature as Linux's, or Linux's APM code has patches applied to deal with my (possibly) quirky BIOS. As I said I would do in my last post, I tried to set: hint.ata.1.disabled="1" at the loader prompt to disable the second ATA channel (and my CDROM/DVD-ROM). This didn't work. The ata1 device was still detected and my laptop still froze on resume. But then I had a brilliant idea: Why not remove the CD-ROM drive from the bay? So I did. And Lo, it works! I have posted my APM resume log at the bottom of this message so everyone can see where my system normally freezes. ############################################################ # Further APM usage notes: ############################################################ (All notes are applicable _only_ with the CD-ROM/DVD-ROM REMOVED from the UltraBay Plus drive bay!) # ------------------- # When suspend works # ------------------- 1.) When logged into a VTY 2.) The _FIRST_ time I use 'zzz', but all further suspends lock the system. 3.) ANYTIME I use Fn+F4, as long as it isn't preceeded by a 'zzz' suspend AND I'm looking at a VTY (as opposed to X Windows). # ----------------------------- # When suspend locks my system # ----------------------------- 1.) When in X Windows (this never happened in Linux. What gives?) 2.) When I suspend using either Fn+F4 _OR_ 'zzz' after I have used 'zzz' once. (I think this may have something to do with the fact that 'zzz' doesn't sync the disks and pause before going into suspend, whereas Fn+F4 does.) I'm still very interested in getting suspend to work when my CD-ROM is installed. I can live with the other quirks, but I need my CD-ROM. Does anyone have any ideas? Does anyone know how to disable ata1-slave? (ata1-master is my CD-ROM. Please see previous posts for dmesg.) ------ begin APM resume log ------ fwohci0: fwohci_pci_suspend fwohci0: fwohci_pci_resume: power_state = 0x00000000 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. fwohci0: Initiate bus reset ata0: resetting devices .. fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) done ata1: resetting devices .. >>>>>> This is where it freezes when my CD-ROM is installed <<<<<< done ums0: at uhub1 port 1 (addr 2) disconnected ums0: detached Jun 19 11:56:04 trevarthan kernel: wakeup from sleeping state (slept 00:00:12) Jun 19 11:56:04 trevarthan moused: unable to open /dev/ums0: No such file or dir ectory ums0: Logitech USB Receiver, rev 1.10/16.00, addr 2, iclass 3/1 ums0: 7 buttons and Z dir. ------ end APM resume log ------ Thanks! -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net