suspend/resume improved?
Nate Lawson
nate at root.org
Sat Dec 11 22:28:25 PST 2004
Eric Anderson wrote:
> I just tried this patch (my laptop is having similar responses) - no
> change. I'm off to adding some manual debug code to the acpi source
> files you mentioned in an earlier email.
>
> I can't seem to find Warner's beep code patch though - do you have a
> pointer?
I dug this out of Warner's p4 tree, as written by Takanori Watanabe
(attached). I'll commit this at some point under a kernel option so it
can be enabled for testing. For now, just use the patch.
--
Nate
-------------- next part --------------
Index: sys/i386/acpica/acpi_wakecode.S
===================================================================
RCS file: /home/ncvs/src/sys/i386/acpica/acpi_wakecode.S,v
retrieving revision 1.9
diff -u -r1.9 acpi_wakecode.S
--- sys/i386/acpica/acpi_wakecode.S 1 Jan 2004 22:57:22 -0000 1.9
+++ sys/i386/acpica/acpi_wakecode.S 12 Dec 2004 06:26:15 -0000
@@ -33,12 +33,20 @@
#include <machine/param.h>
#include <machine/specialreg.h>
+#define BEEP movb $0xc0, %al ; \
+ outb %al, $0x42 ; \
+ movb $0x01, %al ; \
+ outb %al, $0x42 ; \
+ inb $0x61, %al ; \
+ orb $0x3, %al ; \
+ outb %al, $0x61 ; \
+
.align 4
.code16
wakeup_16:
nop
cli
-
+ BEEP
/*
* Set up segment registers for real mode and a small stack for
* any calls we make.
More information about the freebsd-acpi
mailing list