Searching in acpi-devel mailinglist's archive I found this Pavel Machek's patch that should play a beep on resume:
--- clean/arch/i386/kernel/acpi/wakeup.S 2005-01-22 21:24:51.000000000 +0100 +++ linux/arch/i386/kernel/acpi/wakeup.S 2004-12-25 15:51:04.000000000 +0100 @@ -11,7 +11,22 @@ # # If physical address of wakeup_code is 0x12345, BIOS should call us with # cs = 0x1234, eip = 0x05 -# +# + +#define BEEP \ + inb $97, %al; \ + outb %al, $0x80; \ + movb $3, %al; \ + outb %al, $97; \ + outb %al, $0x80; \ + movb $-74, %al; \ + outb %al, $67; \ + outb %al, $0x80; \ + movb $-119, %al; \ + outb %al, $66; \ + outb %al, $0x80; \ + movb $15, %al; \ + outb %al, $66;
ALIGN .align 4096 @@ -20,6 +35,7 @@ wakeup_code_start = . .code16
+ BEEP movw $0xb800, %ax movw %ax,%fs movw $0x0e00 + "L", %fs:(0x10)
I applied it to a 2.6.13-rc5 vanilla kernel and build it without framebuffer support. I booted the new kernel with "init=/bin/sh" and then tried to S3. On resume system hangs and I can't hear no beep. I hope this helps.
Searching in acpi-devel mailinglist's archive I found this Pavel Machek's patch
that should play a beep on resume:
--- clean/arch/ i386/kernel/ acpi/wakeup. S 2005-01-22 21:24:51.000000000 +0100 i386/kernel/ acpi/wakeup. S 2004-12-25 15:51:04.000000000 +0100
+++ linux/arch/
@@ -11,7 +11,22 @@
#
# If physical address of wakeup_code is 0x12345, BIOS should call us with
# cs = 0x1234, eip = 0x05
-#
+#
+
+#define BEEP \
+ inb $97, %al; \
+ outb %al, $0x80; \
+ movb $3, %al; \
+ outb %al, $97; \
+ outb %al, $0x80; \
+ movb $-74, %al; \
+ outb %al, $67; \
+ outb %al, $0x80; \
+ movb $-119, %al; \
+ outb %al, $66; \
+ outb %al, $0x80; \
+ movb $15, %al; \
+ outb %al, $66;
ALIGN code_start = .
.align 4096
@@ -20,6 +35,7 @@
wakeup_
.code16
+ BEEP
movw $0xb800, %ax
movw %ax,%fs
movw $0x0e00 + "L", %fs:(0x10)
I applied it to a 2.6.13-rc5 vanilla kernel and build it without framebuffer
support. I booted the new kernel with "init=/bin/sh" and then tried to S3. On
resume system hangs and I can't hear no beep. I hope this helps.