View previous topic :: View next topic |
Author |
Message |
castor_fou Apprentice

Joined: 23 May 2002 Posts: 249 Location: Clermont-Ferrand, France
|
Posted: Sun Jul 20, 2003 12:54 pm Post subject: power-off on shutdown (SMP) |
|
|
hi,
My machine does not power off even though I passed the apm=power-off
command-line option. I have acpi and apm enabled.
here is my grub.conf entry :
Code: | kernel /boot/bzImage.20030719T1240 root=/dev/scsi/host0/bus0/target0/lun0/part5 acpismp=force apm=power-off |
i can see that in dmesg :
Code: | apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
apm: disabled - APM is not SMP safe (power off active). |
However power-off is still not working...
any idea ? |
|
Back to top |
|
 |
viperlin Veteran

Joined: 15 Apr 2003 Posts: 1319 Location: UK
|
Posted: Sun Jul 20, 2003 1:48 pm Post subject: |
|
|
sorry can't help but i just got my laptop to poweroff with that grub kernel option, thanks! |
|
Back to top |
|
 |
jlg Guru


Joined: 31 May 2002 Posts: 360 Location: Montreal, CANADA
|
Posted: Sun Jul 20, 2003 2:53 pm Post subject: |
|
|
Compile your kernel with acpi only and select system under acpi bus manger. apm will make your system do weird things with smp so don't compile it in the kernel. |
|
Back to top |
|
 |
castor_fou Apprentice

Joined: 23 May 2002 Posts: 249 Location: Clermont-Ferrand, France
|
Posted: Sun Jul 20, 2003 4:59 pm Post subject: |
|
|
are you sure i can power-off my machine with acpi only ? |
|
Back to top |
|
 |
Xargon Tux's lil' helper


Joined: 02 Apr 2003 Posts: 89 Location: State College, PA, USA
|
Posted: Sun Jul 20, 2003 5:20 pm Post subject: |
|
|
You can if your machine is complient with ACPI. Mine is not (Dell Latitude C600) so I exclusively use APM. With APM, be sure to disable SMP and enable "APM Shutdown" in your kernel. _________________ Shhh. Gravity at work. |
|
Back to top |
|
 |
castor_fou Apprentice

Joined: 23 May 2002 Posts: 249 Location: Clermont-Ferrand, France
|
Posted: Sun Jul 20, 2003 8:30 pm Post subject: |
|
|
ok but if i disable SMP, my kernel could use both cpus ? |
|
Back to top |
|
 |
viperlin Veteran

Joined: 15 Apr 2003 Posts: 1319 Location: UK
|
Posted: Sun Jul 20, 2003 8:46 pm Post subject: |
|
|
if you have 2 CPU's then disabling SMP will also disable the 2nd CPU.
i have 1 CPU but SMP is enabled in my kernel (vanilla 2.4.20 with bootsplash patches and loop-AES module)
just make sure "APM Shutdown" is enabled in your kernel and then we'll see. |
|
Back to top |
|
 |
castor_fou Apprentice

Joined: 23 May 2002 Posts: 249 Location: Clermont-Ferrand, France
|
Posted: Sun Jul 20, 2003 9:06 pm Post subject: |
|
|
ok i have down some tests and it is now working just as i wanted to.
here is my grub kernel entry :
Code: | kernel /boot/bzImage.20030720T2230 root=/dev/scsi/host0/bus0/target0/lun0/part5 |
as you can see i don't have any extra parameters here.
and here is my (partial) kernel config :
Code: | #
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
#
# Processor type and features
#
CONFIG_LOLAT=y
CONFIG_LOLAT_SYSCTL=y
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M586MMX31 is not set
# CONFIG_M686 is not set
# CONFIG_MPPRO31 is not set
# CONFIG_M68631 is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMIII31 is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MPENTIUM431 is not set
# CONFIG_MK6 is not set
# CONFIG_MK6231 is not set
# CONFIG_MK7 is not set
# CONFIG_MK731 is not set
# CONFIG_MXP31 is not set
CONFIG_MMP31=y
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_HAS_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_USE_3DNOW=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_MCE=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_THINKPAD is not set
# CONFIG_MICROCODE is not set
CONFIG_X86_MSR=m
CONFIG_X86_CPUID=m
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_HIGHMEM is not set
CONFIG_1GB=y
# CONFIG_2GB is not set
# CONFIG_3GB is not set
# CONFIG_05GB is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_SMP=y
CONFIG_PREEMPT=y
# CONFIG_X86_NUMA is not set
# CONFIG_X86_TSC_DISABLE is not set
CONFIG_X86_TSC=y
CONFIG_HAVE_DEC_LOCK=y
#
# General setup
#
CONFIG_NET=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
# CONFIG_ISA is not set
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y
#
# PCMCIA/CardBus support
#
# CONFIG_PCMCIA is not set
#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_PM=y
# CONFIG_APM is not set
#
# ACPI Support
#
CONFIG_ACPI=y
# CONFIG_ACPI_HT_ONLY is not set
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
|
as you can see : APM disabled and ACPI enabled and it works ! yahaaa ! |
|
Back to top |
|
 |
|