Changes between Version 75 and Version 76 of gsc
- Timestamp:
- 02/03/2021 04:55:43 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
gsc
v75 v76 338 338 A Linux 'Hardware Monitor' ({{{hwmon}}}) driver is available which provides simple standard access to the above temperature/voltage registers via sysfs. The arguments have been given labels which define the source. The user can “cat” the label to determine the source. The hwmon will be found in /sys/class/hwmon/hwmonx where x is a number. Check all hwmonx directories, starting with x=0 and then x=1 until identifying the correct hwmon where the values are contained. 339 339 340 Example ran on a GW62xx using Ubuntu Bionic: 341 {{{ 342 cd /sys/class/hwmon/hwmon1 343 for F in *;do echo -n $F: ;cat $F;done 344 in0_input:2762 340 Example: (GW6404 with Ubuntu Focal and Linux 5.4 kernel): 341 {{{ 342 cd /sys/class/hwmon/hwmon0 343 # ADC voltage inputs (values are in mV) 344 for F in in*;do echo -n $F: ;cat $F;done 2>/dev/null 345 in0_input:3120 345 346 in0_label:vdd_bat 346 in10_input:1483 347 in10_label:vdd_1p5 348 in11_input:4998 349 in11_label:vdd_an1 350 in12_input:3258 351 in12_label:vdd_gsc 352 in1_input:491 353 in1_label:fan_tach 354 in2_input:15468 355 in2_label:vdd_vin 356 in3_input:4943 357 in3_label:vdd_5p0 358 in4_input:3398 359 in4_label:vdd_3p3 360 in5_input:2456 361 in5_label:vdd_2p5 362 in6_input:867 363 in6_label:vdd_core 364 in7_input:907 365 in7_label:vdd_0p9 366 in8_input:979 367 in8_label:vdd_1p0 368 in9_input:1189 369 in9_label:vdd_1p2 370 name:gsc_hwmon 347 in10_input:3630 348 in10_label:vdd_an1 349 in11_input:2988 350 in11_label:vdd_gsc 351 in1_input:14252 352 in1_label:vdd_vin 353 in2_input:5049 354 in2_label:vdd_5p0 355 in3_input:3320 356 in3_label:vdd_3p3 357 in4_input:2500 358 in4_label:vdd_2p5 359 in5_input:923 360 in5_label:vdd_core 361 in6_input:905 362 in6_label:vdd_0p9 363 in7_input:994 364 in7_label:vdd_1p0 365 in8_input:1190 366 in8_label:vdd_1p2 367 in9_input:1486 368 in9_label:vdd_1p5 369 # ADC temperature inputs (values in millidegrees C) 370 # for F in temp*;do echo -n $F: ;cat $F;done 2>/dev/nu 371 ll | more 372 temp1_input:41200 373 temp1_label:temp 374 # FAN tach inputs 375 # for F in fan*;do echo -n $F: ;cat $F;done 2>/dev/nul 376 l | more 377 fan1_input:300 378 fan1_label:fan_tach 379 # FAN PWM setpoints (PWM values are from 0 to 255; temp in decidegrees C) 380 # for F in pwm*;do echo -n $F: ;cat $F;done 2>/dev/nul 381 l | more 371 382 pwm1_auto_point1_pwm:127 372 pwm1_auto_point1_temp:3000 0383 pwm1_auto_point1_temp:3000 373 384 pwm1_auto_point2_pwm:153 374 pwm1_auto_point2_temp:3300 0385 pwm1_auto_point2_temp:3300 375 386 pwm1_auto_point3_pwm:178 376 pwm1_auto_point3_temp:3600 0387 pwm1_auto_point3_temp:3600 377 388 pwm1_auto_point4_pwm:204 378 pwm1_auto_point4_temp:3900 0389 pwm1_auto_point4_temp:3900 379 390 pwm1_auto_point5_pwm:229 380 pwm1_auto_point5_temp:4200 0391 pwm1_auto_point5_temp:4200 381 392 pwm1_auto_point6_pwm:255 382 pwm1_auto_point6_temp:45000 383 temp1_input:46000 384 temp1_label:temp 385 }}} 386 387 Note that the standard sysfs entries for hwmon drivers are such that temperatures are in millidegrees celcius and voltages are in millivolts. 388 393 pwm1_auto_point6_temp:4500 394 }}} 389 395 390 396