citruz / haos-rockpi

Home Assistant OS for Rock Pi 4
Apache License 2.0
56 stars 3 forks source link

PWM not working on 12.0 #26

Closed Elarion245 closed 4 months ago

Elarion245 commented 4 months ago

Describe the issue you are experiencing

I just upgraded to 12.0. Everything looked good, apart from the fact that I am unable to get the fan going. This was still working fine with 11.5.

There are no error-messages. I can enable the PWM via echo 0 > /sys/class/pwm/pwmchip0/export and commanding/reading values also runs on the command line as usual. The only issue though is that the fan does not start turning. This was still working fine on 11.5

This leads me to believe that the overlay may not be compatible with the 6.6 Kernel. @citruz Can you confirm this?

I am attaching a zip file with the scripts I use to control the fan speed. Commanding /mnt/data/supervisor/homeassistant/pwm/pwmset 0 100 used to bring the fan up to full speed. pwm.zip

What operating system image do you use?

rock-4c-plus

What version of Home Assistant Operating System is installed?

12.0

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Upgrade to 12.0
  2. Send echo 0 > /sys/class/pwm/pwmchip0/export
  3. Put attached scripts to Send /mnt/data/supervisor/homeassistant/pwm
  4. Send /mnt/data/supervisor/homeassistant/pwm/pwmset 0 100

Anything in the Supervisor logs that might be useful for us?

No

Anything in the Host logs that might be useful for us?

No

System information

4c-plus

Additional information

No response

Elarion245 commented 4 months ago

Forget about this issue... Sorry. I just checked the pin with a voltmeter - it is working just fine. It is my cheap china fan giving up. After putting some WD40 into it, it started spinning again - however still a bit slower than expected. Ergo: all fine an I should get a new fan before the summer ;)