[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#631866: linux-source-2.6.39: no APM support even when compiled in AND booted with apm=on



On Tue, Jun 28, 2011 at 02:51:31PM +0100, Ben Hutchings wrote:
> On Tue, 2011-06-28 at 08:09 +0200, Hans Ekbrand wrote:
> > On Mon, Jun 27, 2011 at 11:21:26PM +0100, Ben Hutchings wrote:
> > > On Mon, Jun 27, 2011 at 11:28:34PM +0200, Hans Ekbrand wrote:
> > > > Package: linux-source-2.6.39
> > > > Version: 2.6.39-2
> > > > Severity: normal
> > > > 
> > > > Summary: I recompiled with make menuconfig, loaded the default
> > > > config for linux-image-2.6.39-486-2 into menuconfig, disabled ACPI,
> > > > enabled APM (but not the sub-items of APM in menuconfig). Then
> > > > booted this image with "apm=on" and now:
> > > > 
> > > > # apm -S
> > > > No APM support in kernel
> > > 
> > > So apm lies...
> > > 
> > > > selected output from dmesg:
> > > > 
> > > > $ dmesg | grep -i apm 
> > > > [    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-2.6.39 root=/dev/mapper/amin-root ro apm=on quiet
> > > > [   12.378224] apm: BIOS not found.
> > > [...]
> > > 
> > > Well, are you sure that this machine does have APM BIOS support?
> > > Because the kernel cannot use APM that is not there...
> > 
> > Yes I am sure, because apm -S has worked perfectly on this particular
> > machine with older kernels. Could it be a battery thing? Otherwise I
> > know APM is supported by that BIOS.
> > 
> > This is an old compaq laptop, "Armada 1540D", so I don't expect the
> > BIOS to be perfectly compliant with the standards. But it did work
> > with older official debian kernels, however, this is the first time I
> > have tried a custom kernel on it.
> 
> Which was the last version it worked on?

I'm working on testing this, but it is hard, since the old kernels
does not work with current udev, and this old beast cannot boot CDs or
USB-sticks. I had to hack the postinst and create new binary packages
to even get them installed, but booting failed. I'll try to manually
put some old kernels and initrds in /boot and configure grub to offer
them at boot-time.

> > That I did not enable the sub-itmes of APM in menuconfig, might that
> > be a problem?
> 
> Yes, but that doesn't explain the 'apm: BIOS not found' warning.

I recompiled with the following setting:

CONFIG_X86_APM_BOOT=y
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_ALLOW_INTS=y

but, in vain.

[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-2.6.39 root=/dev/mapper/amin-root ro apm=on quiet
[   12.428066] apm: BIOS not found.

there is no /proc/apm when booting this kernel, shouldn't it be there?



Reply to: