Re: S3 wakeup code

Pavel Machek
2003-07-24T11:00:48Z

Hi!

> > Hmmm...if I understand that right its (still) the very same behaviour
> > with my Z600TEK and I remember someone else having that type of problem.
> > Now I once did some debugging and...nothing. As far as I can tell it
> > does not jump into wakeup code. I never could get any further on that.
> > Though I might have done something wrong - is there any foolproof method
> > on checking wether the system jumps to the wakeup address?
> >
>
> Yea - Would be my request too - Currently S3 is top on my wishlist. I
> did a lot of m68k assembly but i tryed to stay as far away from x86
> assembly as i could. So it would be nice if the more experienced ones
> would provide some #define DEBUG where we would hear interesting sounds
> or blinking keyboard leds or parallel/serial output if certain steps are
> handled successfully.

Hey, i386 assembly is not that hard, and if you are serious about
debugging S3 wakeup, you'll need to know it, anyway.

I don't remember code for beeping... To send data to the paralel port,

movb $0x12, %al
movw $0x378, %dx
outb %al, %dx

should do the trick (of course, you need to preserve eax/edx if they
contain something important). Beeping used to be done in case of panic
in some versions of kernel.

*And* someone actually posted patch to do beeping in acpi wakeup,
search the archives. [It would be nice if you could transform that
patch to something that could be used by #ifdef DEBUG and submitted me
a patch).
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]