You are not logged in.

#1 2006-07-09 12:02:07

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Need some help about FLAGS and Kernel !!

Hi AF!

Well - I have never tried to build my own kernel before - and would like to get some help about this point!
I'm in need of APM instead af APCI - becaurse I want to use wol - Iand found out that the problem is about shutting the machine down correctly! If I use init 0 - i wont start on wol - but if I plug the powercord - then it will!
And found out that I could shut the machine down bu using apm -S --> and that'll do it! I found the package -- installed it using pacman -- but when I type the command - I get the error - No apm support in kernel!!!

So I'll proberly have to build my own Kernel - But am really "scared" of damaging my machine!
The question is - if I want to be able to use APM - what should I enable and disable here :
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_HOTKEY=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_ASUS=m
CONFIG_ACPI_IBM=m
CONFIG_ACPI_IBM_DOCK=y
CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_CUSTOM_DSDT_INITRD=y

#
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
CONFIG_APM_REAL_MODE_POWER_OFF=y

Could anybody tell me what to do here ???


Just getting better .... All the time

Offline

#2 2006-07-09 12:41:17

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Need some help about FLAGS and Kernel !!

I use APM with my ancient laptop, and I have the following in my custom config:

# ACPI (Advanced Configuration and Power Interface) Support
# 
# CONFIG_ACPI is not set

# 
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
# CONFIG_APM_CPU_IDLE is not set
CONFIG_APM_DISPLAY_BLANK=y
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

BTW, I prefer to use '.' instead of '!' - 50% less keystrokes, you know? tongue

Offline

#3 2006-07-09 12:46:13

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Need some help about FLAGS and Kernel !!

the vanilla and beyond Arch kernels have APM support. You just need to pass the correct boot options. I'm pretty sure it's noacpi, or acpi=off to disable acpi, not sure whether apm needs to then be explicitly enabled or manually enabled.

iphitus@sara:~$ zgrep APM /proc/config.gz 
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

Offline

#4 2006-07-09 13:13:17

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Need some help about FLAGS and Kernel !!

BTW, I prefer to use '.' instead of '!' - 50% less keystrokes, you know? Razz

just an old habbit.


with the normal kernel - it says the same :

$ zgrep APM /proc/config.gz
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set 

And have now the kernel26beyond - and made the changes in menu.lst and tryid with noacpi  &  acpi=no   - but still while typing a line in the commandline i get :
No APM support in the kernel.


Just getting better .... All the time

Offline

#5 2006-07-09 14:04:21

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Need some help about FLAGS and Kernel !!

like i said, I cant remember the options, but they exist.

acpi and apm support cannot run at the same time,

adios
James

Offline

#6 2006-07-09 17:04:44

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Need some help about FLAGS and Kernel !!

Try

acpi=off apm=on

Offline

#7 2006-07-10 19:41:14

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Need some help about FLAGS and Kernel !!

Well - here a little update !

By help from      mcfock, I have managed to build my own kernel from scratch!
I have totally disabled ACPI and enabled APM!
But now I get that my machine during shutdown - only comes to the point where it says -
POWER OFF
then SYSTEM HALT
and then I have to push the button to shut it totally down ?? That wasn' t the correct answer either? I have tried with acpi=off apm=on  | and apm=power-off
All gives me the same situation - System halt
or
Bad EIP
/etc/rc.shutdown: Line96  2139 Segmentation Fault /sbin/poweroff -d -f -h -i

I have seen another here in the forum with the same problem ! But my PC is a server not a laptop! But would really like to get the machine to start using wol - so I can put it away!


Just getting better .... All the time

Offline

#8 2006-07-10 19:59:55

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Need some help about FLAGS and Kernel !!

Well - here a little update !

By help from      mcfock, I have managed to build my own kernel from scratch!
I have totally disabled ACPI and enabled APM!
But now I get that my machine during shutdown - only comes to the point where it says -
POWER OFF
then SYSTEM HALT
and then I have to push the button to shut it totally down ?? That wasn' t the correct answer either? I have tried with acpi=off apm=on  | and apm=power-off
All gives me the same situation - System halt
or

BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
*pde 00000000
Oops:  0000 [#1]
PREEMPT SMP
Modules linked in:
CPU: 0
EIP: 0060:[<oooooooo>] Not tainted VLI
EFLAGS 00210286 (2.6.17.4 #4)
EIP is at _stext+0x3feffd69/0x8
eax: c7f39b0c ebx:c7f39b0c ecx: 00000000 edx: 00000000
esi: 00000000 edi: 00000002 ebp: f6ca8000 esp: f6ca9e60
ds: 007b es: 007b ss 0068

Process poweroff (pid: 2154, threadinfo=f6ca8000 task=c7f69e60)
Then at lot of Stack numbers

The call trace   A lot of numbers??

Code: Bad EIP value
EIP: [<00000000>] _stext+ox3feffd68/0x8 SS:ESP 0068:f6ca9e60

/etc/rc.shutdown: line 96: 2154 segmentation fault    /sbin/poweroff -d -f -h -i

I have seen another here in the forum with the same problem ! But my PC is a server not a laptop! But would really like to get the machine to start using wol - so I can put it away!


Just getting better .... All the time

Offline

Board footer

Powered by FluxBB