commit 584bcadd2a34dfa05137c55e9a7abddb815161b6 Author: Karmel0x Date: Sat Aug 26 11:56:51 2023 +0200 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f26b8e --- /dev/null +++ b/.gitignore @@ -0,0 +1,392 @@ + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml diff --git a/AsusFanControl.sln b/AsusFanControl.sln new file mode 100644 index 0000000..3b81b15 --- /dev/null +++ b/AsusFanControl.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33801.468 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsusFanControl", "AsusFanControl\AsusFanControl.csproj", "{DF94635E-4107-4EE9-8675-7137E750BC86}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsusFanControlGUI", "AsusFanControlGUI\AsusFanControlGUI.csproj", "{42CC78B6-E3BB-4092-A423-A4EC20FB3C11}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DF94635E-4107-4EE9-8675-7137E750BC86}.Debug|x64.ActiveCfg = Debug|x64 + {DF94635E-4107-4EE9-8675-7137E750BC86}.Debug|x64.Build.0 = Debug|x64 + {DF94635E-4107-4EE9-8675-7137E750BC86}.Release|x64.ActiveCfg = Release|x64 + {DF94635E-4107-4EE9-8675-7137E750BC86}.Release|x64.Build.0 = Release|x64 + {42CC78B6-E3BB-4092-A423-A4EC20FB3C11}.Debug|x64.ActiveCfg = Debug|x64 + {42CC78B6-E3BB-4092-A423-A4EC20FB3C11}.Debug|x64.Build.0 = Debug|x64 + {42CC78B6-E3BB-4092-A423-A4EC20FB3C11}.Release|x64.ActiveCfg = Release|x64 + {42CC78B6-E3BB-4092-A423-A4EC20FB3C11}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0C071BA0-0D7B-494A-8753-CE7D1FBBC3C5} + EndGlobalSection +EndGlobal diff --git a/AsusFanControl/App.config b/AsusFanControl/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/AsusFanControl/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AsusFanControl/AsusControl.cs b/AsusFanControl/AsusControl.cs new file mode 100644 index 0000000..850a45b --- /dev/null +++ b/AsusFanControl/AsusControl.cs @@ -0,0 +1,71 @@ +using AsusSystemAnalysis; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AsusFanControl +{ + public class AsusControl + { + public AsusControl() + { + AsusWinIO64.InitializeWinIo(); + } + + ~AsusControl() + { + AsusWinIO64.ShutdownWinIo(); + } + + public void SetFanSpeed(byte value, byte fanIndex = 0) + { + AsusWinIO64.HealthyTable_SetFanIndex(fanIndex); + AsusWinIO64.HealthyTable_SetFanPwmDuty(value); + AsusWinIO64.HealthyTable_SetFanTestMode((char)(value > 0 ? 0x01 : 0x00)); + } + + public void SetFanSpeed(int percent) + { + var value = (byte)(percent / 100.0f * 255); + SetFanSpeed(value); + } + + public void SetFansSpeed(byte value) + { + var fanCount = AsusWinIO64.HealthyTable_FanCounts(); + for(byte fanIndex = 0; fanIndex < fanCount; fanIndex++) + { + SetFanSpeed(value, fanIndex); + } + } + + public void SetFansSpeed(int percent) + { + var value = (byte)(percent / 100.0f * 255); + SetFansSpeed(value); + } + + public int GetFanSpeed(byte fanIndex = 0) + { + AsusWinIO64.HealthyTable_SetFanIndex(fanIndex); + var fanSpeed = AsusWinIO64.HealthyTable_FanRPM(); + return fanSpeed; + } + + public List GetFanSpeeds() + { + var fanSpeeds = new List(); + + var fanCount = AsusWinIO64.HealthyTable_FanCounts(); + for (byte fanIndex = 0; fanIndex < fanCount; fanIndex++) + { + var fanSpeed = GetFanSpeed(fanIndex); + fanSpeeds.Add(fanSpeed); + } + + return fanSpeeds; + } + } +} diff --git a/AsusFanControl/AsusFanControl.csproj b/AsusFanControl/AsusFanControl.csproj new file mode 100644 index 0000000..4f06f7f --- /dev/null +++ b/AsusFanControl/AsusFanControl.csproj @@ -0,0 +1,80 @@ + + + + + Debug + AnyCPU + {DF94635E-4107-4EE9-8675-7137E750BC86} + Exe + AsusFanControl + AsusFanControl + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + ..\bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + true + + + ..\bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + true + + + + + + + + + + + + + + + + + + + + + + + PreserveNewest + + + + \ No newline at end of file diff --git a/AsusFanControl/AsusWinIO64.cs b/AsusFanControl/AsusWinIO64.cs new file mode 100644 index 0000000..7436d8c --- /dev/null +++ b/AsusFanControl/AsusWinIO64.cs @@ -0,0 +1,22 @@ +using System.Runtime.InteropServices; + +namespace AsusSystemAnalysis +{ + public class AsusWinIO64 + { + [DllImport("AsusWinIO64.dll")] + public static extern void InitializeWinIo(); + [DllImport("AsusWinIO64.dll")] + public static extern void ShutdownWinIo(); + [DllImport("AsusWinIO64.dll")] + public static extern int HealthyTable_FanCounts(); + [DllImport("AsusWinIO64.dll")] + public static extern void HealthyTable_SetFanIndex(byte index); + [DllImport("AsusWinIO64.dll")] + public static extern int HealthyTable_FanRPM(); + [DllImport("AsusWinIO64.dll")] + public static extern void HealthyTable_SetFanTestMode(char mode); + [DllImport("AsusWinIO64.dll")] + public static extern void HealthyTable_SetFanPwmDuty(short duty); + } +} diff --git a/AsusFanControl/AsusWinIO64.dll b/AsusFanControl/AsusWinIO64.dll new file mode 100644 index 0000000..dbf9ea3 Binary files /dev/null and b/AsusFanControl/AsusWinIO64.dll differ diff --git a/AsusFanControl/Program.cs b/AsusFanControl/Program.cs new file mode 100644 index 0000000..b78a435 --- /dev/null +++ b/AsusFanControl/Program.cs @@ -0,0 +1,45 @@ +using System; +using AsusSystemAnalysis; + +namespace AsusFanControl +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static int Main(string[] args) + { + if (args.Length < 1) + { + Console.WriteLine("Usage: AsusFanControl "); + return 1; + } + + bool tryParse = int.TryParse(args[0], out int num); + + if (!tryParse) + { + Console.WriteLine("Please enter a numeric value for fan speed."); + return 1; + } + + if ((num != 0 && num < 40) || num > 99) + { + Console.WriteLine("Please enter a value for fan speed between 40 and 99 or 0 for turning off test mode."); + Console.WriteLine("If you want to skip these limits you need to change it in source code."); + return 1; + } + + var asusControl = new AsusControl(); + + var fanSpeeds = asusControl.GetFanSpeeds(); + Console.WriteLine($"Current fan speeds: {string.Join(" ", fanSpeeds)}"); + + asusControl.SetFansSpeed(num); + + return 0; + } + } +} diff --git a/AsusFanControl/Properties/AssemblyInfo.cs b/AsusFanControl/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..baefc56 --- /dev/null +++ b/AsusFanControl/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AsusFanControl")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("AsusFanControl")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("df94635e-4107-4ee9-8675-7137e750bc86")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AsusFanControlGUI/App.config b/AsusFanControlGUI/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/AsusFanControlGUI/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AsusFanControlGUI/AsusFanControlGUI.csproj b/AsusFanControlGUI/AsusFanControlGUI.csproj new file mode 100644 index 0000000..aa68de8 --- /dev/null +++ b/AsusFanControlGUI/AsusFanControlGUI.csproj @@ -0,0 +1,115 @@ + + + + + Debug + AnyCPU + {42CC78B6-E3BB-4092-A423-A4EC20FB3C11} + WinExe + AsusFanControlGUI + AsusFanControlGUI + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + ..\bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + true + + + ..\bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + true + + + propeller.ico + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {df94635e-4107-4ee9-8675-7137e750bc86} + AsusFanControl + + + + + + + \ No newline at end of file diff --git a/AsusFanControlGUI/Form1.Designer.cs b/AsusFanControlGUI/Form1.Designer.cs new file mode 100644 index 0000000..e65a64c --- /dev/null +++ b/AsusFanControlGUI/Form1.Designer.cs @@ -0,0 +1,127 @@ +namespace AsusFanControlGUI +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + this.trackBar1 = new System.Windows.Forms.TrackBar(); + this.label1 = new System.Windows.Forms.Label(); + this.labelValue = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.labelRPM = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); + this.SuspendLayout(); + // + // trackBar1 + // + this.trackBar1.Location = new System.Drawing.Point(12, 12); + this.trackBar1.Maximum = 100; + this.trackBar1.Name = "trackBar1"; + this.trackBar1.Size = new System.Drawing.Size(300, 45); + this.trackBar1.TabIndex = 0; + this.trackBar1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.trackBar1_KeyUp); + this.trackBar1.MouseCaptureChanged += new System.EventHandler(this.trackBar1_MouseCaptureChanged); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 60); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(73, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Current value:"; + // + // labelValue + // + this.labelValue.AutoSize = true; + this.labelValue.Location = new System.Drawing.Point(91, 60); + this.labelValue.Name = "labelValue"; + this.labelValue.Size = new System.Drawing.Size(10, 13); + this.labelValue.TabIndex = 2; + this.labelValue.Text = "-"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(40, 81); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(71, 13); + this.label2.TabIndex = 3; + this.label2.Text = "Current RPM:"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(12, 76); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(22, 23); + this.button1.TabIndex = 4; + this.button1.Text = "↻"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // labelRPM + // + this.labelRPM.AutoSize = true; + this.labelRPM.Location = new System.Drawing.Point(117, 81); + this.labelRPM.Name = "labelRPM"; + this.labelRPM.Size = new System.Drawing.Size(10, 13); + this.labelRPM.TabIndex = 5; + this.labelRPM.Text = "-"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(324, 111); + this.Controls.Add(this.labelRPM); + this.Controls.Add(this.button1); + this.Controls.Add(this.label2); + this.Controls.Add(this.labelValue); + this.Controls.Add(this.label1); + this.Controls.Add(this.trackBar1); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "Form1"; + this.Text = "Asus Fan Control"; + ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TrackBar trackBar1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label labelValue; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label labelRPM; + } +} + diff --git a/AsusFanControlGUI/Form1.cs b/AsusFanControlGUI/Form1.cs new file mode 100644 index 0000000..cc8397a --- /dev/null +++ b/AsusFanControlGUI/Form1.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using AsusFanControl; + +namespace AsusFanControlGUI +{ + public partial class Form1 : Form + { + AsusControl asusControl = new AsusControl(); + + public Form1() + { + InitializeComponent(); + } + + private void setFanSpeed(int value) + { + if (value < 40) + value = 0; + if (value > 99) + value = 99; + + labelValue.Text = value == 0 ? "turned off (set value between 40 and 100)" : value.ToString(); + asusControl.SetFansSpeed(value); + } + + private void trackBar1_MouseCaptureChanged(object sender, EventArgs e) + { + setFanSpeed(trackBar1.Value); + } + + private void trackBar1_KeyUp(object sender, KeyEventArgs e) + { + setFanSpeed(trackBar1.Value); + } + + private void button1_Click(object sender, EventArgs e) + { + labelRPM.Text = string.Join(" ", asusControl.GetFanSpeeds()); + } + + } +} diff --git a/AsusFanControlGUI/Form1.resx b/AsusFanControlGUI/Form1.resx new file mode 100644 index 0000000..974d8cc --- /dev/null +++ b/AsusFanControlGUI/Form1.resx @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQ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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAA///////////8P/w/8A/wD+AH4A/gA8AHwAGAA8GAAYOD4AfBg/APwYPg + B8GB4AeBwAAAA8ABgAPgA8AH+APAH/+AAf//4Af//+AH///AA///wAP//8PD//+Dwf//g8H//4PB//+D + wf//gAH//8AD///gB///8A////////////8= + + + \ No newline at end of file diff --git a/AsusFanControlGUI/Program.cs b/AsusFanControlGUI/Program.cs new file mode 100644 index 0000000..4bf367c --- /dev/null +++ b/AsusFanControlGUI/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace AsusFanControlGUI +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/AsusFanControlGUI/Properties/AssemblyInfo.cs b/AsusFanControlGUI/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..fb8b54e --- /dev/null +++ b/AsusFanControlGUI/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AsusFanControlGUI")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("AsusFanControlGUI")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("42cc78b6-e3bb-4092-a423-a4ec20fb3c11")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AsusFanControlGUI/Properties/Resources.Designer.cs b/AsusFanControlGUI/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4f8c069 --- /dev/null +++ b/AsusFanControlGUI/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace AsusFanControlGUI.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AsusFanControlGUI.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/AsusFanControlGUI/Properties/Resources.resx b/AsusFanControlGUI/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/AsusFanControlGUI/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AsusFanControlGUI/Properties/Settings.Designer.cs b/AsusFanControlGUI/Properties/Settings.Designer.cs new file mode 100644 index 0000000..70920b3 --- /dev/null +++ b/AsusFanControlGUI/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace AsusFanControlGUI.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/AsusFanControlGUI/Properties/Settings.settings b/AsusFanControlGUI/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/AsusFanControlGUI/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/AsusFanControlGUI/propeller.ico b/AsusFanControlGUI/propeller.ico new file mode 100644 index 0000000..9800eff Binary files /dev/null and b/AsusFanControlGUI/propeller.ico differ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c21b6e0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Karmel0x + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..3aee7ef --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# Asus Fan Control + +### Download +Go to [releases](../../releases) + +### Run +Command line turn on: `AsusFanControl.exe ` +Command line turn off: `AsusFanControl.exe 0` +GUI: `AsusFanControlGUI.exe` + +![AsusFanControlGUI](https://github.com/Karmel0x/AsusFanControl/assets/25367564/cccd136c-f1cb-4218-b150-d874d0d5e5af) + +### Why need it? +My laptop does not support the [Fan Profile](https://github.com/Karmel0x/AsusFanControl/assets/25367564/924d990a-bf20-4b8d-bf9d-56c460174d99) option, but it often overheats. Looked for apps to control the fans, but none is working. + +### Compatibility +This program should work on any laptop with x64 windows where [Fan Diagnosis](https://github.com/Karmel0x/AsusFanControl/assets/25367564/7129833b-97af-4da8-9148-b71e49552ea4) in [MyASUS](https://apps.microsoft.com/store/detail/myasus/9N7R5S6B0ZZH) application is working as it is using same library. + +Included `AsusWinIO64.dll` is licenced to `(c) ASUSTek COMPUTER INC.` which can be found in `C:\Windows\System32\DriverStore\FileRepository\asussci2.inf_amd64_-\ASUSSystemAnalysis\` if you have MyASUS installed. + +Confirmed compatibility: +- ASUS VivoBook 15 X512FL