public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
@ 2003-12-16 11:04 Jean-Michel POURE
  0 siblings, 0 replies; 8+ messages in thread
From: Jean-Michel POURE @ 2003-12-16 11:04 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Dear friends,

I recently installed Debian 2.6-pre9 kernel on two ASUS computers: a K7 
terminator and a L3800 laptop. Previously, I was using apm under kernel 2.4.

Under the nex kernel, ACPI seems to work fine as I can monitor various 
information. The problem is that both computers do not power-off.

When pressing the button, /etc/acpi/powerbtn.sh is executed and init 0 is 
trigerred.

if ps -Af | grep -q '[k]desktop' && test -f /usr/bin/dcop
then
    dcop --all-users ksmserver ksmserver logout 0 2 0 && exit 0
fi

/sbin/init 0

But the computers do not shut-down cleanly (no power-off). I checked their 
BIOS and in both cases, the latest versions are installed. /var/log/acpid 
shows normal information:

[Mon Dec 15 16:45:43 2003] received event "button/power PWRF 00000080 
00000001"
[Mon Dec 15 16:45:43 2003] executing action "/etc/acpi/powerbtn.sh"
[Mon Dec 15 16:45:43 2003] BEGIN HANDLER MESSAGES
[Mon Dec 15 16:45:44 2003] END HANDLER MESSAGES
[Mon Dec 15 16:45:44 2003] action exited with status 0
[Mon Dec 15 16:45:44 2003] completed event "button/power PWRF 00000080 
00000001"
[Mon Dec 15 16:45:46 2003] exiting

Do I miss something? This power-off question is quite a problem for me as 
everytime I start the computers, ext3 recovers files. Can anyone help me?

Best regards,
Jean-Michel



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
@ 2003-12-17  5:34 Yu, Luming
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720C38-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Yu, Luming @ 2003-12-17  5:34 UTC (permalink / raw)
  To: jm.poure-3sKltW3hOZpWj0EZb7rXcA,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>Under the nex kernel, ACPI seems to work fine as I can monitor various information. 
Good news.

>The problem is that both computers do not power-off.
I'm not sure, please try patch filed at http://bugzilla.kernel.org/show_bug.cgi?id=1141


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
       [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>
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-Michel POURE @ 2003-12-17  9:38 UTC (permalink / raw)
  To: Yu, Luming, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Le Mercredi 17 Décembre 2003 06:34, Yu, Luming a écrit :
> >Under the nex kernel, ACPI seems to work fine as I can monitor various
> > information.
> Good news.
> >The problem is that both computers do not power-off.
> I'm not sure, please try patch filed at
> http://bugzilla.kernel.org/show_bug.cgi?id=1141

Dear Yu,

Thanks, apparently this patch loops to reach S5 state. It seems to be a 
possible solution. Some questions:

1) The patch is against a 2.4 kernel. Can it be safely applied against 2.6?
2) How does the APM deamon switch-off the machine. Does it loops too?

Now, a third station (based on a Tyan board) has the same problem. This 
power-off problem is a real problem. It does not only occur under ASUS 
boards.

Maybe I miss something, but the main need of ACPI is to be able to switch-off 
a computer... Why is this patch not applied by default?

