mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Added gfx and soc clock frequency in the experimental tab.
This commit is contained in:
parent
3d0fd8851d
commit
905b37362d
BIN
bin/WinRing0x64.exp
Normal file
BIN
bin/WinRing0x64.exp
Normal file
Binary file not shown.
BIN
bin/WinRing0x64.lib
Normal file
BIN
bin/WinRing0x64.lib
Normal file
Binary file not shown.
BIN
bin/libryzenadj.dll
Normal file
BIN
bin/libryzenadj.dll
Normal file
Binary file not shown.
BIN
bin/ryzenadj.exe
BIN
bin/ryzenadj.exe
Binary file not shown.
40
index.html
40
index.html
@ -119,6 +119,46 @@
|
|||||||
<input class="uk-range" type="range" min="20" max="100" value="20" repeat="psi0_current_limit" id="psi0_current_limit_range">
|
<input class="uk-range" type="range" min="20" max="100" value="20" repeat="psi0_current_limit" id="psi0_current_limit_range">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<h3><label><input class="uk-checkbox uk-margin-small-right" type="checkbox" id="apply_min_gfxclk_frequency">Minimum GFX Clock Frequency (Mhz)</label></h3>
|
||||||
|
<div class="uk-grid-small" uk-grid>
|
||||||
|
<div class="uk-width-1-6">
|
||||||
|
<input class="uk-input" type="number" min="150" max="1300" value="150" id="min_gfxclk_frequency" repeat="min_gfxclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
<div class="uk-width-expand">
|
||||||
|
<input class="uk-range" type="range" min="150" max="1300" value="150" repeat="min_gfxclk_frequency" id="min_gfxclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3><label><input class="uk-checkbox uk-margin-small-right" type="checkbox" id="apply_max_gfxclk_frequency">Maximum GFX Clock Frequency (Mhz)</label></h3>
|
||||||
|
<div class="uk-grid-small" uk-grid>
|
||||||
|
<div class="uk-width-1-6">
|
||||||
|
<input class="uk-input" type="number" min="150" max="1300" value="1100" id="max_gfxclk_frequency" repeat="max_gfxclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
<div class="uk-width-expand">
|
||||||
|
<input class="uk-range" type="range" min="150" max="1300" value="1100" repeat="max_gfxclk_frequency" id="max_gfxclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3><label><input class="uk-checkbox uk-margin-small-right" type="checkbox" id="apply_min_socclk_frequency">Minimum SOC Clock Frequency (Mhz)</label></h3>
|
||||||
|
<div class="uk-grid-small" uk-grid>
|
||||||
|
<div class="uk-width-1-6">
|
||||||
|
<input class="uk-input" type="number" min="1000" max="3700" value="1000" step="100" id="min_socclk_frequency" repeat="min_socclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
<div class="uk-width-expand">
|
||||||
|
<input class="uk-range" type="range" min="1000" max="3700" value="1000" step="100" repeat="min_socclk_frequency" id="min_socclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3><label><input class="uk-checkbox uk-margin-small-right" type="checkbox" id="apply_max_socclk_frequency">Maximum SOC Clock Frequency (Mhz)</label></h3>
|
||||||
|
<div class="uk-grid-small" uk-grid>
|
||||||
|
<div class="uk-width-1-6">
|
||||||
|
<input class="uk-input" type="number" min="1000" max="3700" value="37000" step="100" id="max_socclk_frequency" repeat="max_socclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
<div class="uk-width-expand">
|
||||||
|
<input class="uk-range" type="range" min="1000" max="3700" value="3700" step="100" repeat="max_socclk_frequency" id="max_socclk_frequency_range">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="uk-margin">
|
||||||
|
<button class="uk-button uk-button-primary" onClick="applyRyzenSettings()">Apply</button>
|
||||||
|
<button class="uk-button uk-button-secondary" uk-toggle="target: #modal-new-preset">Save to preset</button>
|
||||||
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="uk-margin-top uk-margin-bottom uk-container" id="presetTab"></li>
|
<li class="uk-margin-top uk-margin-bottom uk-container" id="presetTab"></li>
|
||||||
|
@ -53,6 +53,13 @@ function applyRyzenSettings() {
|
|||||||
value = value;
|
value = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "--max-gfxclk-frequency=":
|
||||||
|
case "--min-gfxclk-frequency=":
|
||||||
|
case "--max-socclk-frequency=":
|
||||||
|
case "--min-socclk-frequency=":
|
||||||
|
value = parseInt(value / 10) * 10;
|
||||||
|
break;
|
||||||
|
|
||||||
case "--psi0-current=":
|
case "--psi0-current=":
|
||||||
case "--vrmmax-current=":
|
case "--vrmmax-current=":
|
||||||
value = '0x' + decimalToHexString(value * 1000);
|
value = '0x' + decimalToHexString(value * 1000);
|
||||||
|
@ -373,6 +373,10 @@ function getCurrentSettings(keyType) {
|
|||||||
"--vrmmax-current=": 'vrm_current_m_a',
|
"--vrmmax-current=": 'vrm_current_m_a',
|
||||||
"--min-fclk-frequency=": 'min_fclk_frequency',
|
"--min-fclk-frequency=": 'min_fclk_frequency',
|
||||||
"--max-fclk-frequency=": 'max_fclk_frequency',
|
"--max-fclk-frequency=": 'max_fclk_frequency',
|
||||||
|
"--min-gfxclk-frequency=": 'min_gfxclk_frequency',
|
||||||
|
"--max-gfxclk-frequency=": 'max_gfxclk_frequency',
|
||||||
|
"--min-socclk-frequency=": 'min_socclk_frequency',
|
||||||
|
"--max-socclk-frequency=": 'max_socclk_frequency',
|
||||||
};
|
};
|
||||||
|
|
||||||
var settingsToBeUsed = {};
|
var settingsToBeUsed = {};
|
||||||
|
@ -7,5 +7,9 @@
|
|||||||
"temperature_limit_c": "The temperature the CPU can reach before boost levels off.",
|
"temperature_limit_c": "The temperature the CPU can reach before boost levels off.",
|
||||||
"vrm_current_m_a": "The limit of current we let the motherboard deliver to the CPU.",
|
"vrm_current_m_a": "The limit of current we let the motherboard deliver to the CPU.",
|
||||||
"max_fclk_frequency": "Fabric is AMD's marketing term for the bus connection that connects processor dies (GPU/CPU). This define the bus's max. clock limit.",
|
"max_fclk_frequency": "Fabric is AMD's marketing term for the bus connection that connects processor dies (GPU/CPU). This define the bus's max. clock limit.",
|
||||||
"min_fclk_frequency": "Fabric is AMD's marketing term for the bus connection that connects processor dies (GPU/CPU). This define the bus's min. clock limit."
|
"min_fclk_frequency": "Fabric is AMD's marketing term for the bus connection that connects processor dies (GPU/CPU). This define the bus's min. clock limit.",
|
||||||
|
"max_gfxclk_frequency": "The maximum clock speed the integrated GPU is allowed to run at.",
|
||||||
|
"min_gfxclk_frequency": "The minimum clock speed the integrated GPU is allowed to run at.",
|
||||||
|
"max_socclk_frequency": "The maximum clock speed the CPU is allowed to run at.",
|
||||||
|
"min_socclk_frequency": "The minimum clock speed the CPU is allowed to run at."
|
||||||
}
|
}
|
||||||
|
25
main.js
25
main.js
@ -86,6 +86,31 @@ if (old_version !== new_version) {
|
|||||||
settings.set('latest_controller_tabs_settings', update_latest_settings_to_1_11_0(settings.get('latest_controller_tabs_settings')));
|
settings.set('latest_controller_tabs_settings', update_latest_settings_to_1_11_0(settings.get('latest_controller_tabs_settings')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Since 1.12.0, new option to ryzenadj.
|
||||||
|
*/
|
||||||
|
if (compareVersions(old_version, '1.12.0') <= 0) {
|
||||||
|
const update_preset_to_1_12_0 = function(settings) {
|
||||||
|
// Adding missing options.
|
||||||
|
settings['apply_max_gfxclk_frequency'] = false;
|
||||||
|
settings['apply_min_gfxclk_frequency'] = false;
|
||||||
|
settings['apply_min_socclk_frequency'] = false;
|
||||||
|
settings['apply_max_socclk_frequency'] = false;
|
||||||
|
return settings;
|
||||||
|
};
|
||||||
|
const update_presets_to_1_12_0 = function(preset_list) {
|
||||||
|
// For each preset.
|
||||||
|
for (const preset_name in preset_list) {
|
||||||
|
if (preset_list.hasOwnProperty(preset_name)) {
|
||||||
|
preset_list[preset_name] = update_preset_to_1_12_0(preset_list[preset_name]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return preset_list;
|
||||||
|
};
|
||||||
|
settings.set('presets', update_presets_to_1_12_0(settings.get('presets')));
|
||||||
|
settings.set('latest_controller_tabs_settings', update_preset_to_1_12_0(settings.get('latest_controller_tabs_settings')));
|
||||||
|
}
|
||||||
|
|
||||||
settings.set('settings', {
|
settings.set('settings', {
|
||||||
...settings.set('settings'),
|
...settings.set('settings'),
|
||||||
last_used_version: require('./package.json').version,
|
last_used_version: require('./package.json').version,
|
||||||
|
Loading…
Reference in New Issue
Block a user