Re: APM problem in 5.1-RELEASE

From: Jesse Guardiani <jesse_at_wingnet.net>
Date: Thu, 19 Jun 2003 13:48:18 -0400
Jesse Guardiani wrote:

> Darryl Okahata wrote:
> 
>> Jesse Guardiani <jesse_at_wingnet.net> 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
Received on Thu Jun 19 2003 - 08:59:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:12 UTC