Best regards,
Jean-Michel



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
       [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 16:52       ` Karol Kozimor
  1 sibling, 1 reply; 8+ messages in thread
From: Arjen Verweij @ 2003-12-17 11:08 UTC (permalink / raw)
  To: Jean-Michel POURE; +Cc: Yu, Luming, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 2071 bytes --]

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.

On Wed, 17 Dec 2003, Jean-Michel POURE wrote:

> Le Mercredi 17 Décembre 2003 06:34, Yu, Luming a écrit :
> > >Under the nex kernel, ACPI seems to work fine as I can monitor various
> > > information.
> > Good news.
> > >The problem is that both computers do not power-off.
> > I'm not sure, please try patch filed at
> > http://bugzilla.kernel.org/show_bug.cgi?id=1141
>
> Dear Yu,
>
> Thanks, apparently this patch loops to reach S5 state. It seems to be a
> possible solution. Some questions:
>
> 1) The patch is against a 2.4 kernel. Can it be safely applied against 2.6?
> 2) How does the APM deamon switch-off the machine. Does it loops too?
>
> Now, a third station (based on a Tyan board) has the same problem. This
> power-off problem is a real problem. It does not only occur under ASUS
> boards.
>
> Maybe I miss something, but the main need of ACPI is to be able to switch-off
> a computer... Why is this patch not applied by default?
>
> Best regards,
> Jean-Michel
>
>
>
> -------------------------------------------------------
> 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Ìk
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
>



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
       [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
  1 sibling, 0 replies; 8+ messages in thread
From: Jean-Michel POURE @ 2003-12-17 12:57 UTC (permalink / raw)
  To: a.verweij-oe7qfRrRQfeEZXFvZSAUrfP6llvjuJOh, Arjen Verweij
  Cc: Yu, Luming, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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.

Unfortunately, I believe ACPI and APM cannot be used at the same time.

I am quite sure that I misunderstand something in ACPI. Seriously, I cannot 
believe ACPI is not able to power-down computers. Can anyone explain me how 
to power-down a computer using ACPI? Is there a special script of something?

Think of servers running in rack-mounts. They need ACPI to cool down when 
there is no activity. How do you shut them down using ACPI?

Cheers, Jean-Michel



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
       [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
  1 sibling, 0 replies; 8+ messages in thread
From: Jean-Michel POURE @ 2003-12-17 13:09 UTC (permalink / raw)
  To: a.verweij-oe7qfRrRQfeEZXFvZSAUrfP6llvjuJOh, Arjen Verweij
  Cc: Yu, Luming, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
       [not found]     ` <200312171038.23057.jm.poure-3sKltW3hOZpWj0EZb7rXcA@public.gmane.org>
  2003-12-17 11:08       ` Arjen Verweij
@ 2003-12-17 16:52       ` Karol Kozimor
       [not found]         ` <20031217165253.GA29159-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Karol Kozimor @ 2003-12-17 16:52 UTC (permalink / raw)
  To: Jean-Michel POURE; +Cc: Yu, Luming, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Thus wrote Jean-Michel POURE:
> Thanks, apparently this patch loops to reach S5 state. It seems to be a 
> possible solution. Some questions:
[...]
> Maybe I miss something, but the main need of ACPI is to be able to switch-off 
> a computer... Why is this patch not applied by default?

ACPI shutdowns well here on the same machine (L3800C), I don't recall having
any problems at all with any kernel, but it's possible I didn't test test7
extensively. Anyway, test11 shutdowns fine, so go upgrade your kernel to
fix that.
Best regards,

-- 
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org


-------------------------------------------------------
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=1278&alloc_id=3371&op=click

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: power-off problem : ASUS K7 + ASUS L3800 + Kernel 2.6-pre9
       [not found]         ` <20031217165253.GA29159-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
@ 2003-12-18  9:28           ` Jean-Michel POURE
  0 siblings, 0 replies; 8+ messages in thread
From: Jean-Michel POURE @ 2003-12-18  9:28 UTC (permalink / raw)
  To: Karol Kozimor; +Cc: Yu, Luming, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Le Mercredi 17 Décembre 2003 17:52, Karol Kozimor a écrit :
> ACPI shutdowns well here on the same machine (L3800C), I don't recall
> having any problems at all with any kernel, but it's possible I didn't test
> test7 extensively. Anyway, test11 shutdowns fine, so go upgrade your kernel
> to fix that.
> Best regards,

Thanks a lot. Maybe the reason for that is that I installed Kernel-2.6-test9 
from Debian unstable, and did not compile it myself. Can it be the reason?

Best regards, Jean-Michel



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-12-18  9:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox