From 2096d14c18d1f869f9d5501c19d654e381a409be Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 1 May 2013 10:29:00 +0000 Subject: [PATCH] pwmconfig: Print the initial PWM values Print the initial PWM values before letting the user change them. This should be useful to better understand what happens next, and for user support in general. --- CHANGES | 1 + prog/pwm/pwmconfig | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 19e9b081..870e3f90 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ lm-sensors CHANGES file SVN HEAD sensors.conf.5: Mention "sensors -u" to get the raw feature names sensors: Clarify what option -u is good for + pwmconfig: Print the initial PWM values sensors-detect: Add detection of AMD family 16h power sensors Map IT8771E, IT8772E, IT8782F and IT8783F to it87 Use /sys/module instead of /proc/modules where available diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 5b862b78..323a6e46 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -236,7 +236,8 @@ echo echo 'Found the following PWM controls:' for i in $PWM do - echo " $i" + P=`cat $i` + echo " $i current value: $P" if [ -w $i ] then # First check if PWM output is in automatic mode