* LID button Event ACPI malfunction
@ 2004-12-22 0:26 Benedek Frank
0 siblings, 0 replies; 2+ messages in thread
From: Benedek Frank @ 2004-12-22 0:26 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi
When I shut down, my machine (Dell 700m) goes into suspend to ram twice. I
have to wake it
up, and it goes further, sleeps again, wake it up, and finally shuts down. I
just had ACPI worked out (kernel 2.6.9), and since just recently I can go to
suspend to RAM
and DISK as well. Now, why a shut down triggers a suspend-to-ram?
When I look at the LID button under ACPI
/proc/acpi/button/lid/LID0/state
it says
state: closed
It is clearly not closed, as I am looking at the screen. :)
I have an ACPI event that gets triggered when I REALLY close the lid, and that
works.
Here is the event
/etc/acpi/event/lidbtn
event=button/lid
action=/etc/acpi/lidbtn.sh
And here is the script
/etc/acpi/lidbtn.sh
#!/bin/sh
/sbin/sleep
And finally here is /sbin/sleep, that was written by me for the machine's
special needs (like module unloading, video_post etc.)
rmmod b44
echo "mem" > /sys/power/state
#echo 3 > /proc/acpi/sleep
modprobe i830
/root/emu/video_post
modprobe b44
/etc/init.d/networking restart
Thanks for any help
Ben
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: LID button Event ACPI malfunction
@ 2004-12-22 2:05 Li, Shaohua
0 siblings, 0 replies; 2+ messages in thread
From: Li, Shaohua @ 2004-12-22 2:05 UTC (permalink / raw)
To: Benedek Frank, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I guess the system invokes ACPI event when shut down. If the button
driver provides a .shutdown method, the issue could be fixed.
Actually in recent discussion, we agreed every ACPI driver should
provide .shutdown/.suspend/.resume method, but we must migrate to sysfs
interface for ACPI and use generic device model first.
Thanks,
Shaohua
>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Benedek Frank
>Sent: Wednesday, December 22, 2004 8:26 AM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: [ACPI] LID button Event ACPI malfunction
>
>Hi
>
>When I shut down, my machine (Dell 700m) goes into suspend to ram
twice. I
>have to wake it
>up, and it goes further, sleeps again, wake it up, and finally shuts
down.
>I
>just had ACPI worked out (kernel 2.6.9), and since just recently I can
go
>to
>suspend to RAM
>and DISK as well. Now, why a shut down triggers a suspend-to-ram?
>
>When I look at the LID button under ACPI
>
>/proc/acpi/button/lid/LID0/state
>
>it says
>
>state: closed
>
>It is clearly not closed, as I am looking at the screen. :)
>
>I have an ACPI event that gets triggered when I REALLY close the lid,
and
>that
>works.
>
>Here is the event
>
>/etc/acpi/event/lidbtn
>
>event=button/lid
>action=/etc/acpi/lidbtn.sh
>
>And here is the script
>
>/etc/acpi/lidbtn.sh
>
>#!/bin/sh
>/sbin/sleep
>
>And finally here is /sbin/sleep, that was written by me for the
machine's
>special needs (like module unloading, video_post etc.)
>
>rmmod b44
>echo "mem" > /sys/power/state
>#echo 3 > /proc/acpi/sleep
>modprobe i830
>/root/emu/video_post
>modprobe b44
>/etc/init.d/networking restart
>
>Thanks for any help
>
>Ben
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real
users.
>Discover which products truly live up to the hype. Start reading now.
>http://productguide.itmanagersjournal.com/
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-22 2:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-22 0:26 LID button Event ACPI malfunction Benedek Frank
-- strict thread matches above, loose matches on Subject: below --
2004-12-22 2:05 Li, Shaohua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox