seerge / g-helper

Lightweight Armoury Crate alternative for Asus laptops and ROG Ally. Control tool for ROG Zephyrus G14, G15, G16, M16, Flow X13, Flow X16, TUF, Strix, Scar and other models
https://g-helper.com
GNU General Public License v3.0
7.87k stars 274 forks source link

Endpoint discovery for different laptop models #38

Open seerge opened 1 year ago

seerge commented 1 year ago

Hello, recently I have discovered endpoints that let you set Total PPT and CPU PPT on 2022 models. Armory seem to use them as well.

I did that by running own app-script that literally sent DSTS (asus'es "get device status") command to all possible DeviceID's in asus ACPI and checking which one's would respond at least somehow :)

Then by just trying to set a new value (with DEVS "set device status") command to a few discovered DeviceIDs correct endpoints were found.

0x001200A0 - sPPT / PL2 almost everywhere ( Total Platform limit  on all AMD platforms )
0x001200A1 - EDC_LIMIT_VDD
0x001200A2 - TDC_LIMIT_VDD
0x001200A3 - SPL / PL1 

0x001200B0 - CPU limit on all AMD platforms
0x001200B1 -  sPPT / PL2

0x001200C0 - NVIDIA GPU dynamic boost 5W ... 25W
0x001200C1 - fPPT
0x001200C2 - NVIDIA GPU temp limit 75C ... 87C

It could be that on other models (non G14) this endpoints could adjust different settings.

Discover endpoints Method 1

Run this ps1 scan-atkacpi.zip as admin in powershell and post output here

Discover endpoints Method 2

Crate a dump and upload it here (as suggested by @vddCore )

  1. Download ACPICA tools. Extract into some folder.

  2. Open that folder in powershell and run ./acpidump.exe -b to dump them all to .dat files. They'll be placed in the location you ran the tool from.

  3. Then run ./iasl.exe dsdt.dat and the decompiled ACPI table will be created as dsdt.dsl. Zip it and upload here.

How to test what discovered endpoints do

Run following command in powershell as admin:

Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -ClassName AsusAtkWmi_WMNB) -MethodName DEVS -Arguments @{Device_ID=0x1200C1; Control_status=25}

Where DeviceID is ID from the list (for example 0x1200B0, 0x1200B1, 0x1200C0, 0x1200C1, 0x1200C2)

And Control_status is the "value" , try something like 25 or 50 or 100 ... :) (on your own risk, but most probably bios will just hardcap some potentially high values)

Then you can just run some CPU / GPU intensive task and check in HWinfo if it has any effect on PPTs / clocks / etc

seerge commented 1 year ago

It's a console app that will run for like few mins and start showing output of discovered device IDs

Sample output (from 2022 model)

00010001: 00030000 (196608)
00010011: 00020001 (131073)
00010013: 00020001 (131073)
00050019: 00000001 (1)
00050020: 00000001 (1)
00060023: FFFF0004 (-65532)
00060024: A36C8086 (-1553170298)
00060026: 00000000 (0)
00060094: 00000006 (6)
00090016: 00000001 (1)
00090020: 00000000 (0)
00090030: 00000051 (81)
00100051: 00000001 (1)
00110013: 00000014 (20)
00110014: 00000016 (22)
00110022: 000000D2 (210)
00110023: 000000DC (220)
00110024: 443F3D3A (1144995130)
00110025: 443F3D3A (1144995130)
00120057: 00080000 (524288)
00120061: 00020001 (131073)
0012006C: 00000001 (1)
00120075: 00000003 (3)
00120079: 000005A0 (1440)
00120093: 0000005A (90)
00120094: 00000044 (68)
00120097: 00000035 (53)
001200A0: 00000000 (0)
001200A1: 00000000 (0)
001200A2: 00000000 (0)
001200A3: 00000000 (0)
001200B0: 00000000 (0)
001200B1: 00000000 (0)
001200C1: 00000000 (0)
001200C2: 00000000 (0)
00130021: 00000002 (2)
00130022: 00000000 (0)
00130031: 00000000 (0)
d-anez3 commented 1 year ago

