Ask GNHLUG

Fred puissante at biz.puissante.com
Thu Jan 13 07:41:01 EST 2005


On Wed, 2005-01-12 at 22:32 -0500, Benjamin Scott wrote:
> On Wed, 12 Jan 2005, at 6:23pm, talbright at albrightent.com wrote:
> > I have a laptop serving as firewall/router. The problem is that when I
> > shut the lid on the laptop, it goes to sleep and I can't connect to the
> > internet. How do I get it to stay awake when I shut the lid?
> 
>   Brand and model of laptop?
> 
>   Distribution and release?
> 
>   In general, you can try: Removing any kernel module claiming to have
> anything to do with power management, APM, or ACPI, and disabling any BIOS
> setup option or feature mentioning the same.
> 
>   APM = Advanced Power Management (which is not advanced)
>   ACPI = Advanced Configuration and Power Interface
> 

If you want to disable the apm stuff at the kernel level, assuming you
are using Grub, try adding:

apm=off

to the kernel line.

Here's a sample of my grub entries:

title Fedora Core (2.6.10.hydranuke)
  root (hd1,0)
  kernel /vmlinuz-2.6.10.hydranuke ro root=LABEL=/ apm=off rhgb
ramdisk_size=8192000
  initrd /initrd-2.6.10.hydranuke.img


You can also add the ramdisk bit as well -- can't hurt.

Something weird with my computer -- it won't boot Linux with apm. its
BIOS is probably flaky, and I'm too chickenshit to do a BIOS upgrade for
obvious reasons. That single entry saved the day at a time I was not yet
adept at rebuilding kernels and I never bothered to change it since.

-Fred





More information about the gnhlug-discuss mailing list