Quantcast
Viewing all articles
Browse latest Browse all 5216

Advanced users • Re: Argon One Replacement Daemon

I've been working exclusively on the 0.5.x branch and adding the new argonctl

I've finally got something that looks useful.

Code:

$ argonctl diagARGON CONTROL DIAGNOSTICS=============================================Detected RPI MODEL 4B 8GB rev 1.4============================================= Scan i2c busses ....scanning bus /dev/i2c-21     NO DEVICE FOUNDscanning bus /dev/i2c-20     NO DEVICE FOUNDscanning bus /dev/i2c-1      FOUND Argon ONE- CONTROLLER TYPE                    8S003F3============================================= Scan for Temperature Senors .....Video Core I/O                         FOUNDHWMON 0                                FOUNDHWMON 1                            NOT FOUND============================================= Scan for GPIO interfaces .....gpiochip1 raspberrypi-exp-gpio     NOT FOUNDgpiochip0 pinctrl-bcm2711              FOUND=============================================
I'm not sure about the Pi5 if the temperature senors are in the same spot since this tool isn't in the repo yet it's a mash of code I wrote as standalone tools and is far from ready.

Temperature sensors are normally found at /sys/class/hwmon/hwmonnn/temp1_input sometimes 0 sometimes 1 but on a Pi 5 this may well be different.
BTW the light that stayed on was red.

Looking the pi5 I see:

Code:

 ls -l /sys/class/hwmon/hwmon*//sys/class/hwmon/hwmon0/:total 0lrwxrwxrwx 1 root root     0 Feb 22 10:49 device -> ../../thermal_zone0-r--r--r-- 1 root root 16384 Feb 22 10:49 namedrwxr-xr-x 2 root root     0 Feb 22 10:49 powerlrwxrwxrwx 1 root root     0 Jan  1  1970 subsystem -> ../../../../../class/hwmon-r--r--r-- 1 root root 16384 Feb 22 10:49 temp1_input-rw-r--r-- 1 root root 16384 Jan  1  1970 uevent/sys/class/hwmon/hwmon1/:total 0lrwxrwxrwx 1 root root     0 Feb 22 10:49 device -> ../../nvme0-r--r--r-- 1 root root 16384 Feb 22 10:49 namelrwxrwxrwx 1 root root     0 Feb 22 10:49 of_node -> ../../../../../../../../../../firmware/devicetree/base/axi/pcie@110000drwxr-xr-x 2 root root     0 Feb 22 10:49 powerlrwxrwxrwx 1 root root     0 Jan  1  1970 subsystem -> ../../../../../../../../../../class/hwmon-r--r--r-- 1 root root 16384 Feb 22 10:49 temp1_alarm-r--r--r-- 1 root root 16384 Feb 22 10:49 temp1_crit-r--r--r-- 1 root root 16384 Feb 22 10:49 temp1_input-r--r--r-- 1 root root 16384 Feb 22 10:49 temp1_label-rw-r--r-- 1 root root 16384 Feb 22 10:49 temp1_max-rw-r--r-- 1 root root 16384 Feb 22 10:49 temp1_min-rw-r--r-- 1 root root 16384 Jan  1  1970 uevent/sys/class/hwmon/hwmon2/:total 0lrwxrwxrwx 1 root root     0 Feb 22 10:51 device -> ../../../1f000c8000.adc-r--r--r-- 1 root root 16384 Feb 22 10:51 in1_input-r--r--r-- 1 root root 16384 Feb 22 10:51 in1_raw-r--r--r-- 1 root root 16384 Feb 22 10:51 in2_input-r--r--r-- 1 root root 16384 Feb 22 10:51 in2_raw-r--r--r-- 1 root root 16384 Feb 22 10:51 in3_input-r--r--r-- 1 root root 16384 Feb 22 10:51 in3_raw-r--r--r-- 1 root root 16384 Feb 22 10:51 in4_input-r--r--r-- 1 root root 16384 Feb 22 10:51 in4_raw-r--r--r-- 1 root root 16384 Feb 22 10:51 namelrwxrwxrwx 1 root root     0 Feb 22 10:51 of_node -> ../../../../../../../firmware/devicetree/base/axi/pcie@120000/rp1/adc@c8000drwxr-xr-x 2 root root     0 Feb 22 10:51 powerlrwxrwxrwx 1 root root     0 Feb 22 10:51 subsystem -> ../../../../../../../class/hwmon-r--r--r-- 1 root root 16384 Feb 22 10:51 temp1_input-r--r--r-- 1 root root 16384 Feb 22 10:51 temp1_raw-rw-r--r-- 1 root root 16384 Feb 21 20:46 uevent/sys/class/hwmon/hwmon3/:total 0lrwxrwxrwx 1 root root     0 Feb 22 10:51 device -> ../../../gpio-fan@0-r--r--r-- 1 root root 16384 Feb 22 10:51 fan1_input-r--r--r-- 1 root root 16384 Feb 22 10:51 fan1_max-r--r--r-- 1 root root 16384 Feb 22 10:51 fan1_min-rw-r--r-- 1 root root 16384 Feb 22 10:51 fan1_target-r--r--r-- 1 root root 16384 Feb 22 10:51 namelrwxrwxrwx 1 root root     0 Feb 22 10:51 of_node -> ../../../../../firmware/devicetree/base/gpio-fan@0drwxr-xr-x 2 root root     0 Feb 22 10:51 power-rw-r--r-- 1 root root 16384 Feb 22 10:51 pwm1-rw-r--r-- 1 root root 16384 Feb 22 10:51 pwm1_enable-r--r--r-- 1 root root 16384 Feb 22 10:51 pwm1_modelrwxrwxrwx 1 root root     0 Feb 22 10:51 subsystem -> ../../../../../class/hwmon-rw-r--r-- 1 root root 16384 Feb 21 20:46 uevent/sys/class/hwmon/hwmon4/:total 0lrwxrwxrwx 1 root root     0 Feb 22 10:51 device -> ../../../raspberrypi-hwmon-r--r--r-- 1 root root 16384 Feb 22 10:51 in0_lcrit_alarm-r--r--r-- 1 root root 16384 Feb 22 10:51 namelrwxrwxrwx 1 root root     0 Feb 22 10:51 of_node -> ../../../../../../../firmware/devicetree/base/soc/firmwaredrwxr-xr-x 2 root root     0 Feb 22 10:51 powerlrwxrwxrwx 1 root root     0 Feb 22 10:51 subsystem -> ../../../../../../../class/hwmon-rw-r--r-- 1 root root 16384 Feb 21 20:46 uevent
If I want see the power, I use:

Code:

$ vcgencmd measure_temp
ISTR there were a few threads on here that discussed pi5 temperature measurement

Statistics: Posted by cct — Thu Feb 22, 2024 11:01 am



Viewing all articles
Browse latest Browse all 5216

Trending Articles