summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-11-27 07:59:02 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-11-27 07:59:02 -0600
commit6e577968119b8997233b98620dd5a740c16d2412 (patch)
treebe3d3e6d3f373f5ce5abe51adcf980d3cd953d18
parent6c9f2959a36e608e4d1f71230a9eaaa77940c54e (diff)
HAL has handled this since mid 2006.
-rwxr-xr-xpm/sleep.d/55battery20
1 files changed, 0 insertions, 20 deletions
diff --git a/pm/sleep.d/55battery b/pm/sleep.d/55battery
deleted file mode 100755
index 1944e98..0000000
--- a/pm/sleep.d/55battery
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-# Have HAL rescan batteries on resume.
-# TODO: Merge this code back into HAL, it should not be in pm-utils.
-
-. "${PM_FUNCTIONS}"
-
-resume_batteries()
-{
- for x in $(hal-find-by-capability --capability battery 2>/dev/null); do
- dbus-send --system --reply-timeout=2000 \
- --dest=org.freedesktop.Hal "$x" \
- org.freedesktop.Hal.Device.Rescan "string:$x"
- done
-}
-
-case "$1" in
- resume|thaw)
- resume_batteries
- ;;
-esac