LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-30-2006, 03:22 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Help with ACPI and APMD


I have recently recompiled my kernel using 2.6.16 source. All seems to be work fine with shutdown and power-off.

However, since migrating from 2.6.14.6 to 2.6.16 I notice in the terminal output when I am shutting down that an entry something like 'AMPD[xxx]' is reached and it hangs there a couple of seconds before continuing to shutdown.

I know this is the APM daemon, but why is it doing this now with the new kernel?.

Should I really need APMD running if I have ACPI compiled in?

How can I stop APDM to test what happens?.

Any advice on the above would be appreciated.

Thank you.

Last edited by Toods; 03-30-2006 at 04:03 AM.
 
Old 03-30-2006, 10:29 AM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
First you'll need ACPI support in kernel or in its (loaded) modules and acpid package installed.
Stopping apm daemon is as easy as launching killall apmd.
Now you may start acpi daemon. Make sure init script is executable chmod +x /etc/rc.d/rc.apcid and now you may run /etc/rc.d/rc.apcid start.
If all went allright (apcid is in process list, no error/warning messages in syslog) you may perform shutdown now.
If it'll satisfy your expectations you may safely remove package apmd and use acpid solely.
 
Old 03-30-2006, 11:51 AM   #3
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
dunric:

Thank you for your reply.

I have a few comments and questions before I try what you suggested:

1.) I already have the necessary ACPI support in the kernel and the acpid package installed.

2.) If I issue 'kill apmd' how what do I need to do to make sure it does not start up at the next reboot?

3.) If I issue /etc/rc.d/rc.apcid start and all works fine, what do I do to make sure this happens with each reboot.

Thank you for your help.
 
Old 03-30-2006, 12:31 PM   #4
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
ad 2) Apmd is started from rc.M init script. You either have to removepkg apmd (better way) or edit rc.M (a bit dirtier) . Btw. the command is killall.

ad 3) To start acpid automaticaly after a boot, you have to make rc.acpid executable (as I already descibed) and do step described in the previous point (ie. remove apmd package).
 
Old 04-01-2006, 02:47 AM   #5
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by dunric
First you'll need ACPI support in kernel or in its (loaded) modules and acpid package installed.
Stopping apm daemon is as easy as launching killall apmd.
Now you may start acpi daemon. Make sure init script is executable chmod +x /etc/rc.d/rc.apcid and now you may run /etc/rc.d/rc.apcid start.
If all went allright (apcid is in process list, no error/warning messages in syslog) you may perform shutdown now.
If it'll satisfy your expectations you may safely remove package apmd and use acpid solely.
Ok, I've done all this and ACPID loads satisfactorily.

I am still trying to decide now the best way to make ACPID load at boot in preference to APMD. Looking at the rc.M script, I can see why APMD is loaded in preference, but I would like to know why this was not happening with my previous kernel 2.6.14.6 which had exactly the same APM/ACPI modules configured.

Anyone know why this behavior changed?.

To get ACPID to load in preference to APMD, I could obviously uninstall APMD, but would prefer not to do so at this stage. Is there a way of doing this without editing rc.M?.

Thank you for your continuing help.

Last edited by Toods; 04-01-2006 at 04:24 AM.
 
Old 04-01-2006, 11:35 AM   #6
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Good Solution?

OK, I have tried a few things.

What seems to work is to pass this command at the Lilo prompt
Code:
apm=off
Then the rc.M script will bypass loading APMD as it does not find APM running in the kernel and so start ACPID.

I now propose to make this permanent by entering this in lilo.conf.
Code:
append="apm=off".
Would someone please confirm to me that this is a good way of achieving my goal and that it will not cause any system problems.

Thank you.
 
Old 04-01-2006, 12:26 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
It should work fine as long as no hardware in your system requires APM (Which seems to be the case since it works fine with the 'apm=off' at lilo bootprompt.

It's an elegant, simple solution. Well done.
 
Old 04-01-2006, 02:18 PM   #8
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by cwwilson721
It should work fine as long as no hardware in your system requires APM--
Well yes, it all seems to work, but now you have got me a little concerned when you suggest that other hardware may require APM.

My PCs are desktops and as far as I know I only require ACPI to let me configure power management to put the monitor into standby and also to 'power -off' the PCs at shutdown.

Are there any other issues I should be concerned about with "other hardware" requiring specifically APM?.

Thank you for your continuing help.
 
Old 04-01-2006, 04:38 PM   #9
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Found the Reason

I have found the clue as to why APM is active in my 2.6.16 kernel and not active in 2.6.14.6.

The /var/log/messages file shows this line with 2.6.14.6:
Code:
apm: overridden by acpi
It does NOT appear in the log from 2.6.16.

I like to find out reasons for things happening. I found no mention of this change in the kernel changelogs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't use apmd... weiweif Linux - Software 4 03-13-2005 08:04 AM
apmd problem!!! yenonn Slackware 2 03-01-2004 06:49 PM
poweroff & apmd fasta Slackware 10 11-13-2003 07:24 AM
Apmd? alaios Linux - General 1 11-08-2003 02:05 PM
how to configure apmd? dfuse Linux - Newbie 0 06-18-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration