hspak / simpfand Goto Github PK
View Code? Open in Web Editor NEWSimple ThinkPad fan control daemon
License: Other
Simple ThinkPad fan control daemon
License: Other
On low temperature, fan should be off. I tried to set BASE_LVL = 0 but that lead to a segfault on startup.
simpfand[13184]: fan control started
simpfand[13184]: error: could not read temperature input
simpfand[13184]: fan level set to auto, exiting
While using Kernel 4.0.4 on Arch Linux, simpfand doesn't work any more.
For some reason, today my laptop's hwmon is available through /sys/devices/platform/coretemp.0/hwmon/hwmon8/temp1_input
, I discovered that simpfand was not working any more because my laptop was very hot, and after investigating, turns out that it was broken but not that much I'd have noticed.
I patched the sources to add hwmon8 to the list of possible paths, but I don't think it is a viable solution, it should probably be doing things like opendir /sys/devices/platform/coretemp.0/hwmon
and look at what's in there instead of adding more paths.
And there is the strangen thing is that simpfand was not failing to start after not finding the temp path, it somehow ended up defaulting to /proc/acpi/ibm/fan, which does exist but does not contain what was expected, leading to strange logs like this:
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: found temp path: /usr/bin/simpfand
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: found max temp path: /usr/bin/simpfand
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "INC_LOW_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "INC_HIGH_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "INC_MAX_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "DEC_LOW_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "DEC_HIGH_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "DEC_MAX_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: lvl: 100(32) -> 1(32)
juin 01 14:24:52 aching.in.mat.cc simpfand[91625]: lvl: 1(32) -> 1(32)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.