[PATCH 1/5] pwmconfig: Print the initial PWM values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
---
 prog/pwm/pwmconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- lm-sensors.orig/prog/pwm/pwmconfig	2010-08-22 18:18:00.000000000 +0200
+++ lm-sensors/prog/pwm/pwmconfig	2013-03-17 11:04:58.769048205 +0100
@@ -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

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux