Hi guys,
This topic is very old now, but maybe someone has time to help me to find the issue with a fan for SATA HAT. I was using simple 5V fan for more than year, attached to 40-pin. Now I bought 12v fan and want to have more control via PWM, but fan does not respond. I have NanoPi M4 version 1 with legacy kernel 4.4 (buster), and implemented script from here:
https://github.com/cgomesu/nanopim4-satahat-fan
I have tried other scripts, but nothing works. I guess it doesn't really matter, which one I use when I finally can make that fan work.
Things I have tried:
- fan works fine, I have tried it with direct 12v and 9v supplies, it is the cheapest one (bought here https://www.aliexpress.com/item/32603431500.html?spm=a2g0s.9042311.0.0.25e04c4dySdv9o)
- removed SATA HAT and tried to get signal from PWM pin to my 5V fan - nothing
- the file tree for `/sys/class/pwm/pwmchip1/` looks normal after I export PWM0:
├── device -> ../../../ff420010.pwm
├── export
├── npwm
├── power
│ ├── async
│ ├── autosuspend_delay_ms
│ ├── control
│ ├── runtime_active_kids
│ ├── runtime_active_time
│ ├── runtime_enabled
│ ├── runtime_status
│ ├── runtime_suspended_time
│ └── runtime_usage
├── pwm0
│ ├── capture
│ ├── duty_cycle
│ ├── enable
│ ├── period
│ ├── polarity
│ ├── power
│ │ ├── async
│ │ ├── autosuspend_delay_ms
│ │ ├── control
│ │ ├── runtime_active_kids
│ │ ├── runtime_active_time
│ │ ├── runtime_enabled
│ │ ├── runtime_status
│ │ ├── runtime_suspended_time
│ │ └── runtime_usage
│ └── uevent
├── subsystem -> ../../../../../class/pwm
├── uevent
└── unexport
- I have tried different numbers for duties. And there are no errors, when script writes to duty_cycle.
I am a bit lost. Maybe someone more experienced can have a look at the logs and spot some missing setup. It would be nice to get this new 12V fan up and running. My 5V fan is pretty noisy.
Here is the log from `armbianmonitor`
http://ix.io/3uv0