PDA

View Full Version : make fan consistent upon reboot.



sblantipodi
May 23rd, 2024, 11:26 PM
hi there... I have a docker compose file that should mount this volume:
/sys/devices/platform/cooling_fan/hwmon/hwmon3/fan1_input

the weird thing is that sometimes the file is written in
/sys/devices/platform/cooling_fan/hwmon/hwmon3/fan1_input
and sometimes in
/sys/devices/platform/cooling_fan/hwmon/hwmon2/fan1_input


if I reboot it switched from hwmon2 to hwmon3 and viceversa


why this file is not consistent upon reboot? is it possible to make it consistent upon reboot?

sblantipodi
May 24th, 2024, 08:46 AM
I solved by populating an environment variable with a bash script and using it in my docker compose.
not the best practice I think, but it works.