60023 : ffffffffffff0004 (-65532)
60024 : a36c8086 (2741796998)
60026 : 0 (0)
60061 : ffffffffffff0000 (-65536)
60094 : 3 (3)
80041 : ffffffffffff0000 (-65536)
80042 : ffffffffffff0000 (-65536)
80043 : ffffffffffff0000 (-65536)
80044 : ffffffffffff0000 (-65536)
90020 : 1 (1)
90030 : c0 (192)
100051 : 1 (1)
110013 : 0 (0)
110014 : 0 (0)
110015 : ffffffffffff0000 (-65536)
110016 : ffffffffffff0000 (-65536)
110022 : a7 (167)
110023 : b2 (178) Invoke-CimMethod : Generic failure At C:\Users######\Desktop\scan-atkacpi.ps1:5 char:20 + ... $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ... + ~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (AsuAt C:\Users######\Desktop\scan-atkacpi.ps1:5 char:20 + ... $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ... + ~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimM Invoke-CimMethod : Generic failure Checking ID: 15009a Checking ID: 160009 Processing + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand 110024 : ffff0000 (-65536) 110025 : ffff0000 (-65536) Processing 12006c : 0 (0) 120075 : 3 (3) 120079 : 34b (843) 12007a : 0 (0) 120093 : 3c (60) 120094 : 29 (41) 120095 : 0 (0) 120096 : 0 (0) 120097 : 20 (32) 1200a0 : 0 (0) 1200a1 : 0 (0) 1200a2 : 0 (0) 1200a3 : 0 (0) 130021 : 2 (2) 130022 : 0 (0)

(This is from a 2021 model)

vioo-bkp commented 1 year ago

Here is the Asus G14 2020. In picture [1], you have the laptop model and its specifications, along with the DSTS script. And at [2] you have script result as text. [1] g14_2020 [2] 60023 : ffffffffffff0004 (-65532) 60024 : a36c8086 (2741796998) 60026 : 0 (0) 60061 : ffffffffffff0000 (-65536) 60094 : 3 (3) 80041 : ffffffffffff0000 (-65536) 80042 : ffffffffffff0000 (-65536) 80043 : ffffffffffff0000 (-65536) 80044 : ffffffffffff0000 (-65536) 90020 : 1 (1) 90030 : c0 (192) 100051 : 1 (1) 110013 : 1d (29) 110014 : 1f (31) 110015 : ffffffffffff0000 (-65536) 110016 : ffffffffffff0000 (-65536) 110022 : a7 (167) 110023 : b2 (178) Invoke-CimMethod : Generic failure At C:\Users..\Desktop\scan-atkacpi.ps1:5 char:20 ... $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...

     CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand

110024 : ffff0000 (-65536)
Invoke-CimMethod : Generic failure
At C:\Users\..\Desktop\scan-atkacpi.ps1:5 char:20
 ...  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...
 CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], CimException
FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand

110025 : ffff0000 (-65536) 110026 : ffffffffffff0000 (-65536) 110027 : ffffffffffff0000 (-65536) 120057 : 80000 (524288) 120061 : 1 (1) 12006c : 1 (1) 120075 : 3 (3) 120079 : 4f4 (1268) 12007a : 0 (0) 120093 : 3c (60) 120094 : 27 (39) 120097 : 20 (32) 1200a0 : 0 (0) 1200a1 : 0 (0) 1200a2 : 0 (0) 1200a3 : 0 (0) 130021 : 2 (2) 130022 : 0 (0)

TomBonnot commented 1 year ago

So they did change at the 2022 model, but 2021 and 2020 are working the same way. Had the same result, with 2021. Tho Global PPT works on all devices

vioo-bkp commented 1 year ago

[1] This should return a list of parameters, including the current Total PPT and CPU PPT values for the CPU.

off-topic: If I misunderstood the topic or what you wanted to know, I apologize, but I am in a hurry :Dz

seerge commented 1 year ago

Ok, thanks :) I also got same results from "Routard" user on Reddit.

Quick conclusion, 1200A0/A1 exist on older models too, and seem to work. This is TOTAL PPT (i.e. dGPU and iGPU and CPU together)

How 2021 model sets CPU limits - remains unknown for me.

