Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Add 6900U, 6600U, change how slowPPT is set for safer limits
Browse files Browse the repository at this point in the history
  • Loading branch information
pastaq committed Aug 30, 2022
1 parent 4cc1c6b commit c4e3b46
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/components/TDPControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,10 @@ export class TDPControl extends Component<

// set the correct TDP value
let fast_ppt = this.state.tdpCurrent + this.state.boostCurrent;
let slow_ppt =
this.state.tdpCurrent + Math.ceil(this.state.boostCurrent / 2);

await this.props.pt.setGPUProp('a', this.state.tdpCurrent);
await this.props.pt.setGPUProp('b', fast_ppt);
await this.props.pt.setGPUProp('c', slow_ppt);
await this.props.pt.setGPUProp('c', this.state.tdpCurrent);
}

// VIEW SECTION
Expand Down
24 changes: 19 additions & 5 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,11 @@ export class PowerTools {
}
case 'AMD Ryzen 5 4500U with Radeon Graphics':
case 'AMD Ryzen 7 5700U with Radeon Graphics':
case 'AMD Ryzen 7 5800U with Radeon Graphics':
case '11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz':
case '11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz':
case '11th Gen Intel(R) Core(TM) i7-1195G7 @ 2.90GHz': {
this.tdp_range.tdp_default_val = 14;
this.tdp_range.tdp_max_boost = 5;
this.tdp_range.tdp_max_boost = 2;
this.tdp_range.tdp_max_val = 28;
this.tdp_range.tdp_min_val = 4;
break;
Expand All @@ -117,21 +116,36 @@ export class PowerTools {
this.tdp_range.tdp_min_val = 4;
break;
}
case 'AMD Ryzen 7 5800U with Radeon Graphics':
case 'AMD Ryzen 7 5825U with Radeon Graphics':
case 'AMD Ryzen 7 6800U with Radeon Graphics': {
case 'AMD Ryzen 5 6600U with Radeon Graphics': {
if (id == 'AIR Pro') {
this.tdp_range.tdp_default_val = 9;
this.tdp_range.tdp_max_boost = 2;
this.tdp_range.tdp_max_val = 18;
this.tdp_range.tdp_min_val = 2;
} else {
this.tdp_range.tdp_default_val = 16;
this.tdp_range.tdp_max_boost = 6;
this.tdp_range.tdp_max_val = 32;
this.tdp_range.tdp_max_boost = 5;
this.tdp_range.tdp_max_val = 33;
this.tdp_range.tdp_min_val = 4;
}
break;
}
case 'AMD Ryzen 7 6800U with Radeon Graphics': {
this.tdp_range.tdp_default_val = 16;
this.tdp_range.tdp_max_boost = 4;
this.tdp_range.tdp_max_val = 38;
this.tdp_range.tdp_min_val = 4;
break;
}
case 'AMD Ryzen 9 6900HS with Radeon Graphics': {
this.tdp_range.tdp_default_val = 35;
this.tdp_range.tdp_max_boost = 4;
this.tdp_range.tdp_max_val = 50;
this.tdp_range.tdp_min_val = 4;
break;
}
}
}
return this.tdp_range;
Expand Down

0 comments on commit c4e3b46

Please sign in to comment.