Changes between Version 75 and Version 76 of gsc


Ignore:
Timestamp:
02/03/2021 04:55:43 PM (4 years ago)
Author:
Tim Harvey
Comment:

updated hwmon example

Legend:

Unmodified
Added
Removed
Modified
  • gsc

    v75 v76  
    338338A 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.
    339339
    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
     340Example: (GW6404 with Ubuntu Focal and Linux 5.4 kernel):
     341{{{
     342cd /sys/class/hwmon/hwmon0
     343# ADC voltage inputs (values are in mV)
     344for F in in*;do echo -n $F: ;cat $F;done 2>/dev/null
     345in0_input:3120
    345346in0_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
     347in10_input:3630
     348in10_label:vdd_an1
     349in11_input:2988
     350in11_label:vdd_gsc
     351in1_input:14252
     352in1_label:vdd_vin
     353in2_input:5049
     354in2_label:vdd_5p0
     355in3_input:3320
     356in3_label:vdd_3p3
     357in4_input:2500
     358in4_label:vdd_2p5
     359in5_input:923
     360in5_label:vdd_core
     361in6_input:905
     362in6_label:vdd_0p9
     363in7_input:994
     364in7_label:vdd_1p0
     365in8_input:1190
     366in8_label:vdd_1p2
     367in9_input:1486
     368in9_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
     371ll | more
     372temp1_input:41200
     373temp1_label:temp
     374# FAN tach inputs
     375# for F in fan*;do echo -n $F: ;cat $F;done 2>/dev/nul
     376l | more
     377fan1_input:300
     378fan1_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
     381l | more
    371382pwm1_auto_point1_pwm:127
    372 pwm1_auto_point1_temp:30000
     383pwm1_auto_point1_temp:3000
    373384pwm1_auto_point2_pwm:153
    374 pwm1_auto_point2_temp:33000
     385pwm1_auto_point2_temp:3300
    375386pwm1_auto_point3_pwm:178
    376 pwm1_auto_point3_temp:36000
     387pwm1_auto_point3_temp:3600
    377388pwm1_auto_point4_pwm:204
    378 pwm1_auto_point4_temp:39000
     389pwm1_auto_point4_temp:3900
    379390pwm1_auto_point5_pwm:229
    380 pwm1_auto_point5_temp:42000
     391pwm1_auto_point5_temp:4200
    381392pwm1_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 
     393pwm1_auto_point6_temp:4500
     394}}}
    389395
    390396