If someone wills to test, you can try following command (in admin powershell):

Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -ClassName AsusAtkWmi_WMNB) -MethodName DEVS -Arguments @{Device_ID=0x1200a0; Control_status=25}

Replace 0x1200a0 with other IDs.

DeviceID = should be a ID of a endpoint (with 0x in front, cause it's in hex) Control_status = is a value that you try to set :) (i.e. 25W max power)

A quick and simple way to see if something worked - is to run cinebench and look at HWinfo CPU metrics :)

hkaancaliskan commented 1 year ago

G14 2021 GA401QC

60023 : ffffffffffff0004 (-65532)                                                                                    60024 : a36c8086 (2741796998)                                                                                        60026 : 0 (0)
60061 : ffffffffffff0000 (-65536)
60094 : 3 (3)
80041 : ffffffffffff0000 (-65536)
80042 : ffffffffffff0000 (-65536)
80043 : ffffffffffff0000 (-65536)
80044 : ffffffffffff0000 (-65536)
90020 : 1 (1)
90030 : c0 (192)
100051 : 1 (1)
110013 : 0 (0)
110014 : 0 (0)
110015 : ffffffffffff0000 (-65536)
110016 : ffffffffffff0000 (-65536)
110022 : a7 (167)
110023 : b2 (178)
Invoke-CimMethod : Generic failure
At C:\Users\kaan\Desktop\scan-atkacpi.ps1:5 char:20
+ ...  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], Cim
   Exception
    + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodComm
   and

110024 : ffff0000 (-65536)
Invoke-CimMethod : Generic failure
At C:\Users\kaan\Desktop\scan-atkacpi.ps1:5 char:20
+ ...  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], Cim
   Exception
    + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodComm
   and

110025 : ffff0000 (-65536)
110026 : ffffffffffff0000 (-65536)
110027 : ffffffffffff0000 (-65536)
120057 : 80000 (524288)
120061 : 1 (1)
12006c : 1 (1)
120075 : 3 (3)
120079 : 401 (1025)
12007a : 0 (0)
120093 : 3c (60)
120094 : 35 (53)
120095 : 0 (0)
120096 : 0 (0)
120097 : 28 (40)
1200a0 : 0 (0)
1200a1 : 0 (0)
1200a2 : 0 (0)
1200a3 : 0 (0)
130021 : 2 (2)
130022 : 0 (0)
hkaancaliskan commented 1 year ago

GA401QC 0x1200a3 changes APU STAPM in hwinfo 0x1200a2 changes CPU TDC 0x1200a1 changes CPU EDC 0x1200a0 changes CPU PPT

I tried all the numbers above and these are all i can find.

TomBonnot commented 1 year ago

@hkaancaliskan Are you sure 1200a0 change CPU PPT ? For me it changes the whole PPT, which results having a turd instead of a computer at 35W

seerge commented 1 year ago

GA401QC 0x1200a3 changes APU STAPM in hwinfo 0x1200a2 changes CPU TDC 0x1200a1 changes CPU EDC 0x1200a0 changes CPU PPT

I tried all the numbers above and these are all i can find.

That's interesting. Are you sure that A0 sets only CPU PPT? not total (like with GPU as well ?) can you try in some heavy game (that uses both cpu / gpu?). Cause on 2022 model it's literally opposite ?

seerge commented 1 year ago

Just in case guys, A0 is already implemented in app, but it's just called "Total PPT"

TomBonnot commented 1 year ago

@seerge we agree that on your app, total PPT is 1200a0 ?

TomBonnot commented 1 year ago

Well, got my answer trying it rn

TomBonnot commented 1 year ago

