summaryrefslogtreecommitdiff
path: root/community/ibam/ibam-0.5.2-sysfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ibam/ibam-0.5.2-sysfs.patch')
-rw-r--r--community/ibam/ibam-0.5.2-sysfs.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/community/ibam/ibam-0.5.2-sysfs.patch b/community/ibam/ibam-0.5.2-sysfs.patch
index d9d73f924..a20b83db2 100644
--- a/community/ibam/ibam-0.5.2-sysfs.patch
+++ b/community/ibam/ibam-0.5.2-sysfs.patch
@@ -1,16 +1,16 @@
-diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.my/ibam.inl
---- ibam-0.5.2/ibam.inl 2009-03-09 16:53:20.000000000 +0000
-+++ ibam-0.5.2.my/ibam.inl 2011-03-24 19:41:32.000000000 +0000
+diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.q/ibam.inl
+--- ibam-0.5.2/ibam.inl 2009-03-09 19:53:20.000000000 +0300
++++ ibam-0.5.2.q/ibam.inl 2013-11-11 23:45:39.197066574 +0400
@@ -959,7 +959,13 @@
acpi.close();
apm = new acpi_status();
} else {
-+ sysfs.open((sysfs_path+"/BAT0/charge_full").c_str());
+ sysfs.open((sysfs_path+"/BAT0/present").c_str());
+ if(!sysfs.is_open()) {
- sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
++ sysfs.open((sysfs_path+"/BAT1/present").c_str());
+ }
+ if(!sysfs.is_open()) {
-+ sysfs.open((sysfs_path+"/BAT2/charge_full").c_str());
++ sysfs.open((sysfs_path+"/BAT2/present").c_str());
+ }
if(sysfs.is_open()) {
#ifdef IBAM_DEBUG