summaryrefslogtreecommitdiff
path: root/extra/acpid
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-24 23:14:53 +0000
committerroot <root@rshg054.dnsready.net>2011-11-24 23:14:53 +0000
commit5894dd675f4bd3ba296d262fae99b3b87a0f87fd (patch)
treea39397b8475e7ca9c5d6950d607183669edfac53 /extra/acpid
parent1e1e4927b05d9b242bfe83794e3a98ab2c8f79ef (diff)
Thu Nov 24 23:14:53 UTC 2011
Diffstat (limited to 'extra/acpid')
-rw-r--r--extra/acpid/PKGBUILD10
-rw-r--r--extra/acpid/acpid1
-rw-r--r--extra/acpid/handler.sh15
3 files changed, 16 insertions, 10 deletions
diff --git a/extra/acpid/PKGBUILD b/extra/acpid/PKGBUILD
index c9464974e..fc0425799 100644
--- a/extra/acpid/PKGBUILD
+++ b/extra/acpid/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 140134 2011-10-07 19:20:48Z eric $
+# $Id: PKGBUILD 143248 2011-11-24 01:29:25Z eric $
# Maintainer:
# Contributor: xduugu
# Contributor: Manolis Tzanidakis
# Contributor: Jonathan Schmidt <j.schmidt@archlinux.us
pkgname=acpid
-pkgver=2.0.12
+pkgver=2.0.13
pkgrel=1
pkgdesc="A daemon for delivering ACPI power management events with netlink support"
arch=('i686' 'x86_64')
@@ -19,10 +19,10 @@ source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz"
'anything'
'handler.sh'
'acpid.conf.d')
-md5sums=('c5104722f72451f64f893b5541bd9ab4'
- '955490c4db5233ec44461db694b873a4'
+md5sums=('5bbbb9a320192df1cdd8d0e9a0196379'
+ 'd69203a032c4583f9abaafcf21a7ed84'
'2d37b98d6e74bab815604b8b48c6cfd4'
- '24bd717aeb6b628a144b6956ff661ab0'
+ 'd411b758e8531adee191b66bcbc2892d'
'929c6d2e91295c22ed9ec6212d7eabef')
build() {
diff --git a/extra/acpid/acpid b/extra/acpid/acpid
index 9177c8207..288ac078d 100644
--- a/extra/acpid/acpid
+++ b/extra/acpid/acpid
@@ -29,6 +29,7 @@ case "$1" in
;;
restart)
$0 stop
+ sleep 1
$0 start
;;
*)
diff --git a/extra/acpid/handler.sh b/extra/acpid/handler.sh
index 8256e76a6..505ed7c11 100644
--- a/extra/acpid/handler.sh
+++ b/extra/acpid/handler.sh
@@ -1,9 +1,6 @@
#!/bin/sh
# Default acpi script that takes an entry for all actions
-# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
-# modify it to not use /sys
-
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
@@ -57,8 +54,16 @@ case "$1" in
esac
;;
button/lid)
- #echo "LID switched!">/dev/tty5
- ;;
+ case "$3" in
+ close)
+ #echo "LID closed!">/dev/tty5
+ ;;
+ open)
+ #echo "LID opened!">/dev/tty5
+ ;;
+ esac
+ ;;
+
*)
logger "ACPI group/action undefined: $1 / $2"
;;