-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo make tests failed because of applesmc even though it's there #220
Comments
Hey, i guess you are using a new model of macbook, like me. You just have to change the directory of applesmc, wich may be different: diff --git a/src/mbpfan.c b/src/mbpfan.c
index 1916d64..2bc6fb3 100644
--- a/src/mbpfan.c
+++ b/src/mbpfan.c
@@ -51,7 +51,7 @@
#define max(a,b) ((a) > (b) ? (a) : (b))
#define CORETEMP_PATH "/sys/devices/platform/coretemp.0"
-#define APPLESMC_PATH "/sys/devices/platform/applesmc.768"
+#define APPLESMC_PATH "/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:96/APP0001:00"
/* temperature thresholds
* low_temp - temperature below which fan speed will be at minimum
@@ -274,7 +274,7 @@ t_fans *retrieve_fans()
char *path_fan_max = NULL;
char *path_fan_min = NULL;
- const char *path_begin = "/sys/devices/platform/applesmc.768/fan";
+ const char *path_begin = "/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:96/APP0001:00/fan";
const char *path_output_end = "_output";
const char *path_label_end = "_label";
const char *path_man_end = "_manual"; |
oooh, ok I see, I'll try that |
hum, how can I find the path of the device tho? |
Thank you very very much, I got it to work :DDD |
hehe np |
Can someone submit a pull request that works with the new and old paths? I only have an older MacBook. |
Hi, |
The added script searches for a fan device in /sys/devices and replaces some lines in src/mbpfan.c (see linux-on-mac#220)
I don't understand the status of this issue. I run Fedora 33 with kernel 5.10.7-200.fc33.x86_64 and don't see a difference in the paths. |
I don't understand the status of this issue. Does a more recent kernel change the applesmc path? Related to #236. |
When I run sudo make tests I get:
but the weird thing is that applesmc is builtin to my kernel
(sudo modinfo applesmc)
but, when I run
lsmod | grep smc
, there's is no output.output of
journalctl -b | grep applesmc
:The text was updated successfully, but these errors were encountered: