I've tweaked the python script to make it slightly easier to use a
separate config file under pCP.  I changed the 'tmpconfig' line as
folows:


Code:
--------------------
    #   tmpconfig = load_config("etc/argononed.conf")
        tmpconfig = load_config("/home/tc/argononed.conf")
  
--------------------


Then I put this argononed.conf example file in /home/tc


Code:
--------------------
    #
  # Argon One Fan Configuration
  #
  # List below the temperature (Celsius) and fan speed (in percent) pairs
  # Use the following form:
  # min.temperature=speed
  #
  # Example:
  # 55=10
  # 60=55
  # 65=100
  #
  # NOTE: Lines beginning with # are ignored
  #
  # Start below:
  55=10
  60=55
  65=100
--------------------


To make any changes in this file take effect the python script needs to
be restarted, e.g. by (backing up and) rebooting (or the process can be
killed and then restarted from the command line).  This means there's
very little benefit compared to editing the python script itself.  But
at least with this method the python script can be left untouched.

If I knew anything about python I'd have a go at making it re-load this
'argononed.conf' file every time it checks the temperature, so that it
can be changed on-the-fly without restarting the script.  But I think a
few default temperature settings are good enough that I can put off
learning python for a bit longer :-)


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113575

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to