aboutsummaryrefslogtreecommitdiff
path: root/system/ibam/patches/ibam-0.5.2-acpi.patch
diff options
context:
space:
mode:
authorAntonio Hernández Blas <hba.nihilismus@gmail.com>2011-11-07 18:48:31 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-11-26 09:08:06 -0600
commite4ae67a1c0ec690139b43561bdf202fffdd8450f (patch)
treef242a08545cb295976e800b6440ebc9c84341704 /system/ibam/patches/ibam-0.5.2-acpi.patch
parent90c59aaa99d78fc65a37bb41b186008ee9db4bdd (diff)
system/ibam: Added (Intelligent BAttery Monitor)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/ibam/patches/ibam-0.5.2-acpi.patch')
-rw-r--r--system/ibam/patches/ibam-0.5.2-acpi.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/ibam/patches/ibam-0.5.2-acpi.patch b/system/ibam/patches/ibam-0.5.2-acpi.patch
new file mode 100644
index 0000000000000..321f5b3c8dfb6
--- /dev/null
+++ b/system/ibam/patches/ibam-0.5.2-acpi.patch
@@ -0,0 +1,15 @@
+--- ibam-0.5.2/ibam.inl 2009-03-09 19:53:20.000000000 +0300
++++ ibam-0.5.2/ibam.inl 2010-11-26 04:52:29.590364097 +0300
+@@ -942,10 +942,11 @@
+ {
+ string pmu_path = "/proc/pmu"; // These strings are already in ibam.hpp,
+ string acpi_path = "/proc/acpi"; // maybe a static function should check this
++ string acpi_ver_path = "/sys/module/acpi/parameters/acpica_version";
+ string sysfs_path = "/sys/class/power_supply"; // ...
+ ifstream pmu,acpi,sysfs;
+ pmu.open((pmu_path+"/info").c_str());
+- acpi.open((acpi_path+"/info").c_str());
++ acpi.open(acpi_ver_path.c_str());
+ if (pmu.is_open()) {
+ #ifdef IBAM_DEBUG
+ cout << "using pmu" << endl;