Hi, I am working on Jetson AGX Xavier L4T 32.4.3 and trying to read a heat synk fan connected.
used below commands:
enable tach :
echo 1 > /sys/devices/pwm-fan/tach_enable
set speed :
echo 255 > /sys/devices/pwm-fan/target_pwm
read tach :
cat /sys/devices/pwm-fan/rpm_measured
but I an not able to set the tacho meter here
getting
below error when I try to enable tachometer :
nv@nv:/sys/devices/pwm-fan$ cd
nvidia@nv:~$ echo 1 > /sys/devices/pwm-fan/tach_enable
-bash: /sys/devices/pwm-fan/tach_enable: Permission denied
nv@nv:~$ sudo su
[sudo] password for nvidia:
root@nv:/home/nvidia# echo 1 > /sys/devices/pwm-fan/tach_enable
bash: echo: write error: Operation not permitted
root@nv:/home/nvidia# cat /sys/devices/pwm-fan/rpm_measured
0
root@nv:/home/nvidia# echo 255 > /sys/devices/pwm-fan/target_pwm
root@nv:/home/nvidia# cat /sys/devices/pwm-fan/rpm_measured
0
root@nv:/home/nvidia# echo 1 > /sys/devices/pwm-fan/tach_enable
bash: echo: write error: Operation not permitted
root@nv:/home/nvidia# echo 1 > /sys/devices/pwm-fan/tach_enable
bash: echo: write error: Operation not permitted
root@nv:/home/nvidia# dmesg | grep FAN
[ 1.881811] FAN dev name: pwm-fan
[ 1.881876] FAN:gpio request success.
[ 1.881887] FAN: can’t find tach_gpio
root@nv:/home/nvidia#
please suggest me what needs to be done