On 7 May 2000, Jarno Paananen wrote:
> Add line:
>
> append="apm=power-off"
>
> to your lilo.conf (or similar if you use another boot loader). This
> enables the hack, which seems to work fine for me at least.
Nah. This gets broken quite frequently. Try this patch.
--- apm.c Mon May 8 20:02:58 2000
+++ /usr/src/linux/arch/i386/kernel/apm.c Mon May 8 20:01:17 2000
@@ -1647,13 +1647,17 @@
create_proc_info_entry("apm", 0, NULL, apm_get_info);
- kernel_thread(apm, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND | SIGCHLD);
-
if (smp_num_cpus > 1) {
printk(KERN_NOTICE
"apm: disabled - APM is not SMP safe (power off active).\n");
+ pm_power_off = apm_power_off;
+#ifdef CONFIG_MAGIC_SYSRQ
+ sysrq_power_off = apm_power_off;
+#endif
APM_INIT_ERROR_RETURN;
}
+
+ kernel_thread(apm, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND | SIGCHLD);
misc_register(&apm_device);
-- dwmw2- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:11 EST