<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geekworm.com/index.php?action=history&amp;feed=atom&amp;title=CommentStreams%3A520aba0af9d994e60caadc84452745a2</id>
	<title>CommentStreams:520aba0af9d994e60caadc84452745a2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geekworm.com/index.php?action=history&amp;feed=atom&amp;title=CommentStreams%3A520aba0af9d994e60caadc84452745a2"/>
	<link rel="alternate" type="text/html" href="https://wiki.geekworm.com/index.php?title=CommentStreams:520aba0af9d994e60caadc84452745a2&amp;action=history"/>
	<updated>2026-07-01T10:42:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.geekworm.com/index.php?title=CommentStreams:520aba0af9d994e60caadc84452745a2&amp;diff=34677&amp;oldid=prev</id>
		<title>173.35.170.176: Migrated comment #5325</title>
		<link rel="alternate" type="text/html" href="https://wiki.geekworm.com/index.php?title=CommentStreams:520aba0af9d994e60caadc84452745a2&amp;diff=34677&amp;oldid=prev"/>
		<updated>2024-11-24T22:10:15Z</updated>

		<summary type="html">&lt;p&gt;Migrated comment #5325&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There is an error in the &amp;quot;Configuring Different gpipchip number and pwmchip number for Raspberry Pi 5 hardware&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
sed -i &amp;#039;s/pwmchip0/pwmchip2/g&amp;#039; x729-fan.sh&lt;br /&gt;
&lt;br /&gt;
This command is changing pwmchip0 to pwmchip2 value in the x729-fan.sh script. It is incorrect because the Pi 5 board is using pwmchip0 as shown below:&lt;br /&gt;
&lt;br /&gt;
$ sudo cat /sys/kernel/debug/pwm&lt;br /&gt;
0: platform/107d517a80.pwm, 2 PWM devices&lt;br /&gt;
 pwm-0   ((null)              ): period: 0 ns duty: 0 ns polarity: normal&lt;br /&gt;
 pwm-1   (sysfs               ): requested enabled period: 500000 ns duty: 250000 ns polarity: normal&lt;br /&gt;
&lt;br /&gt;
1: platform/1f00098000.pwm, 4 PWM devices&lt;br /&gt;
 pwm-0   ((null)              ): period: 0 ns duty: 0 ns polarity: normal&lt;br /&gt;
 pwm-1   ((null)              ): period: 0 ns duty: 0 ns polarity: normal&lt;br /&gt;
 pwm-2   ((null)              ): period: 0 ns duty: 0 ns polarity: normal&lt;br /&gt;
 pwm-3   ((null)              ): period: 0 ns duty: 0 ns polarity: normal&lt;br /&gt;
&lt;br /&gt;
Also, it can be proved according to the journal log where it is clearly seen that the service is failing with error.&lt;br /&gt;
 &lt;br /&gt;
Nov 24 01:07:51 pi5 systemd[1]: x729-fan.service: Scheduled restart job, restart counter is at 2.&lt;br /&gt;
Nov 24 01:07:51 pi5 systemd[1]: Started x729-fan.service - Daemon to monitor and control fan speed.&lt;br /&gt;
Nov 24 01:07:51 pi5 x729-fan.sh[1639]: Please enable the hardware pwm by adding &amp;#039;dtoverlay=pwm-2chan&amp;#039; to /boot/config.txt and reboot&lt;br /&gt;
Nov 24 01:07:51 pi5 x729-fan.sh[1639]: /usr/local/bin/x729-fan.sh: line 160: /sys/class/pwm/pwmchip2/unexport: No such file or directory&lt;br /&gt;
Nov 24 01:07:51 pi5 systemd[1]: x729-fan.service: Main process exited, code=exited, status=1/FAILURE&lt;br /&gt;
Nov 24 01:07:51 pi5 systemd[1]: x729-fan.service: Failed with result &amp;#039;exit-code&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I have changed pwmchip2 back to pwmchip0 in the x729-fan.sh script, but the fan is not working.&lt;br /&gt;
&lt;br /&gt;
sudo systemctl status x729-fan.service&lt;br /&gt;
● x729-fan.service - Daemon to monitor and control fan speed&lt;br /&gt;
     Loaded: loaded (/usr/lib/systemd/system/x729-fan.service; enabled; preset: enabled)&lt;br /&gt;
     Active: active (running) since Sun 2024-11-24 02:42:18 UTC; 18s ago&lt;br /&gt;
   Main PID: 4257 (bash)&lt;br /&gt;
      Tasks: 2 (limit: 9063)&lt;br /&gt;
     Memory: 688.0K (peak: 2.1M)&lt;br /&gt;
        CPU: 80ms&lt;br /&gt;
     CGroup: /system.slice/x729-fan.service&lt;br /&gt;
             ├─4257 bash /usr/local/bin/x729-fan.sh&lt;br /&gt;
             └─4442 sleep 5&lt;br /&gt;
&lt;br /&gt;
Could you assist please if the problem with the fan itself or if the script is not working as expected? This is new x729 board that I recently received.&amp;lt;!-- migrated from Comments; original IP: 173.35.170.176 --&amp;gt;&lt;/div&gt;</summary>
		<author><name>173.35.170.176</name></author>
	</entry>
</feed>