juampicarosi / fan-control Goto Github PK
View Code? Open in Web Editor NEWSimple shell script to control hdd and cpu fans of macs in linux
License: GNU General Public License v3.0
Simple shell script to control hdd and cpu fans of macs in linux
License: GNU General Public License v3.0
lines 72 and 109 will always eval as "true" :
if [ $fan2_manual="0" ]; then
and
if [ $fan3_manual="0" ]; then
should be rewritten as :
if [ "$fan2_manual" = "0" ]; then
and
if [ "$fan3_manual" = "0" ]; then
I am getting a line 9: [: missing ']'
And
Line 139: [: missing ']'
Output when command 'fan' is used.
I am also not getting a response in fan control in 'auto' mode.
Simple and effective, and open source. Thank you!
I am unsure what mbp
branch is, compared to master
.
If master
has some specificity that mbp does not, would it be possible to list them, so we could merge the whole ?
In mbp
source, we have some tests on strings like exhaust
or master
to determine if we check for more fans...
Could we instead check for the existence of /sys/.../fanX_label
to easily find everything and do not make any exceptions ? Code would be easier to understand, we could take off many tests, and rely only on /sys/
files for valid arguments.
Note: I did simplify the code coz' I want to expand it, for example to allow to modify different fan variables... If the code structure is easier to read, with functions (no copy/paste/edit of code), it will be easier to add stuff... But it is just an opinion.
I type the fan command and get the following output:
cat: /sys/devices/platform/applesmc.768/fan2_label: No such file or directory
cat: /sys/devices/platform/applesmc.768/fan3_label: No such file or directory
Available fans:
master
and when I try to control master (example: fan master 80) , it outputs:
cat: /sys/devices/platform/applesmc.768/fan2_label: No such file or directory
cat: /sys/devices/platform/applesmc.768/fan3_label: No such file or directory
and the fan speed doesn't change
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.