Настройка энергосбережения на ноуте
sspphheerraa 3 ноября, 2007 - 12:47
Делал все по этому гиду:
http://www.gentoo.org/doc/en/power-management-guide.xml
Как указано в нем, - при вставлении/вытаскивании провода питания должны быть события "Switching to AC mode" и "Switching to battery mode", но в логе их не видно...
[Sat Nov 3 11:48:55 2007] starting up [Sat Nov 3 11:48:55 2007] 1 rule loaded [Sat Nov 3 11:59:42 2007] exiting [Sat Nov 3 12:02:49 2007] starting up [Sat Nov 3 12:02:49 2007] 1 rule loaded [Sat Nov 3 12:04:47 2007] received event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:04:47 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:04:47 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:04:48 2007] END HANDLER MESSAGES [Sat Nov 3 12:04:48 2007] action exited with status 0 [Sat Nov 3 12:04:48 2007] completed event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:04:48 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:04:48 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:04:48 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:04:48 2007] END HANDLER MESSAGES [Sat Nov 3 12:04:48 2007] action exited with status 0 [Sat Nov 3 12:04:48 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:04:48 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:04:48 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:04:48 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:04:48 2007] END HANDLER MESSAGES [Sat Nov 3 12:04:48 2007] action exited with status 0 [Sat Nov 3 12:04:48 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:06:25 2007] received event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:06:25 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:06:25 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:06:25 2007] END HANDLER MESSAGES [Sat Nov 3 12:06:25 2007] action exited with status 0 [Sat Nov 3 12:06:25 2007] completed event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:06:26 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:06:26 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:06:26 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:06:26 2007] END HANDLER MESSAGES [Sat Nov 3 12:06:26 2007] action exited with status 0 [Sat Nov 3 12:06:26 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:06:26 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:06:26 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:06:26 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:06:26 2007] END HANDLER MESSAGES [Sat Nov 3 12:06:26 2007] action exited with status 0 [Sat Nov 3 12:06:26 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:18:46 2007] exiting [Sat Nov 3 12:18:46 2007] starting up [Sat Nov 3 12:18:46 2007] 3 rules loaded [Sat Nov 3 12:21:45 2007] received event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:21:45 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:21:45 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:21:45 2007] END HANDLER MESSAGES [Sat Nov 3 12:21:45 2007] action exited with status 0 [Sat Nov 3 12:21:45 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:21:45 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] END HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] action exited with status 0 [Sat Nov 3 12:21:47 2007] completed event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:21:47 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:21:47 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:21:47 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] END HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] action exited with status 0 [Sat Nov 3 12:21:47 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:21:47 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] END HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] action exited with status 0 [Sat Nov 3 12:21:47 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:21:47 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:21:47 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:21:47 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] END HANDLER MESSAGES [Sat Nov 3 12:21:47 2007] action exited with status 0 [Sat Nov 3 12:21:47 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:24:23 2007] exiting [Sat Nov 3 12:25:19 2007] starting up [Sat Nov 3 12:25:19 2007] 3 rules loaded [Sat Nov 3 12:25:30 2007] exiting [Sat Nov 3 12:26:37 2007] starting up [Sat Nov 3 12:26:37 2007] 3 rules loaded [Sat Nov 3 10:27:19 2007] exiting [Sat Nov 3 12:29:39 2007] starting up [Sat Nov 3 12:29:39 2007] 3 rules loaded [Sat Nov 3 12:31:33 2007] received event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:31:33 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:31:33 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:31:33 2007] END HANDLER MESSAGES [Sat Nov 3 12:31:33 2007] action exited with status 0 [Sat Nov 3 12:31:33 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:31:33 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] END HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] action exited with status 0 [Sat Nov 3 12:31:35 2007] completed event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:31:35 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:31:35 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:31:35 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] END HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] action exited with status 0 [Sat Nov 3 12:31:35 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:31:35 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] END HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] action exited with status 0 [Sat Nov 3 12:31:35 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:31:35 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:31:35 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:31:35 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] END HANDLER MESSAGES [Sat Nov 3 12:31:35 2007] action exited with status 0 [Sat Nov 3 12:31:35 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:38:10 2007] received event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:38:10 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:38:10 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:10 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:10 2007] action exited with status 0 [Sat Nov 3 12:38:10 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:38:10 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] action exited with status 0 [Sat Nov 3 12:38:12 2007] completed event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:38:12 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:38:12 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:38:12 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] action exited with status 0 [Sat Nov 3 12:38:12 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:38:12 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] action exited with status 0 [Sat Nov 3 12:38:12 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:38:12 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:38:12 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:38:12 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:12 2007] action exited with status 0 [Sat Nov 3 12:38:12 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:38:34 2007] received event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:38:34 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:38:34 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:34 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:34 2007] action exited with status 0 [Sat Nov 3 12:38:34 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:38:34 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] action exited with status 0 [Sat Nov 3 12:38:36 2007] completed event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:38:36 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:38:36 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:38:36 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] action exited with status 0 [Sat Nov 3 12:38:36 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:38:36 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] action exited with status 0 [Sat Nov 3 12:38:36 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:38:36 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:38:36 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:38:36 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] END HANDLER MESSAGES [Sat Nov 3 12:38:36 2007] action exited with status 0 [Sat Nov 3 12:38:36 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:39:06 2007] received event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:39:06 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:39:06 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:06 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:06 2007] action exited with status 0 [Sat Nov 3 12:39:06 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:39:06 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] action exited with status 0 [Sat Nov 3 12:39:08 2007] completed event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:39:08 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:39:08 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:39:08 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] action exited with status 0 [Sat Nov 3 12:39:08 2007] executing action "/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:39:08 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] action exited with status 0 [Sat Nov 3 12:39:08 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:39:08 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:39:08 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:39:08 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:08 2007] action exited with status 0 [Sat Nov 3 12:39:08 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:39:35 2007] exiting [Sat Nov 3 12:39:36 2007] starting up [Sat Nov 3 12:39:36 2007] 3 rules loaded [Sat Nov 3 12:39:41 2007] received event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:39:41 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:39:41 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:41 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:41 2007] action exited with status 0 [Sat Nov 3 12:39:41 2007] completed event "ac_adapter ACAD 00000080 00000000" [Sat Nov 3 12:39:42 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:39:42 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:39:42 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:42 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:42 2007] action exited with status 0 [Sat Nov 3 12:39:42 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:39:42 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:39:42 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:39:42 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:42 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:42 2007] action exited with status 0 [Sat Nov 3 12:39:42 2007] completed event "processor CPU0 00000080 00000000" [Sat Nov 3 12:39:47 2007] received event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:39:47 2007] executing action "/etc/acpi/default.sh ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:39:47 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:47 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:47 2007] action exited with status 0 [Sat Nov 3 12:39:47 2007] completed event "ac_adapter ACAD 00000080 00000001" [Sat Nov 3 12:39:48 2007] received event "battery BAT1 00000080 00000001" [Sat Nov 3 12:39:48 2007] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001" [Sat Nov 3 12:39:48 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:48 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:48 2007] action exited with status 0 [Sat Nov 3 12:39:48 2007] completed event "battery BAT1 00000080 00000001" [Sat Nov 3 12:39:48 2007] received event "processor CPU0 00000080 00000000" [Sat Nov 3 12:39:48 2007] executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000" [Sat Nov 3 12:39:48 2007] BEGIN HANDLER MESSAGES [Sat Nov 3 12:39:48 2007] END HANDLER MESSAGES [Sat Nov 3 12:39:48 2007] action exited with status 0 [Sat Nov 3 12:39:48 2007] completed event "processor CPU0 00000080 00000000"
в чем может быть проблема?
»
- Для комментирования войдите или зарегистрируйтесь
Закомментирова
Закомментировал /etc/acpi/default.sh (похоже он перехватывал события)
теперь выполняется нужный скрипт, но в логах "Switching to AC mode" и "Switching to battery mode" все равно не видно:
проблема в /etc/acpi/actions/pmg_switch_runlevel.sh скрипте?