PWM fan control

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

PWM fan control

Postby marcogazzin » Sun Nov 07, 2021 12:31 pm

Hello, I have seen the following topic:

viewtopic.php?f=31&t=14899#

I have the following:

pwm.png
pwm.png (188.22 KiB) Viewed 20269 times


Can anyone give some hints on how to configure PWM overlay?
Thanks.
marcogazzin
 
Posts: 5
Joined: Sun Nov 07, 2021 11:14 am

Re: PWM fan control

Postby marcogazzin » Sun Nov 07, 2021 1:57 pm

The problem I am having is that /sys/class/pwm/pwmchip0 directory does not exist.
marcogazzin
 
Posts: 5
Joined: Sun Nov 07, 2021 11:14 am

Re: PWM fan control

Postby graysky » Sun Nov 07, 2021 3:22 pm

Which kernel package?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: PWM fan control

Postby marcogazzin » Sun Nov 07, 2021 4:29 pm

This is my kernel:

$this->bbcode_second_pass_code('', 'Linux pikvm 5.4.83-3-ARCH #1 SMP PREEMPT Wed Dec 23 19:06:31 UTC 2020 armv7l GNU/Linux')
marcogazzin
 
Posts: 5
Joined: Sun Nov 07, 2021 11:14 am

Re: PWM fan control

Postby graysky » Sun Nov 07, 2021 4:38 pm

Update your system.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: PWM fan control

Postby marcogazzin » Sun Nov 07, 2021 8:51 pm

I have just updated my system and now the kernel is:

$this->bbcode_second_pass_code('', 'Linux pikvm 5.10.52-12-ARCH #1 SMP Wed Sep 1 05:47:56 MSK 2021 armv7l GNU/Linux')

How can I configure PWM overlay?
If I run the script I am getting:

$this->bbcode_second_pass_code('', '/usr/local/bin/fan: line 52: /sys/class/pwm/pwmchip0/pwm0/duty_cycle: No such file or directory')
Last edited by marcogazzin on Sun Nov 07, 2021 9:15 pm, edited 1 time in total.
marcogazzin
 
Posts: 5
Joined: Sun Nov 07, 2021 11:14 am

Re: PWM fan control

Postby graysky » Sun Nov 07, 2021 8:54 pm

That is not the linux-raspberrypi kernel, is it? I believe you need the RPi Foundation kernel to use that. Post: pacman -Qs linux-
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: PWM fan control

Postby marcogazzin » Sun Nov 07, 2021 9:20 pm

This os comes from here:

$this->bbcode_second_pass_code('', 'https://github.com/pikvm/os')

I thought it was Arch Linux. I need to ask in the pikvm discord.
marcogazzin
 
Posts: 5
Joined: Sun Nov 07, 2021 11:14 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 8 guests