Laptop APM failure

Dave Wreski (dave@nic.com)
Sat, 21 Mar 1998 08:13:49 -0500 (EST)


Using even the latest kernel my laptop won't shut down the display. It does
work in windows, so I'd like to get it working in Linux as well. It is a
Compaq LTE5300, 133Mhz, Cirrus Logic 7543 PCI video. It also no longer turns
off the power upon halting the machine. It did do that in earlier kernels.

Kernel 2.1.90 reports:

APM BIOS version 1.1 Flags 0x03 (Driver version 1.4)
Entry f000:e16f cseg16 f000 dseg f000 cseg len ffff, cseg16 len ffff, dseg
len ffff
Connection version 1.0
AC on line, battery status high, battery life 100%

The message I get on the console and thru syslog is:

Mar 13 01:25:19 laptop kernel: apm_bios: set display standby: Unrecognized
device ID

I was working with one of the developers (forgot his name), and he suggested I
apply a patch:

--- linux/drivers/char/apm_bios.c.orig Wed Feb 11 01:13:06 1998
+++ linux/drivers/char/apm_bios.c Thu Feb 12 15:35:55 1998
@@ -261,7 +261,7 @@
#define APM_SET_DISPLAY_POWER_STATE(state, error) \
APM_BIOS_CALL(al) \
: "=a" (error) \
- : "a" (0x5307), "b" (0x01ff), "c" (state) \
+ : "a" (0x5307), "b" (0x0100), "c" (state) \
APM_BIOS_CALL_END
#endif

And I also tried 0x0101, 0x0102 to no avail.

I'm using the latest version of the manufacturers BIOS, and it reports on
bootup:

SystemSoft BIOS for Opti Viper 557/558N 1.01 (2450-73)(Version 7.20)
SystemSoft Plug-n-Play BIOS

And the relevant kernel info:

CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
CONFIG_APM_POWER_OFF=y
# CONFIG_APM_IGNORE_MULTIPLE_SUSPEND is not set

Thanks very much,
Dave Wreski

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu