Find the answer to your Linux question:
Results 1 to 8 of 8
When I used Debian "sarge", it was easy to suspend my laptop. Now the same command does not work: Code: smeagol:/home/daan# apm -s No APM support in kernel smeagol:/home/daan# modprobe ...
  1. #1
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    320

    Question How to suspend my Debian "etch" laptop? Where's APM?



    When I used Debian "sarge", it was easy to suspend my laptop. Now the same command does not work:

    Code:
    smeagol:/home/daan# apm -s
    No APM support in kernel
    smeagol:/home/daan# modprobe apm
    FATAL: Error inserting apm (/lib/modules/2.6.15-1-486/kernel/arch/i386/kernel/apm.ko): No such device
    smeagol:/home/daan#
    I'm not sure my 90's laptop supports ACPI, although I do get a response when I do

    Code:
    smeagol:/home/daan# acpi
         Battery 1: charging, 98%, 00:02:32 until charged
    smeagol:/home/daan#
    What command should I use to see if I can use this ACPI?

    And if it doesn't work, how do I get the kernel to support APM?

  2. #2
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    Debian kernels are built with APM support but it is disabled by default. You need to boot the kernel with the "apm=on" option if you want to enable the driver.
    http://packages.debian.org/stable/admin/apmd
    Brilliant Mediocrity - Making Failure Look Good

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Posts
    72

    debian apm

    Your old BIOS probably wont handle acpi. You should pass noacpi parameter because acpi will by default turn off apm. Good luck.

  4. #4
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    320
    How do I do those things?

    I've tried editing my /boot/grub/menu.lst file like this:

    Code:
    title		Debian GNU/Linux, kernel 2.6.15-1-486
    root		(hd0,1)
    kernel		/boot/vmlinuz-2.6.15-1-486 root=/dev/hda2 ro apm=on
    initrd		/boot/initrd.img-2.6.15-1-486
    savedefault
    boot
    and also like this:

    Code:
    title		Debian GNU/Linux, kernel 2.6.15-1-486
    root		(hd0,1)
    kernel		/boot/vmlinuz-2.6.15-1-486 root=/dev/hda2 ro noacpi
    initrd		/boot/initrd.img-2.6.15-1-486
    savedefault
    boot
    and like this:

    Code:
    title		Debian GNU/Linux, kernel 2.6.15-1-486
    root		(hd0,1)
    kernel		/boot/vmlinuz-2.6.15-1-486 root=/dev/hda2 ro noacpi apm=on
    initrd		/boot/initrd.img-2.6.15-1-486
    savedefault
    boot
    but still I'm told there's no APM support in the kernel (after rebooting, apmd is installed). Also when I modpobe apm...

    Btw, when I was using Debian "sarge", I did not need apm=on to use apm.

  5. #5
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    you might try rolling your own kernel, and making sure apm is on and apci is off
    http://www.debian.org/doc/manuals/re...kernel-compile
    Brilliant Mediocrity - Making Failure Look Good

  6. #6
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    320
    I feared that might be needed to get APM working. Quite some work, as it would the be the first time I would be doing that.

    Still I'm very happy with my new Debian "etch". Nice new features, such as the alacarte menu editor and the latest version of gnumeric, all available through apt-get.

    Thanks for your help, Vergil and Lestoil.

  7. #7
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    Quote Originally Posted by Daan
    I feared that might be needed to get APM working. Quite some work, as it would the be the first time I would be doing that.

    Still I'm very happy with my new Debian "etch". Nice new features, such as the alacarte menu editor and the latest version of gnumeric, all available through apt-get.

    Thanks for your help, Vergil and Lestoil.
    actually it isn't that bad. If you do it the debian way, everything currently enabled in the current kernel will be enabled. All you should have to do is enable apm and disable acpi.
    Brilliant Mediocrity - Making Failure Look Good

  8. #8
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    320
    I've got APM now without a recompiled kernel. The correct way to disable ACPI when booting is by adding "acpi=off" in stead off "noacpi" to /boot/gub/menu.lst, like this:

    Code:
    title		Debian GNU/Linux, kernel 2.6.15-1-486
    root		(hd0,1)
    kernel		/boot/vmlinuz-2.6.15-1-486 root=/dev/hda2 ro acpi=off
    initrd		/boot/initrd.img-2.6.15-1-486
    savedefault
    boot
    After loading the APM module, I can suspend and resume and I have all other nice APM features!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •