I have 2 devices and 2 different configs :
Rpi4 with 4 Gb of RAM and an argonone case (using sd card)
Rpi4 with 8 Gb of RAM and an argonone M2 case (using ssd)
Both are on unstable manjaro branch : 5.10.14 kernel / Python 3.9.1
Argonone cases are supposed to monitor cpu temp to run a fan.
I have a /etc/argononed.conf file set with 3 pairs like min.temperature=speed
temperature (Celsius) and fan speed (in percent) according to the help included in the file
My cases don’t work well and I try to figure it out.
(Don’t know if it’s related but I had to change ttyAMA0 to serial0 on /boot/cmdline.txt recently because of the 100% cpu usage of patchram bug with the latest firmware.)
I’ve tried to use dtoverlay=vc4-kms-v3d instead of dtoverlay=vc4-fkms-v3d in /boot/config.txt and it all changed the /dev/i2c* devices ! I didn’t have i2c-1 anymore but i2c-11 and i2c-12 and they seem not related to what I wanted. If anyone can explain it…
I’ve switched back to dtoverlay=vc4-fkms-v3d and now I get i2c-1.
i2cdetect -l
i2c-1 i2c bcm2835 (i2c@7e804000) I2C adapter
i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – (values before 8 are unavailable but I can’t show many spaces)
10: – – – – – – – – – – 1a – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
I’ve tried to read the value with the following bash command :
i2cget -y 1 0x1a 0 b
0xd3
I get a 0xd3 (= 211 ) on the rpi4-8 GB and unreadable on the rpi4-4GB !
If I sum up the argononed.py script, it reads the conf file and look at the correct percentage for fan rotation and it set it to smbus(1) (for RPi4) at the 0x1a adress :
bus.write_byte_data(address,0,block) (where address is always 0x1a and block is the percentage)
When I try to set it via the python script I can see that correct percentage value is passed to the bus but I don’t hear/see any difference and the next time I read the value it’s always 0xd3 !
If anyone here having an argonone case, can you show me your output please ?