QWERTYASDF писал(а): ↑14.09.2013 11:09Так а как лучше состыковать то две составляющие - сигнализацию о заряде и действие (pm).
ИМХО это делается либо самописными костылями (можно например crond'ом читать заряд батарейки, у меня это всё в /proc/acpi/battery/BAT0/ ), либо через man laptop_mode, там вот что есть
Shell
$ ls /etc/laptop-mode/conf.d/
ac97-powersave.conf ethernet.conf sched-smt-power-savings.conf
auto-hibernate.conf exec-commands.conf start-stop-programs.conf
battery-level-polling.conf hal-polling.conf terminal-blanking.conf
bluetooth.conf intel-hda-powersave.conf usb-autosuspend.conf
board-specific/ intel-sata-powermgmt.conf video-out.conf
configuration-file-control.conf lcd-brightness.conf wireless-ipw-power.conf
cpufreq.conf nmi-watchdog.conf wireless-iwl-power.conf
dpms-standby.conf runtime-pm.conf wireless-power.conf
eee-superhe.conf sched-mc-power-savings.conf
вам нужен автохибирнейт
Код: Выделить всё
###############################################################################
# Auto-hibernation settings
# -------------------------
#
# Using these settings, you can make laptop mode tools automatically put your
# computer into hibernation when the battery level goes critically low.
#
# This feature only works on ACPI, and only works on computers whose batteries
# give off battery events often enough.
#
# NOTE: If your battery does NOT give off battery events often enough, you can
# enable the battery-level-polling module to make this work after all. See
# battery-level-polling.conf for more information.