Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use CO in readjustService.ps1 #236

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions win32/readjustService.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function doAdjust_ACmode {
adjust "fast_limit" 46000
adjust "slow_limit" 25000
#adjust "slow_time" 30
#adjust "coall" 4294967266 #Curve optimizer at -30
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check this parameter, but does the CLI version also require unsigned int?
Would it be possible to use a signed int and directly use -30?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asymcon could you please change it to signed int to be able to use -30 directly?

#adjust "tctl_temp" 93
#adjust "apu_skin_temp_limit" 50
#adjust "vrmmax_current" 100000
Expand Down Expand Up @@ -106,6 +107,9 @@ $apiHeader = @'
[DllImport("libryzenadj.dll")] public static extern int set_apu_skin_temp_limit(IntPtr ry, [In]uint value);
[DllImport("libryzenadj.dll")] public static extern int set_dgpu_skin_temp_limit(IntPtr ry, [In]uint value);
[DllImport("libryzenadj.dll")] public static extern int set_apu_slow_limit(IntPtr ry, [In]uint value);
[DllImport("libryzenadj.dll")] public static extern int set_coall(IntPtr ry, [In]uint value);
[DllImport("libryzenadj.dll")] public static extern int set_coper(IntPtr ry, [In]uint value);
[DllImport("libryzenadj.dll")] public static extern int set_cogfx(IntPtr ry, [In]uint value);
[DllImport("libryzenadj.dll")] public static extern int set_power_saving(IntPtr ry);
[DllImport("libryzenadj.dll")] public static extern int set_max_performance(IntPtr ry);

Expand Down