-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
139 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
## Building | ||
|
||
Checkout and use a current rust version. Should build out of the box. Windows only. | ||
|
||
## Usage: `atrofac-cli` | ||
|
||
### Change power plan | ||
|
||
Note: This DOES NOT adjust the fan curve. It uses the default fan curve defined by Asus. | ||
|
||
```shell | ||
atrofac-cli plan <PLAN> | ||
``` | ||
|
||
Examples: | ||
|
||
```shell | ||
atrofac-cli plan silent | ||
atrofac-cli plan performance | ||
atrofac-cli plan turbo | ||
atrofac-cli plan windows | ||
``` | ||
|
||
### Change fan curve | ||
|
||
This adjusts the fan curve and sets a power plan. | ||
|
||
```shell | ||
atrofac-cli fan --plan <PLAN> --cpu <FAN_CURVE> --gpu <FAN_CURVE> | ||
``` | ||
|
||
The `FAN_CURVE` is basically the same you can do graphically in the Armoury Crate GUI. It's a list (8 entries) of temperature and fan percentage. Assume you want to set a fan curve that looks like this: | ||
|
||
| Entry | Temperature | Fan Percentage | | ||
| --- |:---:| ---:| | ||
| 0 | 30 | 0% | | ||
| 1 | 40 | 5% | | ||
| 2 | 50 | 10% | | ||
| 3 | 60 | 20% | | ||
| 4 | 70 | 35% | | ||
| 5 | 80 | 55% | | ||
| 6 | 90 | 65% | | ||
| 7 | 100 | 65% | | ||
|
||
... in this case the `FAN_CURVE` string would look like this: `30c:0%,40c:5%,50c:10%,60c:20%,70c:35%,80c:55%,90c:65%,100c:65%`. | ||
|
||
#### Examples | ||
|
||
Set the silent power profile and set the fan curves (CPU & GPU) to a minimum: | ||
|
||
```shell | ||
atrofac-cli fan | ||
``` | ||
|
||
Set the windows power plan and set the fan curves: | ||
|
||
```shell | ||
atrofac-cli fan --plan windows --cpu 30c:0%,40c:5%,50c:10%,60c:20%,70c:35%,80c:55%,90c:65%,100c:65% --gpu 30c:0%,40c:5%,50c:10%,60c:20%,70c:35%,80c:55%,90c:65%,100c:65% | ||
``` | ||
|
||
#### Limits | ||
|
||
autrofac will automatically adjust dangerous fan curves (**NO GUARANTEE THAT THIS REALLY WORKS**). These are the limits: | ||
|
||
| Entry | Temperature | Fan Percentage (CPU) | Fan Percentage (GPU) | | ||
| --- |:---:| ---:| ---:| | ||
| 0 | 30..39 | 0% or higher | 0% or higher | | ||
| 1 | 40..49 | 0% or higher | 0% or higher | | ||
| 2 | 50..59 | 0% or higher | 0% or higher | | ||
| 3 | 60..69 | 0% or higher | 0% or higher | | ||
| 4 | 70..79 | 31% or higher | 34% or higher | | ||
| 5 | 80..89 | 49% or higher | 51% or higher | | ||
| 6 | 90..99 | 56% or higher | 61% or higher | | ||
| 6 | 100..109 | 56% or higher | 61% or higher | | ||
|
||
So it's possible to operate the Zephyrus G14 fanless as long as the temperatures of the GPU & CPU are below 69 degrees celsius. | ||
|
||
## GUI | ||
|
||
There's no GUI yet... but you can crate a shortcut, like this: | ||
|
||
![Shortcut](bin/shortcut.png) | ||
|
||
## Technical details | ||
|
||
It uses the `DeviceIoControl` function (windows API) on the `\\.\ATKACPI`-file to change the power plan and set the fan curve (like the Armoury Crate does). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
use std::fs::{File, OpenOptions}; | ||
use std::io::{BufReader, BufWriter, Write}; | ||
use std::path::PathBuf; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters