KeyofBlueS / kfrgb

Control RGB Leds of a Kingston Fury Beast/Renegade DDR5 RAM
GNU General Public License v3.0
18 stars 2 forks source link

Compatibility with SMBus controllers without I2C Block Read functionality #25

Open bakatrouble opened 5 months ago

bakatrouble commented 5 months ago

My SMBus controller (SMBus PIIX4) is also lacking the I2C Block Read functionality, but I was able to get the check string using byte read:

$ i2cset -y 1 0x50 0x0b 0x04
$ i2cdump -y -r 0x89-0x8b 1 0x50
No size specified (using byte-data access)
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
80:                            4b 46 35                         KF5   

Maybe it's going to be better to implement the check fallback like this, for better compatibility?

KeyofBlueS commented 5 months ago

Hi @bakatrouble . Thanks for the suggestion! As stated in the script:

ABOUT DETECTION

Setting register &0x0b to 0x04 on addresses 0x5[0-7] allows to read the DIMM model name, but very often address 0x5 is write protected (as in my system), which makes this method useless.

Nevertheless, I can still attempt to implement it.