summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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