Skip to content
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

Possible static path for applesmc sysfs interface #2

Open
Redecorating opened this issue Apr 30, 2021 · 2 comments
Open

Possible static path for applesmc sysfs interface #2

Redecorating opened this issue Apr 30, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Redecorating
Copy link

Redecorating commented Apr 30, 2021

On at least my mbp16,1 on 5.10.12,/sys/bus/acpi/drivers/applesmc/APP* is linked to the folder with the sysfs fan interface:

> file /sys/bus/acpi/drivers/applesmc/APP0001:00
/sys/bus/acpi/drivers/applesmc/APP0001:00: symbolic link to ../../../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:104/APP0001:00
> ls /sys/bus/acpi/drivers/applesmc/APP0001:00
driver                    temp11_label  temp27_input  temp41_label
fan1_input                temp12_input  temp27_label  temp42_input
fan1_label                temp12_label  temp28_input  temp42_label
fan1_manual               temp13_input  temp28_label  temp43_input
fan1_max                  temp13_label  temp29_input  temp43_label
fan1_min                  temp14_input  temp29_label  temp44_input
etc etc

If this is present on other people's computers, it could be used as the path and would allow building mbpfan without it being specific to a particular Mac.

@networkException
Copy link
Owner

Works for me as well. I'd like to wait for some other to also confirm this and then I will implement it.

@charims
Copy link

charims commented Sep 13, 2021

Confirmed on another 16,1 model, though not sure if thats helpful.

5.14.2-1mbp-16.1-linux-wifi #1 SMP PREEMPT Mon, 13 Sep 2021 16:41:34 +0000
$ file /sys/bus/acpi/drivers/applesmc/APP0001:00
/sys/bus/acpi/drivers/applesmc/APP0001:00: symbolic link to ../../../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:104/APP0001:00
$ ls /sys/bus/acpi/drivers/applesmc/APP0001:00/
driver@         fan1_min     fan2_safe                 name          temp13_input  temp17_label  temp21_input  temp25_label  temp2_input   temp33_label  temp38_input  temp41_label  temp46_input  temp4_label   temp8_input
hwmon/          fan1_output  hid                       path          temp13_label  temp18_input  temp21_label  temp26_input  temp2_label   temp34_input  temp38_label  temp42_input  temp46_label  temp50_input  temp8_label
physical_node@  fan1_safe    key_at_index              status        temp14_input  temp18_label  temp22_input  temp26_label  temp30_input  temp34_label  temp39_input  temp42_label  temp47_input  temp50_label  temp9_input
power/          fan2_input   key_at_index_data         temp10_input  temp14_label  temp19_input  temp22_label  temp27_input  temp30_label  temp35_input  temp39_label  temp43_input  temp47_label  temp5_input   temp9_label
subsystem@      fan2_label   key_at_index_data_length  temp10_label  temp15_input  temp19_label  temp23_input  temp27_label  temp31_input  temp35_label  temp3_input   temp43_label  temp48_input  temp5_label   uevent
fan1_input      fan2_manual  key_at_index_name         temp11_input  temp15_label  temp1_input   temp23_label  temp28_input  temp31_label  temp36_input  temp3_label   temp44_input  temp48_label  temp6_input
fan1_label      fan2_max     key_at_index_type         temp11_label  temp16_input  temp1_label   temp24_input  temp28_label  temp32_input  temp36_label  temp40_input  temp44_label  temp49_input  temp6_label
fan1_manual     fan2_min     key_count                 temp12_input  temp16_label  temp20_input  temp24_label  temp29_input  temp32_label  temp37_input  temp40_label  temp45_input  temp49_label  temp7_input
fan1_max        fan2_output  modalias                  temp12_label  temp17_input  temp20_label  temp25_input  temp29_label  temp33_input  temp37_label  temp41_input  temp45_label  temp4_input   temp7_label```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants