Auto Fan?

47 views
Skip to first unread message

Miles Raymond

unread,
Dec 20, 2023, 2:05:11 AM12/20/23
to ClusterHAT
I have been searching for any automatic service to turn the fan on at boot, and the best I have come up with is:

2023-12-19 22:58:40 root@raspberrypi2:/etc/systemd/system# cat sysinit.target.wants/clusterctrl-fan.service
[Unit]
Description=Control ClusterHAT fan
Documentation=man:clusterctrl
DefaultDependencies=no
Before=sysinit.target shutdown.target
Conflicts=shutdown.target

[Service]
ExecStart=/usr/sbin/clusterctrl fan on
#ExecStop=/usr/sbin/clusterctrl fan off
Type=oneshot

[Install]
WantedBy=sysinit.target
2023-12-19 22:59:00 root@raspberrypi2:/etc/systemd/system# clusterctrl status
clusterhat:1
clusterctrl:False
maxpi:4
throttled:0x50005
hat_version:2.5
hat_version_major:2
hat_version_minor:5
hat_size:4
hat_uuid:16aeb902-9d28-11ea-bb37-0242ac130002
hat_vendor:8086 Consultancy
hat_product_id:0x0004
hat_alert:0
hat_hub:1
hat_wp:1
hat_led:1
hat_wplink:0
hat_xra1200p:True
p1:1
p2:1
p3:1
p4:1
2023-12-19 23:02:56 root@raspberrypi2:/etc/systemd/system#

I'm not sure if this is the right way to do this, and I'm not able to check the fan with clusterctrl status - is there another way to view that the fan is actually running?
Reply all
Reply to author
Forward
0 new messages