[UFO Chicago] APM on sid

Fawad Halim xsdamage@yahoo.com
Fri, 24 Aug 2001 20:13:50 -0700 (PDT)


Folks, thanks for all your help. Finally got APM
poweroff to work. Here're the options pertaining to
APM in my .config. Worked on 2.4.8 with a few other
patches (unrelated to APM, though).

CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
# CONFIG_APM_RTC_IS_GMT is not set
CONFIG_APM_ALLOW_INTS=y
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

Before, I had CONFIG_APM_DO_ENABLE,
CONFIG_APM_REAL_MODE_POWER_OFF enabled. I wonder why
that'd be a problem (please tell me if you do know).

Anyway, the important thing is I got it to work.

P.S. Sorry I can't attend the meetings at George's. I
live pretty far off (Lombard). Would love to as soon
as I get a chance.

Thanks again
-fawad


--- Elliot Shank <clonezne@galumph.com> wrote:
> Fawad Halim wrote:
> > 1. Why does Mandrake power down while Debian
> doesn't.
> 
> Interesting related note: RH6.2 automatically
> powered off on halt(8). 
> RH7.1 does not.  Yet, if I select the "Halt" option
> from the Gnome log
> out dialog, the machine /is/ powered off.  I've been
> wondering at this
> for a while but your email prompted me to look at
> the halt man page,
> which I hereby quote:
> 
> NAME
>        halt, reboot, poweroff - stop the system.
> 
> SYNOPSIS
>        /sbin/halt [-n] [-w] [-d] [-f] [-i] [-p]
>        /sbin/reboot [-n] [-w] [-d] [-f] [-i]
>        /sbin/poweroff [-n] [-w] [-d] [-f] [-i]
> 
> DESCRIPTION
>        Halt notes that the system is being brought
> down
>        in the file /var/log/wtmp, and then either
> tells
>        the kernel to halt, reboot or poweroff the
> system.
>        If halt or reboot is called when the system
> is not
>        in runlevel 0 or 6, shutdown(8) will be
> invoked
>        instead (with the flag -h or -r).
> 
> OPTIONS
> [sniped for brevity]
>        -p     When halting the system, do a
> poweroff.
>               This is the default when halt is
> called as
>               poweroff.
> [snip again]
> 
> NOTES
>        Under older sysvinit releases, reboot and
> halt
>        should never be called directly. From release
> 2.74
>        on halt and reboot invoke shutdown(8) if the
> system
>        is not in runlevel 0 or 6. This means that if
> halt
>        or reboot cannot find out the current
> runlevel
>        (for example, when /var/run/utmp hasn't been
>        initialized correctly) shutdown will be
> called,
>        which might not be what you want.  Use the -f
> flag
>        if you want to do a hard halt or reboot.
> 
> 
> 
> So, I'm thinking I ought to try out the poweroff
> variant...
> 
> Mmmmmmm... I'm liking that -n option.  NOT!  I don't
> see what use that
> option is for other than testing fsck.
> 
> 
> > 2. How do I find out what compilation options the
> > mandrake folks used to compile their kernel?
> 
> Not that it helps your situation, but RedHat has
> started including all
> their configs for their kernels:
> 
> ~		
> elliot@nil 3 10:54:12 0> l --width=70
> /usr/src/linux-2.4/configs
> kernel-2.4.3-athlon-smp.config 
> kernel-2.4.3-i586-smp.config
> kernel-2.4.3-athlon.config     
> kernel-2.4.3-i586.config
> kernel-2.4.3-i386-BOOT.config  
> kernel-2.4.3-i686-enterprise.config
> kernel-2.4.3-i386-smp.config   
> kernel-2.4.3-i686-smp.config
> kernel-2.4.3-i386.config       
> kernel-2.4.3-i686.config
> 
> _______________________________________________
> UFO Chicago -- Users of Free Operating Systems
> Free Software Rules -- Proprietary Drools!
>
http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/ufo


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/