Главная страница


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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 shutdown events   Dmitry Suhodoev   04 Dec 2003 12:28:51 
 Re: shutdown events   Eugene Grosbein   04 Dec 2003 15:23:41 
 shutdown events   Dmitry Suhodoev   05 Dec 2003 00:15:04 
 shutdown events   Slawa Olhovchenkov   05 Dec 2003 00:56:48 
 Re: shutdown events   Eugene Grosbein   05 Dec 2003 11:27:39 
 shutdown events   Dmitry Suhodoev   05 Dec 2003 12:17:28 
 Re: shutdown events   Eugene Grosbein   05 Dec 2003 14:57:30 
 Re: shutdown events   Mykola Dzham   05 Dec 2003 10:06:25 
 Re: shutdown events   Alexey Desyatnik   05 Dec 2003 08:38:06 
 Re: shutdown events   Demin Alexander   04 Dec 2003 11:30:09 
 shutdown events   Dmitry Suhodoev   05 Dec 2003 00:14:59 
 shutdown events   Vladimir Kurtukov   04 Dec 2003 16:00:07 
 Re: shutdown events   Eugene Grosbein   04 Dec 2003 16:41:56 
 shutdown events   Vladimir Kurtukov   04 Dec 2003 17:07:12 
 shutdown events   Dmitry Suhodoev   05 Dec 2003 02:32:12 
 shutdown events   Vladimir Kurtukov   05 Dec 2003 15:29:49 
Архивное /ru.unix.bsd/22213fcf9fc5.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional