RE: Let init know user wants to shutdown

Grover, Andrew (andrew.grover@intel.com)
Wed, 11 Apr 2001 10:06:52 -0700


I'm hesitant to do this, since 1) You can put those printk's in yourself to
find out if your particular system is working and 2) You can just cat
/proc/sys/event, hit a button, and you should see output if it works.

Regards -- Andy

> From: John Fremlin [mailto:chief@bandits.org]

> "Grover, Andrew" <andrew.grover@intel.com> writes:
>
> > This is not correct, because we want the power button to be
> > configurable. The user should be able to redefine the power
> > button's action, perhaps to only sleep the system. We currently
> > surface button events to acpid, which then can do the right thing,
> > including a shutdown -h now (which I assume notifies init).
>
> That's just fine and dandy, but
>
> [...]
>
> > > + printk ("acpi: Power button pressed!\n");
>
> [...]
>
> > > + printk("acpi: Sleep button pressed!\n");
>
> Do you think you could keep the above part of the patch? It would be
> nice to know how much of ACPI was actually working ;-)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/