image image That’s weird, I am having 100 fps on Minecraft, without the graphics card I should be having like 30 (this is a heavy map

TomBonnot commented 1 year ago

With shaders I had like 15 fps. did reset to 110 Total PPT and having 40 fps again (well the shaders and the map are strong lol)

seerge commented 1 year ago

@seerge we agree that on your app, total PPT is 1200a0 ?

Yes, Total PPT slider - adjusts 1200a0 CPU PPT adjusts 1200b0 (available only on 2022 models).

In v0.13 I have made that CPU slider also adjusts 1200a2 (next to b0). But looks like it had no effect to ones who tested

ke1ne commented 1 year ago

G15 2021 GA503QR

60023 : ffffffffffff0004 (-65532) 60024 : a36c8086 (2741796998) 60026 : 0 (0) 60061 : ffffffffffff0000 (-65536) 60094 : 6 (6) 80041 : ffffffffffff0000 (-65536) 80042 : ffffffffffff0000 (-65536) 80043 : ffffffffffff0000 (-65536) 80044 : ffffffffffff0000 (-65536) 90020 : 0 (0) 90030 : c0 (192) 100051 : 1 (1) 110013 : 0 (0) 110014 : 0 (0) 110015 : ffffffffffff0000 (-65536) 110016 : ffffffffffff0000 (-65536) 110022 : a7 (167) 110023 : b6 (182) Invoke-CimMethod: E:\scan-atkacpi.ps1:5 Line | 5 | … $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl … | ~~~~~~~~~~~~~ | Generic failure 110024 : ffff0000 (-65536) Invoke-CimMethod: E:\scan-atkacpi.ps1:5 Line | 5 | … $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl … | ~~~~~~~~~~~~~ | Generic failure 110025 : ffff0000 (-65536) 110026 : ffffffffffff0000 (-65536) 110027 : ffffffffffff0000 (-65536) 120057 : 80000 (524288) 120061 : 1 (1) 12006c : 1 (1) 120075 : 3 (3) 120079 : 471 (1137) 12007a : 0 (0) 120093 : 50 (80) 120094 : 39 (57) 120095 : 0 (0) 120096 : 0 (0) 120097 : 2e (46) 1200a0 : 0 (0) 1200a1 : 0 (0) 1200a2 : 0 (0) 1200a3 : 0 (0) 130021 : 2 (2) 130022 : 0 (0)

TomBonnot commented 1 year ago

@seerge could you put your result of the 2022 version, this way we could test every settings that differs from yours

seerge commented 1 year ago

@seerge could you put your result of the 2022 version, this way we could test every settings that differs from yours

It's literally second message in this topic :)

marcelomijas commented 1 year ago

No effect on Total PPT with 2020 model

imagen

seerge commented 1 year ago

Good to know :(

TomBonnot commented 1 year ago

@seerge oups I thought it was only a sample, mb thanks

masi0 commented 1 year ago

Please find input from GA401QM

PS C:\Users\dryba\Downloads\scan-atkacpi>> .\scan-atkacpi.ps1 60023 : ffffffffffff0004 (-65532) 60024 : a36c8086 (2741796998) 60026 : 0 (0) 60061 : ffffffffffff0000 (-65536) 60094 : 3 (3) 80041 : ffffffffffff0000 (-65536) 80042 : ffffffffffff0000 (-65536) 80043 : ffffffffffff0000 (-65536) 80044 : ffffffffffff0000 (-65536) 90020 : 0 (0) 90030 : c0 (192) 100051 : 1 (1) 110013 : 1a (26) 110014 : 1c (28) 110015 : ffffffffffff0000 (-65536) 110016 : ffffffffffff0000 (-65536) 110022 : a7 (167) 110023 : b2 (178) Invoke-CimMethod : Generic failure At C:\Users\dryba\Downloads\scan-atkacpi\scan-atkacpi.ps1:5 char:20

110024 : ffff0000 (-65536) Invoke-CimMethod : Generic failure At C:\Users\dryba\Downloads\scan-atkacpi\scan-atkacpi.ps1:5 char:20

110025 : ffff0000 (-65536) 110026 : ffffffffffff0000 (-65536) 110027 : ffffffffffff0000 (-65536) 120057 : 80000 (524288) 120061 : 1 (1) 12006c : 1 (1) 120075 : 3 (3) 120079 : 5a3 (1443) 12007a : 0 (0) 120093 : 3c (60) 120094 : 3a (58) 120095 : 0 (0) 120096 : 0 (0) 120097 : 25 (37) 1200a0 : 0 (0) 1200a1 : 0 (0) 1200a2 : 0 (0) 1200a3 : 0 (0) 130021 : 2 (2) 130022 : 0 (0)

TomBonnot commented 1 year ago

we have the 110015 and 16 that you don’t have And we have all the 800xx that you don’t have too. Do you think it could be safe to try ?

seerge commented 1 year ago

You can try ofc :) in a worst-worst scenario, if you accidentally set some wrong setting - you can do a cmos reset, that will reset all settings to defaults. Turn off laptop normally, press and hold power for like 30 seconds, turn on again normally (it will take like a minute to start booting after)

I used that thing to fix my disappearing wifi card once.

TomBonnot commented 1 year ago

What does result 0 mean ? 1`is that it is good, 42xxxxxxx it doesn’t exists, but 0 ? Alright !

TomBonnot commented 1 year ago

for 35, 110015 and 16 gets a 0 as result

Iapyx0 commented 1 year ago

G14 2021 5800HS 3060 GA401QM

60023 : ffffffffffff0004 (-65532) 60024 : a36c8086 (2741796998) 60026 : 0 (0) 60061 : ffffffffffff0000 (-65536) 60094 : 3 (3) 80041 : ffffffffffff0000 (-65536) 80042 : ffffffffffff0000 (-65536) 80043 : ffffffffffff0000 (-65536) 80044 : ffffffffffff0000 (-65536) 90020 : 0 (0) 90030 : c0 (192) 100051 : 1 (1) 110013 : 0 (0) 110014 : 0 (0) 110015 : ffffffffffff0000 (-65536) 110016 : ffffffffffff0000 (-65536) 110022 : a7 (167) 110023 : b2 (178) Invoke-CimMethod : Generic failure At C:\Users\dj\Downloads\scan-atkacpi\scan-atkacpi.ps1:5 char:20

110024 : ffff0000 (-65536) Invoke-CimMethod : Generic failure At C:\Users\dj\Downloads\scan-atkacpi\scan-atkacpi.ps1:5 char:20

110025 : ffff0000 (-65536) 110026 : ffffffffffff0000 (-65536) 110027 : ffffffffffff0000 (-65536) 120057 : 80000 (524288) 120061 : 0 (0) 12006c : 0 (0) 120075 : 3 (3) 120079 : 35e (862) 12007a : 0 (0) 120093 : 3c (60) 120094 : 1d (29) 120095 : 0 (0) 120096 : 0 (0) 120097 : 19 (25) 1200a0 : 0 (0) 1200a1 : 0 (0) 1200a2 : 0 (0) 1200a3 : 0 (0) 130021 : 2 (2) 130022 : 0 (0)

seerge commented 1 year ago

Thanks, input from 2021 is not needed anymore (you all post same thing anyway) :)

TomBonnot commented 1 year ago

I should test it more but for now, I am putting 105W overall TDP and 25 on CPU (well the CPU one is only for the conscious lol) and so far it seems that the computer handles it very well. I will test it with real benchmark and all, why 105, because I want to let my CPU have 25W and my dGPU have 80W and it seems to do it this way, I don't know if it's the right way but at least we have that to handle temps on our laptops.

Do you think that there is another way to get what is changing CPU TDP or no @seerge ? (Well, you are hard working on the AnimeMatrix for now so it is just a pass by question you know, and well done the work on AnimeMtarix, even if I don't have it, it is great to see that it works with everyone)

MrxSiN commented 1 year ago

G15 2021 5900HS 3060 GA503QM

60023 : ffffffffffff0004 (-65532)
60024 : a36c8086 (2741796998)
60026 : 0 (0)
60061 : ffffffffffff0000 (-65536)
60094 : 6 (6)
80041 : ffffffffffff0000 (-65536)
80042 : ffffffffffff0000 (-65536)
80043 : ffffffffffff0000 (-65536)
80044 : ffffffffffff0000 (-65536)
90020 : 0 (0)
90030 : c8 (200)
100051 : 1 (1)
110013 : 17 (23)
110014 : 19 (25)
110015 : ffffffffffff0000 (-65536)
110016 : ffffffffffff0000 (-65536)
110022 : a7 (167)
110023 : b6 (182)
Invoke-CimMethod : Generic failure At line:5 char:20 + ... $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ... + ~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], CimExc eption + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand 110024 : ffff0000 (-65536) Invoke-CimMethod : Generic failure At line:5 char:20 + ... $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ... + ~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], CimExc eption

110025 : ffff0000 (-65536) 110026 : ffffffffffff0000 (-65536) 110027 : ffffffffffff0000 (-65536) 120057 : 80000 (524288) 120061 : 0 (0) 12006c : 0 (0) 120075 : 3 (3) 120079 : 57e (1406) 12007a : 0 (0) 120093 : 50 (80) 120094 : 4c (76) 120095 : 0 (0) 120096 : 0 (0) 120097 : 31 (49) 1200a0 : 0 (0) 1200a1 : 0 (0) 1200a2 : 0 (0) 1200a3 : 0 (0) 130021 : 2 (2) 130022 : 0 (0)

Alldrich commented 1 year ago

Device: ASUSTeK COMPUTER INC. ROG Zephyrus M16 GU603HM_GU603HM Year: 2021 CPU: 11th Gen Intel(R) Core(TM) i7-11800H GPU: NVIDIA GeForce RTX 3060 Laptop GPU


60023 : ffffffffffff0004 (-65532)
60024 : a36c8086 (2741796998)
60026 : 0 (0)
60059 : ffffffffffff0000 (-65536)
60061 : 0 (0)
60068 : ffffffffffff0000 (-65536)
60069 : ffffffffffff0000 (-65536)
60091 : ffffffffffff0000 (-65536)
60094 : 6 (6)
80041 : ffffffffffff0000 (-65536)
80042 : 0 (0)
80043 : ffffffffffff0000 (-65536)
80044 : ffffffffffff0000 (-65536)
90020 : 0 (0)
90022 : 0 (0)
90023 : 0 (0)
90030 : 40 (64)
100051 : 1 (1)
100054 : ffffffffffff0000 (-65536)
110013 : 1e (30)
110014 : 0 (0)
110015 : ffffffffffff0000 (-65536)
110016 : ffffffffffff0000 (-65536)
110018 : 3 (3)
110022 : c8 (200)
110023 : e1 (225)
Invoke-CimMethod: C:\Users\user\Downloads\scan-atkacpi\scan-atkacpi.ps1:5
Line |
   5 |  …  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Generic failure
110024 : ffff0000 (-65536)
Invoke-CimMethod: C:\Users\user\Downloads\scan-atkacpi\scan-atkacpi.ps1:5
Line |
   5 |  …  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Generic failure
110025 : ffff0000 (-65536)
110026 : ffffffffffff0000 (-65536)
110027 : ffffffffffff0000 (-65536)
120057 : 80000 (524288)
120061 : 1 (1)
12006c : 1 (1)
12006d : 0 (0)
120075 : 3 (3)
120078 : ffffffffffff0000 (-65536)
12007a : 1 (1)
120091 : ffffffffffff0000 (-65536)
120093 : 50 (80)
120094 : 39 (57)
120097 : 2e (46)
1200a0 : 0 (0)
1200a3 : 0 (0)
130021 : 2 (2)
130022 : 0 (0)
130026 : ffffffffffff0000 (-65536)
130031 : 1 (1)
130041 : ffffffffffff0000 (-65536)
gloatoriginal commented 1 year ago

Zephyrus G14 2020 model with the 4900hs and 2060 max-q image image

PS C:\> .\scan-atkacpi.ps1
60023 : ffffffffffff0004 (-65532)
60024 : a36c8086 (2741796998)
60026 : 0 (0)
60061 : ffffffffffff0000 (-65536)
80041 : ffffffffffff0000 (-65536)
80042 : ffffffffffff0000 (-65536)
80043 : ffffffffffff0000 (-65536)
80044 : ffffffffffff0000 (-65536)
100051 : 1 (1)
110013 : 1a (26)
110014 : 1c (28)
110015 : ffffffffffff0000 (-65536)
110016 : ffffffffffff0000 (-65536)
110022 : 99 (153)
110023 : ac (172)
Invoke-CimMethod : Generic failure
At C:\scan-atkacpi.ps1:5 char:20
+ ...  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], Cim
   Exception
    + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodComm
   and

110024 : ffff0000 (-65536)
Invoke-CimMethod : Generic failure
At C:\scan-atkacpi.ps1:5 char:20
+ ...  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], Cim
   Exception
    + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodComm
   and

110025 : ffff0000 (-65536)
110026 : ffffffffffff0000 (-65536)
110027 : ffffffffffff0000 (-65536)
120057 : 80000 (524288)
120061 : 0 (0)
12006c : ffffffffffff0000 (-65536)
120075 : 3 (3)
130021 : 2 (2)
130022 : 0 (0)
marcelomijas commented 1 year ago

Hi @seerge , some time ago someone developed an utility called G14Control that could control TDP and boost on the G14 2020-2021 using RyzenADJ under the hood. You might want to have a look at it for advancing in the full compatibility with 2020-2021 models ;)

seerge commented 1 year ago

@marcelomijas I'm aware about RyzenADJ (i was even mentioning it somewhere as alternative to PPT control), main problem is that it needs to be run as admin, and my app is not requiring admin (i.e. every time setting PPT via ryzenadj will force admin permissions popup)

ajamro commented 1 year ago

System Model: ROG Zephyrus G14 GA401IU_GA401IU (R7-4800HS + 1660Ti MaxQ)

60023 : ffffffffffff0004 (-65532)
60024 : a36c8086 (2741796998)
60026 : 0 (0)
60061 : ffffffffffff0000 (-65536)
80041 : ffffffffffff0000 (-65536)
80042 : ffffffffffff0000 (-65536)
80043 : ffffffffffff0000 (-65536)
80044 : ffffffffffff0000 (-65536)
100051 : 1 (1)
110013 : 18 (24)
110014 : 1a (26)
110015 : ffffffffffff0000 (-65536)
110016 : ffffffffffff0000 (-65536)
110022 : 99 (153)
110023 : ac (172)
110024 : ffff0000 (-65536)
110025 : ffff0000 (-65536)
110026 : ffffffffffff0000 (-65536)
110027 : ffffffffffff0000 (-65536)
120057 : 80000 (524288)
120061 : 0 (0)
12006c : ffffffffffff0000 (-65536)
120075 : 3 (3)
130021 : 2 (2)
130022 : 0 (0)
MuratDugan commented 1 year ago

ASUS ROG FLOW X13 2022 GV301RE-LJ090 Ryzen 7 6800HS, RTX 3050ti 35W + 5W

image

image

60023 : ffffffffffff0004 (-65532)
60024 : a36c8086 (2741796998)
60026 : 0 (0)
6005b : 4 (4)
60061 : ffffffffffff0000 (-65536)
60077 : 0 (0)
60094 : 6 (6)
80041 : ffffffffffff0000 (-65536)
80042 : ffffffffffff0000 (-65536)
80043 : ffffffffffff0000 (-65536)
80044 : ffffffffffff0000 (-65536)
90016 : 1 (1)
90017 : 0 (0)
90018 : 0 (0)
90019 : 0 (0)
9001c : 3 (3)
90020 : 1 (1)
90030 : c0 (192)
100051 : 1 (1)
110013 : 26 (38)
110014 : 0 (0)
110015 : ffffffffffff0000 (-65536)
110016 : ffffffffffff0000 (-65536)
110022 : ff (255)
110023 : ff (255)
Invoke-CimMethod : Generic failure 
At C:\Users\requ\Desktop\scan-atkacpi.ps1:5 char:20
+ ...  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], CimExc 
   eption
    + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand

110024 : ffff0000 (-65536)
Invoke-CimMethod : Generic failure 
At C:\Users\requ\Desktop\scan-atkacpi.ps1:5 char:20
+ ...  $result = (Invoke-CimMethod (Get-CimInstance -Namespace root/wmi -Cl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (AsusAtkWmi_WMNB...PNP0C14\ATK_0"):CimInstance) [Invoke-CimMethod], CimExc 
   eption
    + FullyQualifiedErrorId : HRESULT 0x80041001,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand

110025 : ffff0000 (-65536)
110026 : ffffffffffff0000 (-65536)
110027 : ffffffffffff0000 (-65536)
120057 : 80000 (524288)
120061 : 20001 (131073)
12006c : 2a (42)
120075 : 3 (3)
120079 : 2cb (715)
12007a : 0 (0)
120093 : 23 (35)
120094 : 35 (53)
120097 : 30 (48)
1200a0 : 0 (0)
1200a1 : 0 (0)
1200a2 : 0 (0)
1200a3 : 0 (0)
1200b0 : 0 (0)
1200b1 : 0 (0)
1200c0 : 0 (0)
1200c1 : 0 (0)
1200c2 : 0 (0)
130021 : 2 (2)
130022 : 1 (1)
130026 : ffffffffffff0000 (-65536)
130031 : 1 (1)
hkaancaliskan commented 1 year ago

@seerge something weird going on my end, total ppt slider changes CPU EDC :/ I have a GA401QC with 5800HS and rtx3050 Looks like slider changes 0x001200A1 but its supposed to 0x001200A0

sasaasas Adsız

Btw, i have 60hz monitor with no OD but app shows 120hz which does nothing when i click.

seerge commented 1 year ago

I just adjusted that and reuploaded 0.27 over old one, just redownload please https://github.com/seerge/g-helper/releases/tag/v0.27

Before slider was adjusting both 0x001200A1 + 0x001200A0, now - only A0

hkaancaliskan commented 1 year ago

GA401QC 0x1200a3 changes APU STAPM in hwinfo 0x1200a2 changes CPU TDC 0x1200a1 changes CPU EDC 0x1200a0 changes CPU PPT I tried all the numbers above and these are all i can find.

That's interesting. Are you sure that A0 sets only CPU PPT? not total (like with GPU as well ?) can you try in some heavy game (that uses both cpu / gpu?). Cause on 2022 model it's literally opposite ?

Sorry, i was somewhat busy but yes, A0 changes just the CPU PPT

resim

hkaancaliskan commented 1 year ago

I just adjusted that and reuploaded 0.27 over old one, just redownload please https://github.com/seerge/g-helper/releases/tag/v0.27

Before slider was adjusting both 0x001200A1 + 0x001200A0, now - only A0

Thanks, fixed but A0 changes CPU PPT for me, now with latest version Total slider changes CPU PPT.

seerge commented 1 year ago

@hkaancaliskan do you also have armory installed ? can you try on your device what values do Armory seem to adjust ?

cause if 0x1200a0 - is CPU PPT, and 0x1200a3 - is APU PPT - then it could be that we have everything that we need for 2021?

Just on 2022 (mine) it's literally upside down, 0x1200a0 - is TOTAL PPT, and 0x1200aB0 (new one, that you don't have) is CPU

hkaancaliskan commented 1 year ago

@seerge Err.. looks like we have a problem hehe resim

seerge commented 1 year ago

@hkaancaliskan why ? i think both sliders by fact just change CPU power limit ? Does GPU "tab" has something inside too ?

So to make G-helper "correct" for 2021 model, I just need to rename "Total" slider into CPU :) ?

hkaancaliskan commented 1 year ago

SPL and SPPT doesn't seem to change any of those instances, does it? GPU tab has nothing about watt resim

seerge commented 1 year ago

@hkaancaliskan if you mean that they show different values - it's absolutely fine. Armory just shows values it remembers last.

There is no way to "read" current values from BIOS (that's why my "scanning script" shows 0 on all this discovered endpoints).

hkaancaliskan commented 1 year ago

Understoood. Then how can i know what values armoury crate adjust?

seerge commented 1 year ago

In a same way you did it for GHelper, just set value - and look at HWinfo ? :)

hkaancaliskan commented 1 year ago

I can confirm armoury crate changes CPU PPT. After 2mins of boost goes down to 16W.

resim

seerge commented 1 year ago

Can you try find a match between 0x1200a0 and 0x1200a3 endpoints and Armory sliders ? (i.e. if they set the same thing in reality?)

Base from what I have understood so far 0x1200a0 = SPPT ? are you sure that 0x1200a3 is APU and not just SPL ?