Freitag, 20. Januar 2012

fsg-3 fan control

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r29846) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
read speed: 
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/fan1_input

set speed:
echo '65 1 1' > /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/pwm1

read pwm level (0-255)
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/pwm1


cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/temp1_input
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/temp2_input
cat /sys/devices/platform/i2c-gpio.0/i2c-0/0-0028/temp3_input





old paths


from
http://www.openfsg.com/forum/viewtopic.php?p=10686#10686


Read Fan Speed
cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input

set fan speed

echo '65 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1
(set from 1 - 255)





Examples:
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
7336
root@fsg1:/# echo '50 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
6490
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
6367
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
6367
root@fsg1:/# echo '60 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input
7258
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp1_input
79000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp2_input                  
76500                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp3_input                  
76500                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp3_input                  
77000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp2_input                  
76000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/temp1_input                  
77000                                                                                
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
7180                                                                                 
root@fsg1:/# echo '50 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1             
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6367                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6250                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6250                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6250                                                                                 
root@fsg1:/# echo '55 1 1' > /sys/class/i2c-dev/i2c-0/device/0-0028/pwm1             
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6750                                                                                 
root@fsg1:/# cat /sys/class/i2c-dev/i2c-0/device/0-0028/fan1_input                   
6818                                                                                 
root@fsg1:/#


Keine Kommentare:

Kommentar veröffentlichen