Red Hat Bugzilla – Bug 54181
apm bios is never turned on if the kernel switch apm=on is specified.
Last modified: 2015-01-04 17:01:27 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [ja] (WinNT; U)
Description of problem:
If the kernel switch "apm=on" is specified, the apm bios isnot turned on
because of kernel bug, probably from kernel-2.4.9-ac#.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.specify kernel switch "apm=on" on lilo/grub configuration file.
Actual Results: The file /proc/apm isn't appeared and apmd never work.
Expected Results: The file /proc/apm is appeared and apmd works normally.
This is just a kernel bug. If you don't specify the switch, the apm bios is turned on normally.
In kernel 2.4.9-ac# and 2.4.10, if the switch is specified, the value apm_disabled is set as 0 in
function apm_setup(). But in function apm_init(), the value is checked whether it is -1 or not.
Quick hack for kernel-2.4.10 is below:
--- linux/arch/i386/kernel/apm.c Tue Sep 18 14:52:35 2001
+++ linux/arch/i386/kernel/apm.c.s_nara Sun Sep 30 20:42:18 2001
@@ -1589,7 +1589,7 @@
if (strncmp(str, "off", 3) == 0)
apm_disabled = 1;
if (strncmp(str, "on", 2) == 0)
- apm_disabled = 0;
+ apm_disabled = -1;
if ((strncmp(str, "allow-ints", 10) == 0) ||
(strncmp(str, "allow_ints", 10) == 0))
apm_info.allow_ints = 1;
Thanks for the bugreport; looks indeed a bug.