Skip to content

Instantly share code, notes, and snippets.

@nenkoru
Created March 28, 2025 14:24
Show Gist options
  • Select an option

  • Save nenkoru/532276a8b9137ca123e37ceeba3ca096 to your computer and use it in GitHub Desktop.

Select an option

Save nenkoru/532276a8b9137ca123e37ceeba3ca096 to your computer and use it in GitHub Desktop.
PowerTools limit override 4200/2200
Limits(
cpu: Limit(
provider: GabeBoy,
limits: GenericCpusLimit(
cpus: [GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
), GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
), GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
), GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
), GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
), GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
), GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
), GenericCpuLimit(
clock_min: Some(RangeLimit(
min: Some(1400),
max: Some(4200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(4200),
)),
clock_step: Some(100),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
)],
global_governors: true,
extras: LimitExtras(
experiments: false,
quirks: [],
),
),
),
gpu: Limit(
provider: GabeBoy,
limits: GenericGpuLimit(
fast_ppt: Some(RangeLimit(
min: Some(1000000),
max: Some(30000000),
)),
fast_ppt_default: Some(15000000),
slow_ppt: Some(RangeLimit(
min: Some(1000000),
max: Some(29000000),
)),
slow_ppt_default: Some(15000000),
ppt_divisor: Some(1000000),
ppt_step: Some(1),
tdp: None,
tdp_boost: None,
tdp_divisor: None,
tdp_step: None,
clock_min: Some(RangeLimit(
min: Some(400),
max: Some(2200),
)),
clock_max: Some(RangeLimit(
min: Some(400),
max: Some(2200),
)),
clock_step: Some(100),
memory_clock: Some(RangeLimit(
min: Some(400),
max: Some(800),
)),
memory_clock_step: Some(400),
skip_resume_reclock: false,
extras: LimitExtras(
experiments: false,
quirks: ["pp_dpm_fclk-reversed", "pp_dpm_fclk-not-updated-on-LCD"],
),
),
),
battery: Limit(
provider: GabeBoy,
limits: GenericBatteryLimit(
charge_rate: Some(RangeLimit(
min: Some(250),
max: Some(2500),
)),
charge_modes: ["normal", "discharge", "idle"],
charge_limit: Some(RangeLimit(
min: Some(10.0),
max: Some(90.0),
)),
extra_readouts: false,
extras: LimitExtras(
experiments: false,
quirks: [],
),
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment