Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAN is not turned on for V2 case (normal HDMI) #14

Open
sergiuko83 opened this issue Feb 19, 2021 · 9 comments
Open

FAN is not turned on for V2 case (normal HDMI) #14

sergiuko83 opened this issue Feb 19, 2021 · 9 comments

Comments

@sergiuko83
Copy link

sergiuko83 commented Feb 19, 2021

Edited to be more explicit.
in /lib/python3/dist-packages/argonone/init.py the method _bus_write needs to be modified like this:

From:

   def _bus_write(self, value: int, register: int = _SMBUS_REGISTER):
     # Could raise IOError, according to "official" scripts
     self._bus.write_byte_data(_SMBUS_ADDRESS, register, int(value))

To:

   def _bus_write(self, value: int, register: int = _SMBUS_REGISTER):
     # Could raise IOError, according to "official" scripts
     self._bus.write_byte_data(_SMBUS_ADDRESS, int(value), register)

Not exactly sure why this is reversed, but it only works like this in my case...
Command guide for argonone case: https://github.com/Argon40Tech/Argon-ONE-i2c-Codes

The initial version is sending the value 0x00 (register value which is 0xd3 in my case but it seems to be irrelevant) which turns off the fan being 0%.

The I2C command for argon case is
i2cset -y _SMBUS_DEV _SMBUS_ADDRESS value
i2cset -y 1 0x1a 0x00
i2cset -y 1 0x1a 0x0A
i2cset -y 1 0x1a 0x32
...
i2cset -y 1 0x1a 0x64

Where 0x00, 0x0A, 0x32 ... 0x64 are the hexadecimal values for the fan speed percentage: 0%, 10%, ... 100%

You can send this command from terminal and check for FAN activation (it can be heard even at low revolutions).

Are you sure the initial version spins the fan? Maybe they changed the call for V2 case?
The display part is working without problems, IO errors not returned, but fan does not turn at all

@marcelogaio
Copy link

marcelogaio commented Apr 6, 2021

Same here! Tried it with "i2cset -y 1 0x1a 0x64" and it works...

@alexsotoaguilera
Copy link

how can I check if my fan is working?

@marcelogaio
Copy link

marcelogaio commented Apr 6, 2021

how can I check if my fan is working?

Sound? ;) It's not super loud but you definitely can hear it if it's working.
Otherwise, open the case and you can see it inside.

@marcelogaio
Copy link

how can I check if my fan is working?

Sound? ;) It's not super loud but you definitely can hear it if it's working.
Otherwise, open the case and you can see it inside.

Also: try this command to see if it works:
i2cset -y 1 0x1a 0x64

@alexsotoaguilera
Copy link

the fan turns on with command:
'''
i2cset -y 1 0x1a 0x64
'''
and when pi hits temperature below 50 degrees stop the loud. I dont sure if fan stops or still working at low revolutions.

@sergiuko83
Copy link
Author

In my experience, even at lowest FAN speed you can still hear it.
The 0x64 is the percentage of speed meaning 100%
You can experiment with lower values, for example 0x01 for 1%, 0x0a for 10%, 0x32 for 50% etc

I am not sure if this reversal of arguments is only for the V2 cases (large HDMI) or it applies to V1 (HDMI mini) as well

@alexsotoaguilera
Copy link

I confirm this behaviour, it only turns on the fan with the command. The argon1 service need a fix. My cases is the v2 version.

@webbes
Copy link

webbes commented Apr 7, 2021

Exactly the same issue here:

i2cset -y 1 0x1a 0x64

Works perfectly fine...otherwise the fan never turns on...

@Bobronium
Copy link

Bobronium commented Apr 25, 2021

@sergiuko83, thanks, patch with swapping the arguments worked like a charm.

In my case path to the file was /usr/lib/python3/dist-packages/argonone/__init__.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants