how to control fan speed in ubuntu laptop code example

Example 1: how to control fan speed of ubuntu laptop

INTERVAL=10
  DEVPATH=hwmon1=devices/platform/coretemp.0 hwmon2=devices/platform/nct6775.2608
  DEVNAME=hwmon1=coretemp hwmon2=nct6779
  FCTEMPS=hwmon2/pwm2=hwmon1/temp2_input
  FCFANS=hwmon2/pwm2=hwmon2/fan2_input
  MINTEMP=hwmon2/pwm2=49
  MAXTEMP=hwmon2/pwm2=83
  MINSTART=hwmon2/pwm2=150
  MINSTOP=hwmon2/pwm2=15
  MINPWM=hwmon2/pwm2=14
  MAXPWM=hwmon2/pwm2=255

Example 2: how to control fan speed of ubuntu laptop

INTERVAL=2
  MINTEMP=40  
  MAXTEMP=60  
  MINSTART=150  
  MINSTOP=0  
  MINPWM=0  
  MAXPWM=255