From: Jean-Michel POURE <jm.poure-3sKltW3hOZpWj0EZb7rXcA@public.gmane.org>
To: a.verweij-oe7qfRrRQfeEZXFvZSAUrfP6llvjuJOh@public.gmane.org,
Arjen Verweij
<A.Verweij2-V356GuK0og6dIhEUFHOBvg@public.gmane.org>
Cc: "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
Date: Wed, 17 Dec 2003 14:09:06 +0100 [thread overview]
Message-ID: <200312171409.06540.jm.poure@freesurf.fr> (raw)
In-Reply-To: <Pine.GHP.4.44.0312171156130.27308-100000-1JbLm1bU5j7YjFCvLzxXUyvJykC1LJ6w@public.gmane.org>
Le Mercredi 17 Décembre 2003 12:08, Arjen Verweij a écrit :
> I heard that with powerdown trouble, can possibly be solved by using
> userland deamons, like apmd for apm and acpid for acpi. I will try the
> acpid for my laptop during the holidays.
Sorry, I misread your message. The ACPI deamon loads the required ACPI
modules. What alse can it do? IMHO, the problem does not lay here.
Cheers, Jean-Michel
*************
#! /bin/sh -e
test -x /usr/sbin/acpid || exit 0
# Include acpid defaults if available
OPTIONS=""
if [ -f /etc/default/acpid ] ; then
. /etc/default/acpid
fi
# As the name says. If the kernel supports modules, it'll try to load
# the ones listed in "MODULES".
load_modules() {
LIST=`/sbin/lsmod|awk '!/Module/ {print $1}'`
if [ "$MODULES" = "all" ]; then
LOC="/lib/modules/`uname -r`/kernel/drivers/acpi"
if [ -d $LOC ]; then
MODULES=`( find $LOC -type f -name "*.o" -printf "basename %
f .o\n"; \
find $LOC -type f -name "*.ko" -printf "basename %
f .ko\n" ) | /bin/sh`
else
MODULES=""
fi
fi
for mod in $MODULES; do
echo $LIST | grep -q -w "$mod" || modprobe $mod || /bin/true
done
}
case "$1" in
start)
echo -n "Starting Advanced Configuration and Power Interface daemon: "
[ -f /proc/modules ] && load_modules
if [ ! -d /proc/acpi ]; then
echo "not supported by kernel"
exit 0
fi
start-stop-daemon --start --quiet --exec /usr/sbin/acpid -- -c /etc/acpi/
events $OPTIONS
echo "acpid."
;;
stop)
echo -n "Stopping Advanced Configuration and Power Interface daemon: "
start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/acpid
echo "acpid."
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo "Reloading Advanced Configuration and Power Interface daemon
configuration files"
start-stop-daemon --stop --signal 1 --exec /usr/sbin/acpid
;;
*)
echo "Usage: /etc/init.d/acpid {start|stop|restart|reload|force-reload}"
exit 1
esac
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
next prev parent reply other threads:[~2003-12-17 13:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-17 5:34 power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9 Yu, Luming
[not found] ` <3ACA40606221794F80A5670F0AF15F8401720C38-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2003-12-17 9:38 ` Jean-Michel POURE
[not found] ` <200312171038.23057.jm.poure-3sKltW3hOZpWj0EZb7rXcA@public.gmane.org>
2003-12-17 11:08 ` Arjen Verweij
[not found] ` <Pine.GHP.4.44.0312171156130.27308-100000-1JbLm1bU5j7YjFCvLzxXUyvJykC1LJ6w@public.gmane.org>
2003-12-17 12:57 ` Jean-Michel POURE
2003-12-17 13:09 ` Jean-Michel POURE [this message]
2003-12-17 16:52 ` Karol Kozimor
[not found] ` <20031217165253.GA29159-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-12-18 9:28 ` Jean-Michel POURE
-- strict thread matches above, loose matches on Subject: below --
2003-12-16 11:04 Jean-Michel POURE
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200312171409.06540.jm.poure@freesurf.fr \
--to=jm.poure-3skltw3hozpwj0ezb7rxca@public.gmane.org \
--cc=A.Verweij2-V356GuK0og6dIhEUFHOBvg@public.gmane.org \
--cc=a.verweij-oe7qfRrRQfeEZXFvZSAUrfP6llvjuJOh@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox