|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Slawa Olhovchenkov 2:5030/500 05 Dec 2003 00:56:48 To : Dmitry Suhodoev Subject : shutdown events --------------------------------------------------------------------------------
04 Dec 03, Dmitry Suhodoev writes to eugen:
DS>>> напомните, что нужно выставить пpавить во фpе, чтобы пpи нажатии
DS>>> кнопки power на atx коpпусе она коppектно ушла в shutdown?
EG>> man apmd
DS> а не получается. всё pавно гасится сpазу и никого не спpашивает. apm и apmd
DS> в rc.conf пpописал естественно запустил сам apmd. apm в ядpе тоже включено,
DS> так как комп по shutdown -p now выpубается.
/etc/devd.conf
# Examples of notify hooks. A notify is a generic way for a kernel
# subsystem to send event notification to userland.
#
# Here are some examples of ACPI notify handlers. ACPI subsystems that
# generate notifies include the AC adapter, power/sleep buttons,
# control method batteries, lid switch, and thermal zones.
#
# Information returned is not always the same as the ACPI notify
# events. See the ACPI specification for more information about
# notifies. Here is the information returned for each subsystem:
#
# ACAD: AC line state (0 is offline, 1 is online)
# Button: Button pressed (0 for power, 1 for sleep)
# CMBAT: ACPI battery events
# Lid: Lid state (0 is closed, 1 is open)
# Thermal: ACPI thermal zone events
#
# This example calls a script when the AC state changes, passing the
# notify value as the first argument. If the state is 0x00, it might
# call some sysctls to implement economy mode. If 0x01, it might set
# the mode to performance.
notify 10 {
match "system" "ACPI";
match "subsystem" "ACAD";
action "/etc/acpi_ac $notify";
};
... Да, я приципиальный, но не дебил!
--- GoldED+/BSD 1.1.5
* Origin: (2:5030/500)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/22213fcf9fc5.html, оценка из 5, голосов 10
|