내 시스템에는 pmbus 장치(dps1600)가 있습니다.
센서 출력 라벨을 변경하고 싶어요.
내 구성 파일 /etc/sensors.d/sensors.conf
:
bus "i2c-11" "i2c-3-mux (chan_id 0)"
bus "i2c-12" "i2c-3-mux (chan_id 0)"
bus "i2c-13" "i2c-3-mux (chan_id 0)"
chip "dps1600-i2c-11-58"
label in1 "PSU Vin"
label in2 "PSU Vout"
label fan1 "PSU Fan"
label temp1 "PSU temp1"
label temp2 "PSU temp2"
label temp3 "PSU temp3"
label power1 "PSU Pin"
label power2 "PSU Pout"
label curr1 "PSU Iin"
label curr2 "PSU Iout"
내 센서 결과는 동일하게 유지됩니다.
root@sonic:/# sensors "dps1600-i2c-11-58"
dps1600-i2c-11-58
Adapter: i2c-3-mux (chan_id 0)
vin: +216.75 V
vout1: +12.06 V
fan1: 4576 RPM
temp1: +28.0°C (high = +110.0°C)
temp2: +40.0°C (high = +110.0°C)
temp3: +34.0°C (high = +110.0°C)
pin: 255.75 W (max = 2.13 kW)
pout1: 236.50 W (max = 1.92 kW)
iin: +1.20 A (max = +11.84 A)
iout1: +19.47 A (max = +140.00 A, crit max = +149.00 A)
나는 그것을 약간 변경해 보았습니다.
chip "dps1600-i2c-*-58"
label in1 "PSU Vin"
label in2 "PSU Vout"
label fan1 "PSU Fan"
label temp1 "PSU temp1"
label temp2 "PSU temp2"
label temp3 "PSU temp3"
label power1 "PSU Pin"
label power2 "PSU Pout"
label curr1 "PSU Iin"
label curr2 "PSU Iout"
효과가있다:
root@sonic:/# sensors "dps1600-i2c-11-58"
dps1600-i2c-11-58
Adapter: i2c-3-mux (chan_id 0)
PSU Vin: +216.50 V
PSU Vout: +12.05 V
PSU Fan: 4576 RPM
PSU temp1: +28.0°C (high = +110.0°C)
PSU temp2: +40.0°C (high = +110.0°C)
PSU temp3: +34.0°C (high = +110.0°C)
PSU Pin: 255.75 W (max = 2.13 kW)
PSU Pout: 234.75 W (max = 1.92 kW)
PSU Iin: +1.20 A (max = +11.84 A)
PSU Iout: +19.53 A (max = +140.00 A, crit max = +149.00 A)
왜 첫 번째는 실패합니까?
====업데이트====
이름이 같은 어댑터 3개를 찾았는데, 이것이 근본 원인일 수 있습니다.
root@sonic:/# cat /sys/bus/i2c/devices/i2c-11/name
i2c-3-mux (chan_id 0)
root@sonic:/# cat /sys/bus/i2c/devices/i2c-12/name
i2c-3-mux (chan_id 0)
root@sonic:/# cat /sys/bus/i2c/devices/i2c-13/name
i2c-3-mux (chan_id 0)
이것을 어떻게 피할 수 있습니까?