3 Mar 2003 11:07
Re: [PATCH 2.4 & 2.5] Armada laptops' apm BIOS flaw
Samuel Thibault <Samuel.Thibault <at> ens-lyon.fr>
2003-03-03 10:07:31 GMT
2003-03-03 10:07:31 GMT
Hello,
It's been a while since I submitted a patch to correct it, but I
couldn't see it applied, except to alan's kernels, here it is again,
still working on both current 2.4 & 2.5:
--- linux-2.4.20-orig/arch/i386/kernel/apm.c 2002-11-29 13:23:24.000000000 +0100
+++ linux-2.4.20/arch/i386/kernel/apm.c 2002-11-29 13:21:05.000000000 +0100
<at> <at> -1074,6 +1074,19 <at> <at>
}
if ((error == APM_SUCCESS) || (error == APM_NO_ERROR))
return 1;
+ if (error == APM_NOT_ENGAGED) {
+ static int tried;
+ int eng_error;
+ if (tried++ == 0) {
+ eng_error = apm_engage_power_management(APM_DEVICE_ALL, 1);
+ if (eng_error) {
+ apm_error("set display", error);
+ apm_error("engage interface", eng_error);
+ return 0;
+ } else
+ return apm_console_blank(blank);
+ }
+ }
apm_error("set display", error);
return 0;
}
(just to remember, it was intended to fix Armada's bioses which don't
(Continue reading)
RSS Feed