automatic commit
authorFrancois Fleuret <fleuret@moose.fleuret.org>
Fri, 5 Dec 2008 22:30:33 +0000 (23:30 +0100)
committerFrancois Fleuret <fleuret@moose.fleuret.org>
Fri, 5 Dec 2008 22:30:33 +0000 (23:30 +0100)
README.txt
breezed-resume.sh
breezed.cc

index ea3b4cc..1b2b76b 100644 (file)
    be enough. Please let me know if you have problem with the
    resulting overall behavior.
 
    be enough. Please let me know if you have problem with the
    resulting overall behavior.
 
+ * ARGUMENTS
+
+   The breezed executable can read a configuration file (which is
+   /etc/breezed.conf by default, but that you can specify with
+   --configuration-file <file>) or get the various parameters on the
+   command line.
+
+   The thermal files can be specified either with the --thermal-files
+   options on the command line or the thermal_files keyword in the
+   configuration file. The provided value should be a comma-separated
+   list of filenames. When it want to pool the temperature, the daemon
+   will read those files and compute the maximum integer value they
+   contains.
+
+   The fan file can be specified with either --fan-file or the
+   fan_file keyword. The specified file will be used by the daemon to
+   control the fan speed by writing "level n" into it.
+
+   The temperature thresholds can be specified either with the
+   --temperature-thresholds argument, or with the
+   temperature_thresholds keyword in the configuration file. The
+   provided value should be a comma separated list of integers. The
+   first one is actually ignored and forced to -1. Each value states
+   which temperature should trigger the given level.
+
+   For instance, my X61s has 8 fan levels, from 0 to 7. The thresholds
+   I picked are -1,52,54,56,58,60,62,64. Hence, when the temperature
+   reaches 52C, the fan is set to level 1, when it reached 54C it is
+   set to level 2, etc. The maximum speed level 7 is chosen for any
+   temperature equal or greater than 64C. As said above, the
+   temperature to decrease the speed has to be two degrees below the
+   provided thresholds. Hence, the temperature of my X61s has to go
+   down to 50C (52C - 2) for the fan to switch off. Also, the daemon
+   waits at least 30s before reducing the speed of the fan.
+
  * NOTES
 
    I wrote this daemon for my personal usage on a X61s, and using it
  * NOTES
 
    I wrote this daemon for my personal usage on a X61s, and using it
index 491335a..de43c9d 100755 (executable)
 #  You should have received a copy of the GNU General Public License
 #  along with breezed.  If not, see <http://www.gnu.org/licenses/>.
 
 #  You should have received a copy of the GNU General Public License
 #  along with breezed.  If not, see <http://www.gnu.org/licenses/>.
 
-# To put in /etc/acpi/resume.d/99-breezed.sh
+# This file should be copied to /etc/acpi/resume.d/99-breezed.sh
 
 # Resuming messes up the /proc/acpi/* by removing / reloading modules,
 
 # Resuming messes up the /proc/acpi/* by removing / reloading modules,
-# so we have to restart the daemon.
+# so we have to restart the daemon. Maybe I missed something though.
 
 /etc/init.d/breezed.sh restart
 
 /etc/init.d/breezed.sh restart
-
index 78dd2b5..19e500c 100644 (file)
@@ -37,7 +37,7 @@
 using namespace std;
 
 const int major_version_number = 1;
 using namespace std;
 
 const int major_version_number = 1;
-const int minor_version_number = 1;
+const int minor_version_number = 0;
 
 const int buffer_size = 1024;
 
 
 const int buffer_size = 1024;