diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/ibam/ibam-0.5.2-sysfs.patch | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/ibam/ibam-0.5.2-sysfs.patch')
-rw-r--r-- | community/ibam/ibam-0.5.2-sysfs.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/ibam/ibam-0.5.2-sysfs.patch b/community/ibam/ibam-0.5.2-sysfs.patch new file mode 100644 index 000000000..d9d73f924 --- /dev/null +++ b/community/ibam/ibam-0.5.2-sysfs.patch @@ -0,0 +1,17 @@ +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 +@@ -959,7 +959,13 @@ + acpi.close(); + apm = new acpi_status(); + } else { ++ sysfs.open((sysfs_path+"/BAT0/charge_full").c_str()); ++ if(!sysfs.is_open()) { + sysfs.open((sysfs_path+"/BAT1/charge_full").c_str()); ++ } ++ if(!sysfs.is_open()) { ++ sysfs.open((sysfs_path+"/BAT2/charge_full").c_str()); ++ } + if(sysfs.is_open()) { + #ifdef IBAM_DEBUG + cout << "using sysfs" << endl; |