The patch titled beeping patch for debugging acpi sleep has been added to the -mm tree. Its filename is beeping-patch-for-debugging-acpi-sleep.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: beeping patch for debugging acpi sleep From: Pavel Machek <pavel@xxxxxx> Starting beeper as soon as ACPI sleep returns is very useful in debugging "apparently dead" machines. If it beeps at all, it makes sense to start playing with CMOS tracer. Signed-off-by: Pavel Machek <pavel@xxxxxxx> Cc: "Rafael J. Wysocki" <rjw@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/i386/kernel/acpi/wakeup.S | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletion(-) diff -puN arch/i386/kernel/acpi/wakeup.S~beeping-patch-for-debugging-acpi-sleep arch/i386/kernel/acpi/wakeup.S --- a/arch/i386/kernel/acpi/wakeup.S~beeping-patch-for-debugging-acpi-sleep +++ a/arch/i386/kernel/acpi/wakeup.S @@ -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,9 @@ wakeup_code: wakeup_code_start = . .code16 +# Uncomment this to make your computer start producing ugly noise as soon +# as BIOS returns to this real-mode entry point. +# BEEP movw $0xb800, %ax movw %ax,%fs movw $0x0e00 + 'L', %fs:(0x10) _ Patches currently in -mm which might be from pavel@xxxxxx are working-3d-dri-intel-agpko-resume-for-i815-chip.patch git-input.patch x86_64-pm_trace-support.patch i386-do-not-restore-reserved-memory-after-hibernation.patch i386-do-not-restore-reserved-memory-after-hibernation-fix.patch acpi-preserve-the-ebx-value-in-acpi_copy_wakeup_routine.patch freezer-make-kernel-threads-nonfreezable-by-default.patch freezer-make-kernel-threads-nonfreezable-by-default-fix.patch freezer-make-kernel-threads-nonfreezable-by-default-fix-fix.patch freezer-make-kernel-threads-nonfreezable-by-default-fix-2.patch pm-do-not-require-dev-spew-to-get-pm_debug.patch swsusp-remove-incorrect-code-from-userc.patch swsusp-remove-code-duplication-between-diskc-and-userc.patch swsusp-introduce-restore-platform-operations.patch swsusp-fix-hibernation-code-ordering.patch hibernation-prepare-to-enter-the-low-power-state.patch freezer-avoid-freezing-kernel-threads-prematurely.patch freezer-use-__set_current_state-in-refrigerator.patch freezer-return-int-from-freeze_processes.patch freezer-remove-redundant-check-in-try_to_freeze_tasks.patch pm-introduce-hibernation-and-suspend-notifiers.patch pm-introduce-hibernation-and-suspend-notifiers-fix.patch pm-introduce-hibernation-and-suspend-notifiers-tidy.patch pm-introduce-hibernation-and-suspend-notifiers-fix-fix.patch pm-disable-usermode-helper-before-hibernation-and-suspend.patch pm-disable-usermode-helper-before-hibernation-and-suspend-fix.patch beeping-patch-for-debugging-acpi-sleep.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html