Example #1
0
 protected void SetFanAuto()
 {
     ThreadPool.QueueUserWorkItem(p =>
     {
         CallingVariations.SetFANDutyAuto(1);
         UpdateFanStateFromEc();
     });
 }
Example #2
0
        protected void UpdateFanStateFromEc()
        {
            // FAN
            var rawCpuRpm = CallingVariations.GetCPUFANRPM();

            currentRpms = CalculateRpms(rawCpuRpm);
            // CPU
            var ecData = CallingVariations.GetTempFanDuty(1);

            currentTemp = ecData.Local;
            lastFanCuty = (int)Math.Round(ecData.FanDuty / 2.55m);
        }
Example #3
0
 protected void SetFanManual(decimal fanDuty)
 {
     ThreadPool.QueueUserWorkItem(p =>
     {
         CallingVariations.SetFanDuty(1, (int)(255 * fanDuty));
         for (var i = 0; i < 3; i++)
         {
             Thread.Sleep(500);
             UpdateFanStateFromEc();
         }
     });
 }
Example #4
0
        private void UpdateFanStateFromEc()
        {
            // FAN
            var rawCpuRpm = CallingVariations.GetCPUFANRPM();

            m_currentRpms = CalculateRpms(rawCpuRpm);
            // CPU
            var ecData = CallingVariations.GetTempFanDuty(1);

            m_currentTemp = ecData.Local;
            m_fanDutyRead = (int)Math.Round(ecData.FanDuty / 2.55m);
        }
Example #5
0
        private void SetFanDutyToEc(int percentage)
        {
            var fanDutyIn256 = (int)Math.Round(percentage / 100.0m * 255.0m);

            CallingVariations.SetFanDuty(1, fanDutyIn256);
        }