/[gentoo-x86]/app-laptop/ibam/files/ibam-0.5.2-acpi.patch
Gentoo

Contents of /app-laptop/ibam/files/ibam-0.5.2-acpi.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Mon Jan 23 01:06:47 2012 UTC (8 years, 8 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-diff
FILE REMOVED
punt old, these have no chances of working

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 --- ibam-0.5.2/ibam.inl 2009-03-09 19:53:20.000000000 +0300
2 +++ ibam-0.5.2/ibam.inl 2010-11-26 04:52:29.590364097 +0300
3 @@ -942,10 +942,11 @@
4 {
5 string pmu_path = "/proc/pmu"; // These strings are already in ibam.hpp,
6 string acpi_path = "/proc/acpi"; // maybe a static function should check this
7 + string acpi_ver_path = "/sys/module/acpi/parameters/acpica_version";
8 string sysfs_path = "/sys/class/power_supply"; // ...
9 ifstream pmu,acpi,sysfs;
10 pmu.open((pmu_path+"/info").c_str());
11 - acpi.open((acpi_path+"/info").c_str());
12 + acpi.open(acpi_ver_path.c_str());
13 if (pmu.is_open()) {
14 #ifdef IBAM_DEBUG
15 cout << "using pmu" << endl;

  ViewVC Help
Powered by ViewVC 1.1.20