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.
This commit is contained in:
Jean Delvare
2013-05-01 10:29:00 +00:00
parent 75e1846326
commit 2096d14c18
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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
+2 -1
View File
@@ -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