On Tuesday 20 January 2004 20:55, Behdad Esfahbod wrote:
> On Tue, 20 Jan 2004, Diego Iastrubni wrote:
> > [EMAIL PROTECTED] root]# cat /proc/acpi/event
> > button/power PWRF 00000080 00000002
> > button/power PWRF 00000080 00000003
> > button/power PWRF 00000080 00000004
> > button/power PWRF 00000080 00000005
> > button/power PWRF 00000080 00000006
> > ..
> > and goes on each time i press (one line at a time).
> >
> > [EMAIL PROTECTED] root]# cat /etc/acpi/events/power
> > event=button/power (PWR.|PBTN)
> > action=/sbin/poweroff
> >
> > What can go wrong?
>
> Does it work if you run /sbin/poweroff?
yes it does.
I have a link on my desktop which runs "halt" which also shuts down the box.
more interesting, after "service acpi restart" i get on dmeg:
ACPI: Processor [CPU1] (supports C1, 16 throttling states)
ACPI: Power Button (FF) [PWRF]
ACPI: Processor [CPU1] (supports C1, 16 throttling states)
ACPI: Power Button (FF) [PWRF]
ACPI: Processor [CPU1] (supports C1, 16 throttling states)
ACPI: Power Button (FF) [PWRF]
and...:
[EMAIL PROTECTED] todos]# modprobe button
/lib/modules/2.4.22-10mdk/kernel/drivers/acpi/button.o.gz: init_module: No
such device
Hint: insmod errors can be caused by incorrect module parameters, including
invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
modprobe: insmod /lib/modules/2.4.22-10mdk/kernel/drivers/acpi/button.o.gz
failed
modprobe: insmod button failed
btw... the system is Mandrake 9.2
--
diego,
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]