Files
NiklasCFW_Pack/switch/.packages/OC Toolkit/package.ini
2025-07-13 14:07:07 +02:00

357 lines
12 KiB
INI

;title='OC Toolkit'
;creator='ppkantorski, hAloP'
;version=0.3.8
;about='This package was designed for advance overclock configurations. Use with caution and proper guidance. *WARNING* It is not safe (nor recommended) to overvoltage RAM >1250 mV.'
;credits='Special thanks to meha, efosamark, i3sey, irene & redraz.'
;color=red
[@Settings]
[CPU]
[*Undervolt Mode?CPU]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 12 0{list_source(*)}
set-footer '{list_source(*)}'
[*Voltage Limit]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/cpu_voltages.json' label
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 32 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*Boost Clock]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/cpu_boost_clock.json' label
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 8 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*Advanced]
[*High Freq UV?CPU]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6, 7)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 177 0{list_source(*)}
set-footer '{list_source(*)}'
[*High Freq Vmin?CPU]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/cpu_high_vmin.json' label
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 28 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*Low Freq Vmin?CPU]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/cpu_low_vmin.json' label
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 24 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[GPU]
[*Undervolt Mode?GPU]
;mode=option
list_source '(0, 1, 2, 3)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 36 0{list_source(*)}
set-footer '{list_source(*)}'
[*Voltage Offset]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_volt_offset.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 40 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*Vmin?GPU]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_vmin.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 48 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*UV3 Table]
[*76 - 614 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 104 {json_file_source(*,hex)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 108 {json_file_source(*,hex)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 112 {json_file_source(*,hex)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 116 {json_file_source(*,hex)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 120 {json_file_source(*,hex)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 124 {json_file_source(*,hex)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 128 {json_file_source(*,hex)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 132 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*691 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 136 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*768 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 140 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*844 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 144 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*921 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 148 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*998 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 152 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*1075 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 156 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*1152 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 160 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*1228 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 164 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*1267 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 168 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*1305 MHz?GPUUV3]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/gpu_uv3.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 172 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[RAM]
[*Max Clock?RAM]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/ram_freqs.json' label
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 68 {json_file_source(*,hex)}
set-footer '{json_file_source(*,label)}'
[*Vddq]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/ram_vddq.json' label
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 60 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*Vdd2]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/ram_vdd2.json' label
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 56 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*EMC DVB Table]
;mode=option
list_source '(0, 1, 2, 3, 4)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 72 0{list_source(*)}
set-footer '{list_source(*)}'
[*Timings]
[*DRAM]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/ram_dram_timing.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 52 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[*Core 1]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 76 0{list_source(*)}
set-footer '{list_source(*)}'
[*Core 2]
;mode=option
list_source '(0, 1, 2, 3, 4, 5)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 80 0{list_source(*)}
set-footer '{list_source(*)}'
[*Core 3]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 84 0{list_source(*)}
set-footer '{list_source(*)}'
[*Core 4]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 88 0{list_source(*)}
set-footer '{list_source(*)}'
[*Core 5]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 92 0{list_source(*)}
set-footer '{list_source(*)}'
[*Core 6]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 96 0{list_source(*)}
set-footer '{list_source(*)}'
[*Core 7]
;mode=option
list_source '(0, 1, 2, 3, 4, 5, 6)'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 100 0{list_source(*)}
set-footer '{list_source(*)}'
[*Core 1 tRAS 4,5,6]
;mode=option
json_file_source '/switch/.packages/OC Toolkit/mariko/ram_tras.json' name
hex-by-custom-offset /atmosphere/kips/loader.kip mariko 4596 {json_file_source(*,hex)}
set-footer '{json_file_source(*,name)}'
[@Tools]
[Commands]
[Reboot / Apply]
reboot
[Tools]
[*Kip Profile]
[*Primary Slot]
;mode=option
list_source '(0, 1, 2, 3, 4, 5)'
set-footer '{list_source(*)}'
[*Slot Mode]
;mode=option
list_source '(docked, handheld, retro)'
set-footer '{list_source(*)}'
[Backup Kip]
ini_file '/switch/.packages/OC Toolkit/config.ini/'
mkdir '/switch/.packages/OC Toolkit/kips/slot_{ini_file("*Primary Slot",footer)}/'
cp /atmosphere/kips/loader.kip '/switch/.packages/OC Toolkit/kips/slot_{ini_file("*Primary Slot",footer)}/{ini_file("*Slot Mode",footer)}.kip'
[Restore Kip]
ini_file '/switch/.packages/OC Toolkit/config.ini/'
mkdir '/switch/.packages/OC Toolkit/kips/slot_{ini_file("*Primary Slot",footer)}/'
cp '/switch/.packages/OC Toolkit/kips/slot_{ini_file("*Primary Slot",footer)}/{ini_file("*Slot Mode",footer)}.kip' /atmosphere/kips/loader.kip
exec boot
refresh
; [Tools]
; [*Bootloader]
; [Security Entry]
; ;mode=toggle
; on:
; set-ini-val '/bootloader/hekate_ipl.ini' 'Atmosphere (security)' fss0 atmosphere/package3
; set-ini-val '/bootloader/hekate_ipl.ini' 'Atmosphere (security)' cal0blank 1
; off:
; remove-ini-section '/bootloader/hekate_ipl.ini' 'Atmosphere (security)'
[Tools]
[*Fan Curve]
;mode=option
json_source '[{"name":"54°C", "value":"54000"}, {"name":"56°C", "value":"56000"}, {"name":"58°C", "value":"58000"}, {"name":"60°C", "value":"60000"}, {"name":"62°C", "value":"62000"}]' name
copy /atmosphere/config/system_settings.ini /atmosphere/config/system_settings.ini.bak
set-ini-val /atmosphere/config/system_settings.ini tc use_configurations_on_fwdbg u8!0x1
set-ini-val /atmosphere/config/system_settings.ini tc tskin_rate_table_console_on_fwdbg 'str!"[[-1000000, 40000, 0, 0], [36000, 43000, 51, 51], [43000, 49000, 51, 128], [49000, {json_source(*,value)}, 128, 255], [{json_source(*,value)}, 1000000, 255, 255]]"'
set-ini-val /atmosphere/config/system_settings.ini tc tskin_rate_table_handheld_on_fwdbg 'str!"[[-1000000, 40000, 0, 0], [36000, 43000, 51, 51], [43000, 49000, 51, 128], [49000, {json_source(*,value)}, 128, 255], [{json_source(*,value)}, 1000000, 255, 255]]"'
set-ini-val /atmosphere/config/system_settings.ini tc holdable_tskin u32!0xEA60
set-ini-val /atmosphere/config/system_settings.ini tc touchable_tskin u32!0xEA60
set-footer '{json_source(*,name)}'
[Tools]
[*Sys-clk Settings]
[Unsafe Freqs?sys-clk]
;mode=toggle
on:
set-ini-val /config/sys-clk/config.ini values allow_unsafe_freq 1
off:
set-ini-val /config/sys-clk/config.ini values allow_unsafe_freq 0
[Uncapped Clocks?sys-clk]
;mode=toggle
on:
set-ini-val /config/sys-clk/config.ini values uncapped_clocks 1
off:
set-ini-val /config/sys-clk/config.ini values uncapped_clocks 0
[Unrestricted Clocks?sys-clk]
;mode=toggle
on:
set-ini-val /config/sys-clk/config.ini values unrestricted_handheld_clocks 1
off:
set-ini-val /config/sys-clk/config.ini values unrestricted_handheld_clocks 0
[Override Boost Mode?sys-clk]
;mode=toggle
on:
set-ini-val /config/sys-clk/config.ini values override_boost_mode 1
off:
set-ini-val /config/sys-clk/config.ini values override_boost_mode 0
[Auto CPU Boost]
;mode=toggle
on:
set-ini-val /config/sys-clk/config.ini values auto_cpu_boost 1
off:
set-ini-val /config/sys-clk/config.ini values auto_cpu_boost 0
[Tools]
[*Software Update]
[Update OC Toolkit]
try:
download https://github.com/ppkantorski/Ultrahand-Overlay/releases/latest/download/ovlmenu.ovl /config/ultrahand/downloads/
move /config/ultrahand/downloads/ovlmenu.ovl /switch/.overlays/ovlmenu.ovl
delete /config/ultrahand/downloads/main.zip
download https://github.com/ppkantorski/Ultrahand-Overlay/archive/refs/heads/main.zip /config/ultrahand/downloads/
unzip /config/ultrahand/downloads/main.zip /config/ultrahand/downloads/main/
move '/switch/.packages/OC Toolkit/kips/' '/config/ultrahand/downloads/main/Ultrahand-Overlay-main/examples/OC Toolkit/kips/'
delete '/switch/.packages/OC Toolkit/'
move '/config/ultrahand/downloads/main/Ultrahand-Overlay-main/examples/OC Toolkit/' '/switch/.packages/OC Toolkit/'
delete /config/ultrahand/downloads/main.zip
delete /config/ultrahand/downloads/main/
exec boot
refresh
; [Update OC Suite]
; try:
; download https://github.com/hanai3Bi/Switch-OC-Suite/releases/latest/download/AIO.zip /config/ultrahand/downloads/
; unzip /config/ultrahand/downloads/AIO.zip /config/ultrahand/downloads/AIO/
; move /config/ultrahand/downloads/AIO/atmosphere/contents/ /atmosphere/contents/
; move /config/ultrahand/downloads/AIO/atmosphere/kips/loader.kip /atmosphere/kips/loader.kip
; move /config/ultrahand/downloads/AIO/config/ /config/
; move /config/ultrahand/downloads/AIO/switch/ /switch/
; delete /config/ultrahand/downloads/AIO/
; delete /config/ultrahand/downloads/AIO.zip
; exec boot
; refresh
[Package Info]