Bug 54181 - apm bios is never turned on if the kernel switch apm=on is specified.
Summary: apm bios is never turned on if the kernel switch apm=on is specified.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: kernel
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-10-01 00:24 UTC by Shinya Narahara
Modified: 2015-01-04 22:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-30 03:42:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Shinya Narahara 2001-10-01 00:24:03 UTC
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):


How reproducible:
Always

Steps to Reproduce:
1.specify kernel switch "apm=on" on lilo/grub configuration file.
2.reboot.
3.


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.

Additional info:

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;

Comment 1 Arjan van de Ven 2001-10-01 10:32:10 UTC
Thanks for the bugreport; looks indeed a bug.


Note You need to log in before you can comment on or make changes to this bug.