Did you know that you can navigate the posts by swiping left and right?
TLDR: My shelved tablet is usable again. Under long load its processor now runs at about four times the clock speed it had before, and I did not have to open the case.
My ThinkPad X1 Tablet Gen 3 has a four-core processor, 16 GB of memory and a fast SSD. That should be enough for years of work. It came from a sell-off of US stock and its screen scratched easily, but a 3MK protective glass took care of that. The processor was the real problem.
Under heavier load the tablet was fast only for a moment. Then it slowed down, at worst to 0.7 GHz. I tried to fix it several times and lost many days on it. ThrottleStop, a popular tool for such problems, changed nothing and reported no error. In the end I put a working computer away.
Years later I came back to it with the help of AI. It turned out that the processor never had to slow down like that. Intel software watched a sensor on the motherboard. When the sensor reached 56 °C, the software cut the processor’s power to about 8 W, although the limit was set to 25 W. With that sensor removed from the system, the processor held about 3 GHz in tests.

The same processor model, not my unit: Intel Core i7-8650U, SR3L8 by Rjluna2, CC BY-SA 4.0, unchanged.
Intel put four cores where two had been and kept the 15 W (i7-7600U, i7-8650U):
| i7-7600U, 7th gen | i7-8650U, 8th gen | |
|---|---|---|
| Cores / threads | 2 / 4 | 4 / 8 |
| TDP | 15 W | 15 W |
| Base clock | 2.8 GHz | 1.9 GHz |
| Configurable up | 25 W at 2.9 GHz | 25 W at 2.1 GHz |
15 W pays for the base clock, not for four cores in turbo. So the laptop maker decides how fast the chip really is, with power limits and thermal policies. A short turbo spike spends the heat budget, then the cut comes.
This processor has four cores, yet Intel gave it the same 15 W as the two-core model before it. That is enough for the base clock, not for four cores at turbo speed. So the laptop maker decides how fast it really is, with power limits and temperature settings. In Notebookcheck’s tests the weaker version of this tablet, with an i5, was faster than the one with an i7.
A power limit says how much energy the processor may use, and so how fast it can work. There are two such limits, and the lower one applies. The user sets the first one. Lenovo gave this tablet 15 W. With the help of AI I raised it to 25 W in Intel XTU, the most Intel allows for this processor, and I wanted those 25 W to hold under load. Intel’s thermal driver changes the second one on its own, and XTU does not show it.
Lenovo chose the 56 °C threshold. It is that low because it is the temperature of the board, and its job is to protect the case. The processor itself can take about 100 °C, so it was slowing down with plenty of headroom left.
| Layer | Where | Who writes it | Can you change it? |
|---|---|---|---|
| MSR | MSR_PKG_POWER_LIMIT, 0x610 |
BIOS at boot, XTU, DTT as a fallback | Yes, with the XTU SDK |
| MMIO | MCHBAR+0x59A0 (PL1), +0x59A4 (PL2) | BIOS at boot, then Intel DTT | Not from signed user tools. So change what DTT reacts to |
| Embedded controller | firmware of the laptop | some makers | No easy way. Not the case here |
| Windows | power mode, Energy saver, boost mode, clock cap | you | Yes, with Settings and powercfg |
The effective limit is the lowest of them. XTU reads back only the MSR, so its 25 W proves nothing.
The chain on this tablet:
ACPI\INT3403\CPUP a trip of 56 °C.esif_umdf2.dll in WUDFHost), not in esifsvc. That is why stopping services did nothing.MSR 0x610, for reading it on Linux or in a debugger (the power unit is in 0x606 bits 3:0, W = 1/2^unit):
| Bits | Meaning |
|---|---|
| 14:0 | PL1 |
| 15 | PL1 enabled |
| 16 | PL1 clamp |
| 23:17 | tau, the PL1 window |
| 46:32 | PL2 |
| 47 | PL2 enabled |
| 63 | lock until reset |
PL1 and PL2 are power limits. Setting them to 25 W does not switch the cTDP level or its base clock.
This works without a third-party driver: DTT reports its own decisions through ETW.
# Admin. Start the trace, run the load test in another window, then press on.
$dir = Join-Path $env:TEMP 'x1-trace'; New-Item -ItemType Directory -Force $dir | Out-Null
'DptfCpuEtwProvider', 'DptfAcpiEtwProvider', 'EsifLfEtwProvider', 'EsifUmdf2EtwProvider', 'DPTF', 'Lenovo-Thermal-Service' |
Set-Content "$dir\providers.txt" -Encoding ASCII
logman start x1dtt -pf "$dir\providers.txt" -o "$dir\dtt.etl" -ets
Start-Sleep -Seconds 130
logman stop x1dtt -ets
tracerpt "$dir\dtt.etl" -o "$dir\dtt.csv" -of CSV -y
# Decode the trace: 0x59a0 = PL1, 0x59a4 = PL2, raw value / 8 = watts.
$csv = Join-Path $env:TEMP 'x1-trace\dtt.csv'
$prev = ''
Get-Content $csv | ForEach-Object {
$line = $null
if ($_ -match 'offset (0x59a[04])\[14:0\] = (0x[0-9a-fA-F]+)') {
$line = '{0} = {1} W' -f $Matches[1], ([Convert]::ToInt32($Matches[2], 16) / 8)
} elseif ($_ -match '(\w+) D0: TEMPERATURE = (\d+)') { # every sensor, not only CPUP
$line = '{0} = {1:N1} C' -f $Matches[1], ($Matches[2] / 10 - 273.15)
}
if ($line -and $line -ne $prev) { $line; $prev = $line }
}
A cut looks like one sensor reaching its trip, followed at once by 0x59a0 falling. Here it was CPUP, about 56 °C, and a fall towards 8.5 W. That sensor’s instance id is what discover.ps1 lists and what install.ps1 -Sensor takes.
SET_RAPL_POWER_LIMIT and Policy.logman query providers lists yours.Two changes helped: switching off Windows power saving, which also lowered the power, and removing the sensor from the system. The sensor stays on the board and can be brought back. Now cooling sets the speed. The processor reaches 96 °C at about 17 W, so 25 W is only an upper bound.
This sensor protected the case from overheating. Without it the tablet can get too hot, and heat also shortens the life of the battery. I have not measured how large that risk is. Without the sensor, don’t hold the tablet in your hands under load. When you unplug the charger, my service brings the sensor back by itself within a few seconds. It has not yet passed one test: unplugging the charger under full load.
The safer choice is to keep the sensor and cap the clock at 2.6 GHz. In a test the tablet was then only 10% slower than without the sensor, and the processor ran at 72 °C instead of 96 °C.
Eight threads, mains, package power averaged over seconds 60-120, one run each, in the order they were tried:
| Tried | Mean | Lowest after 30 s | Hottest |
|---|---|---|---|
| XTU 25 W, power saving on | 5.8 W | 4.1 W | 79 °C |
| XTU 25 W, power saving on, Best performance chosen (overridden) | 6.7 W | 4.0 W | 75 °C |
| Power saving off, Best performance | 10.2 W | 7.3 W | 96 °C |
| The same, traced with ETW | 8.9 W | 7.6 W | 96 °C |
| esifsvc stopped | 9.5 W | 8.3 W | 76 °C |
| Lenovo LITSSVC stopped | 11.2 W | 8.1 W | 96 °C |
| Both services stopped | 12.1 W | 7.7 W | 96 °C |
| Disable CPUP (refused by Windows) | 9.5 W | 7.9 W | 97 °C |
| DTT processor participant removed | 9.0 W | 8.1 W | 68 °C |
| CPUP removed | 16.6 W | 14.9 W | 97 °C |
The three setups that were compared for work:
| Setup | Power | Clock | Temperature, max | Work/s |
|---|---|---|---|---|
| 25 W, sensor active | 8.4 W | 2.1 GHz | 72 °C | 5410 |
| Turbo capped at 2.6 GHz | 11.4 W | 2.6 GHz | 72 °C | 7059 |
| 25 W, sensor removed | 16.6 W | 3.0 GHz | 96 °C | 7864 |
| Route | What happened, or why not |
|---|---|
| XTU limits alone | MSR only, DTT still cuts |
| ThrottleStop | No effect and no error for me, cause unknown. Its own driver loaded, but its protocol is undocumented |
| Universal x86 Tuning Utility | Failed without an error: Defender quarantined its WinRing0x64.sys, a vulnerable driver (CVE-2020-14979) |
| Writing MMIO through WinRing0 | A known privilege-escalation hole, and the build I tried cannot reach this address |
| Stopping esifsvc and LITSSVC | 9-12 W: the policy lives in the driver |
| Disabling CPUP in Device Manager | Not supported, the DTT nodes cannot be disabled. They can be removed |
| Removing the processor participant | The BIOS limit applies: 8.5-9 W |
| cTDP or thermal settings in BIOS WMI | None exposed |
| Undervolting | XTU controls 34, 79 and 83 are read-only: the Plundervolt fix (CVE-2019-11157) |
setup_var / RU.efi, BIOS downgrade |
Researched, not done. Other models needed an old BIOS, and rollback may be blocked |
| Modified BIOS | Not done: signed capsules, and a brick needs a hardware programmer |
| DTT data-vault override of the 56 °C trip | Not done. It would be cleaner, but the vault is hashed |
Plan B, untested on this tablet: Linux can write both limits without a third-party driver, through /sys/class/powercap (intel-rapl:0 is MSR, intel-rapl-mmio:0 is MMIO). throttled does it periodically. Don’t run thermald --adaptive, it applies the same thermal table. Check bit 63 of 0x610 first.
I started with the AI model GLM, which was the first to suspect Intel’s thermal driver. Anthropic’s Claude found the cause. It would not raise the limit with a driver that has full access to the system (ring 0), though, because that meant getting around Microsoft Defender. Defender blocks this driver because of a known vulnerability. Then the safeguard, Anthropic’s safety filter, began to interrupt Claude’s answers.
So I went back to GLM. It tried that driver without success and undid its change to Defender. Then it found a simpler way: remove the sensor. Weakening Defender turned out to be unnecessary.
From the session logs, Warsaw time. Claude drafted this section, so note that it describes its own maker’s safeguard.
| When | Who | What happened |
|---|---|---|
| 17 Nov, 11:33 | GLM-5.3, high | The start. It led to 25 W in XTU, which turned out to be only one of the two limits |
| 21 Nov, 20:34-21:00 | Claude Opus 5.5 | ETW trace: DTT, the CPUP sensor, 56 °C, 8.5 W. It removed the processor participant, which did not help, and concluded that 15 W was out of reach on Windows under its rules |
| 21:23 | Safeguard | Stopped an answer during work on the throughput test |
| 21:44 | Safeguard | Flagged the session, Opus 4.8 answered instead |
| 21:49, 21:50 | Safeguard | Stopped the answers to my request for a sustained 20-25 W, and to the same request with my reasons |
| 21:54 | Safeguard | Stopped a check of the hash inside a DTT configuration file |
| 21:57, 21:58 | Safeguard | Stopped the request to document the findings, flagged the session again. Opus 4.8 wrote the document |
| 22:03 | Safeguard | Stopped the sixth answer, during the clock-cap tests |
| 22:10 | GLM-5.3, max | Took over, with that document |
| 22:34 | GLM-5.3, max | Removed CPUP |
The AI needed a measurable goal. In short (a summary, not my exact words):
Under sustained load, reach the maximum power the cooling allows, but no more than 25 W.
“Fix the throttling” lets an agent stop at a readback of 25 W. This goal can only be proven under load.
In my view GLM would have managed without Claude once success was defined.
Another laptop with an Intel processor may have a similar problem. On mains, load the processor fully for two minutes and watch its power and temperature (the script is in the collapsed section “measure your own machine” below). If it reaches about 95 °C, it needs better cooling. If it stays clearly cooler while the power falls far below the limit, something is holding it back.
Don’t attempt the fix with a swollen battery or a broken fan, on someone else’s hardware, or if you care about the warranty.
I hold it against Lenovo that it lazily left this problem to its users. When working computers are thrown away, the environment pays too.
Start here on any laptop. The first script only reads. The second loads the CPU fully.
discover.ps1: processor, BIOS, XTU, VBS, power mode and the DTT sensors present.
# discover.ps1 - read-only, no admin. Run it first, on any Windows laptop with an Intel CPU.
$cpu = Get-CimInstance Win32_Processor
'CPU: {0} ({1} cores, {2} threads, nominal {3} MHz)' -f $cpu.Name.Trim(), $cpu.NumberOfCores, $cpu.NumberOfLogicalProcessors, $cpu.MaxClockSpeed
'Machine: ' + (Get-CimInstance Win32_ComputerSystem).Manufacturer + ' ' + (Get-CimInstance Win32_ComputerSystem).Model
'BIOS: ' + (Get-CimInstance Win32_BIOS).SMBIOSBIOSVersion
'Windows: ' + [Environment]::OSVersion.Version
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
'XTU SDK: ' + $(if (Test-Path $dll) { [Diagnostics.FileVersionInfo]::GetVersionInfo($dll).FileVersion } else { 'not installed' })
$dg = Get-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard -ErrorAction SilentlyContinue
'VBS: status={0} (2 = running), Memory integrity={1}' -f $dg.VirtualizationBasedSecurityStatus, [bool]($dg.SecurityServicesRunning -contains 2)
Add-Type -Namespace X1Find -Name Power -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerGetEffectiveOverlayScheme(out Guid g);
'@
$g = [Guid]::Empty
[void][X1Find.Power]::PowerGetEffectiveOverlayScheme([ref]$g)
"Power mode: $g (ded574b5-45a0-4f42-8737-46345c09c238 = Best performance)"
$pkg = $null
try { $pkg = (Get-Counter '\Energy Meter(RAPL_Package0_PKG)\Power' -ErrorAction Stop).CounterSamples[0].CookedValue / 1000 } catch { }
'Package W: ' + $(if ($null -ne $pkg) { [math]::Round($pkg, 1) } else { 'no RAPL counter' })
'Intel DTT / DPTF / IPF participants (the sensor candidates are the Generic Participants):'
Get-PnpDevice -PresentOnly |
Where-Object { $_.FriendlyName -match 'Dynamic Tuning|Dynamic Platform and Thermal|Innovation Platform Framework' } |
Format-Table InstanceId, FriendlyName -AutoSize | Out-String -Width 160
loadtest.ps1: power, clock, temperature and work every 2 s, a CSV and a verdict.
# loadtest.ps1 - no admin. Full load: the case gets hot. Mains only, one test at a time.
param(
[int]$Seconds = 120,
[double]$TargetW = 25, # the limit you set
[int]$ThermalC = 94, # a few degrees below Tjmax (100 C on the i7-8650U)
[string]$Csv = (Join-Path $env:TEMP ("loadtest-{0:yyyyMMdd-HHmmss}.csv" -f (Get-Date)))
)
Add-Type -TypeDefinition @'
using System; using System.Threading;
public static class X1Burn {
static volatile bool stop; public static long Work;
public static void Start(int n) {
stop = false; Work = 0;
for (int i = 0; i < n; i++) {
var t = new Thread(() => { double x = 1.0001; while (!stop) {
for (int k = 0; k < 100000; k++) { x = Math.Sqrt(x * 1.000001 + 0.5); }
Interlocked.Increment(ref Work); } });
t.IsBackground = true; t.Start();
}
}
public static void Stop() { stop = true; }
}
'@
Add-Type -AssemblyName System.Windows.Forms
$nominal = (Get-CimInstance Win32_Processor).MaxClockSpeed / 1000
$names = '\Energy Meter(RAPL_Package0_PKG)\Power',
'\Processor Information(_Total)\% Processor Performance',
'\Thermal Zone Information(*)\Temperature'
"PASS: from s40 every 10 s window is at $ThermalC C+ or at $TargetW W, and never above $TargetW W on average."
$rows = @(); $lastWork = 0; $lastT = 0
$sw = [Diagnostics.Stopwatch]::StartNew()
[X1Burn]::Start([Environment]::ProcessorCount)
try {
while ($sw.Elapsed.TotalSeconds -lt $Seconds) {
$s = (Get-Counter $names -SampleInterval 2 -MaxSamples 1).CounterSamples
$t = $sw.Elapsed.TotalSeconds; $work = [X1Burn]::Work
$hottest = ($s | Where-Object Path -like '*thermal zone*' | Measure-Object CookedValue -Maximum).Maximum
$r = [pscustomobject]@{
t = [math]::Round($t); W = [math]::Round($s[0].CookedValue / 1000, 1)
GHz = [math]::Round($s[1].CookedValue * $nominal / 100, 2); C = [math]::Round($hottest - 273.15)
WorkPerS = [math]::Round(($work - $lastWork) / ($t - $lastT))
}
$lastWork = $work; $lastT = $t; $rows += $r
'{0,4} s {1,6} W {2,6} GHz {3,4} C {4,7} work/s' -f $r.t, $r.W, $r.GHz, $r.C, $r.WorkPerS
if ($r.C -ge 101 -or [Windows.Forms.SystemInformation]::PowerStatus.PowerLineStatus -ne 'Online') { 'ABORTED'; break }
}
} finally { [X1Burn]::Stop() }
$rows | Export-Csv -Path $Csv -NoTypeInformation
$late = @($rows | Where-Object t -ge 60)
if ($late.Count -lt 5) { "too short to judge: run at least 100 s | pass=False | csv: $Csv"; return }
$mean =($late | Measure-Object W -Average).Average
$short = @($rows | Where-Object t -ge 40 | Where-Object {
$end = $_.t; $win = $rows | Where-Object { $_.t -gt $end - 10 -and $_.t -le $end }
($win | Measure-Object W -Average).Average -lt ($TargetW - 1) -and ($win | Measure-Object C -Maximum).Maximum -lt $ThermalC
})
$ok = $rows[-1].t -ge ($Seconds - 2) -and $mean -le ($TargetW + 0.5) -and $short.Count -eq 0
'from s60: {0:N1} W, {1:N2} GHz, {2:N0} work/s | windows short of both limits={3} | pass={4}' -f `
$mean, ($late | Measure-Object GHz -Average).Average, ($late | Measure-Object WorkPerS -Average).Average, $short.Count, $ok
"csv: $Csv"
How to read it:
Tested on one machine. The method should carry over to Intel laptops where DTT or DPTF does the cutting, above all the 8th-generation U series: i5-8250U, i5-8350U, i7-8550U, i7-8650U.
Don’t even try when:
CHRG is the charger). The trace proves which sensor trips, not what it protects,Watch the charger too. This tablet came with 45 W or 65 W and has a 42 Wh battery. If the battery drains on mains under load, lower the limit.
The ladder. Test after every step and stop when cooling becomes the limit:
discover.ps1, then a baseline loadtest.ps1. Write the numbers down.controls.ps1: confirm that PL1, PL2 and tau can be changed, and note their ids and boot values.pnputil /scan-devices and see the cut return. That is your proof.install.ps1 -Sensor '...' -Watts ... -Tau .... The service assumes the ids 48, 47 and 66.Knobs that need no driver and keep the protections:
# Admin. Note the current values first.
powercfg /qh SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE
powercfg /qh SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX
# Calmer turbo: 4 = Efficient Aggressive, 2 = default here, 0 = turbo off (the last resort).
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
# Clock cap in MHz, 0 = none. Try a few and keep the one with the most work/s.
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 2600
powercfg /setactive SCHEME_CURRENT
controls.ps1: what XTU can change and read on your machine, with ids.
# controls.ps1 - read-only, elevated. What does XTU let you change and read on this machine?
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
$lib = [Activator]::CreateInstance([Reflection.Assembly]::LoadFrom($dll).GetType('Intel.Overclocking.SDK.IntelOverclockingLibrary'))
$lib.Initialize()
if (-not $lib.InitializeCheck()) { throw 'XTU SDK not ready.' }
'--- controls (PL1=48, PL2=47, tau=66 here; check the names on your machine)'
$lib.TuningLib.GetAvailableControls() | Sort-Object Id | Select-Object * | Format-List | Out-String -Width 160
'--- monitors'
$m = $lib.MonitoringLib
$m.Start()
Start-Sleep 3
foreach ($x in ($m.GetAvailableMonitors() | Sort-Object Id)) {
$v = try { $m.GetValue([uint32]$x.Id) } catch { '?' }
'{0,10} | {1,-45} | {2,10} {3}' -f $x.Id, $x.Name, $v, $x.Units
}
$m.Stop()
Prompt for an AI agent, for any laptop:
My Intel laptop throttles under sustained load. Help me unblock it with the method from
https://blog.ww86.eu/hardware/2026/11/19/x1-tablet-25w-throttling.html
Read the whole post, with every collapsed section. It was tested on a different machine,
so treat its values as examples, not as facts about mine.
Success: under sustained load, the maximum power my cooling allows,
but no more than the cTDP-up Intel lists for my exact CPU.
Phase 1, read-only: run discover.ps1, check my CPU against the "Don't even try" list,
and tell me if you would stop here and why. Then wait for my answer.
Phase 2, after my yes: baseline load test, then the ladder, one step at a time.
Before each change: one sentence on what it does and the exact undo. Wait for my yes.
After each change: the same load test, and a table of before and after.
Hard limits: no third-party ring0 drivers, no Defender exclusions, no BIOS changes.
Never remove a battery or charger sensor, the DTT manager or its processor participant.
Never remove a sensor the trace has not proved. A readback is not proof, only load is.
Old threads where people hit the same wall. If this post solved yours, tell them:
Rebuild it with an AI. The whole fix, code included, is in the sections below. For this tablet, give your agent this (other laptops have their own prompt in “unblock your own processor”):
Success: under sustained load, the maximum power the cooling allows,
but no more than 25 W.
My ThinkPad X1 Tablet Gen 3 throttles again. Read the whole post, including
the collapsed sections:
https://blog.ww86.eu/hardware/2026/11/19/x1-tablet-25w-throttling.html
Start read-only: run the check, look for what changed, tell me what you found.
Ask before the load test and before every change, and give me a rollback.
No third-party ring0 drivers, no Defender exclusions, nothing above 25 W.
Order: check, what changed, load test, table, trace. Change things last and ask the owner before a change, a reboot or stopping a service. Run one load test at a time, never while someone else is tuning.
State, read-only
# Read-only, no admin needed.
Add-Type -Namespace X1 -Name Power -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerGetEffectiveOverlayScheme(out Guid g);
'@
$g = [Guid]::Empty; [void][X1.Power]::PowerGetEffectiveOverlayScheme([ref]$g)
"CPU: " + (Get-CimInstance Win32_Processor).Name
"BIOS: " + (Get-CimInstance Win32_BIOS).SMBIOSBIOSVersion
"last boot: " + (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
"battery: " + (Get-CimInstance Win32_Battery).BatteryStatus + " (2 = mains; 1, 4, 5 = discharging)"
"power mode: $g (for a load test expect ded574b5-45a0-4f42-8737-46345c09c238 = Best performance)"
"CPUP present: " + [bool](Get-PnpDevice -InstanceId 'ACPI\INT3403\CPUP' -ErrorAction SilentlyContinue | Where-Object Present)
Get-Service TdpModeService, XTU3SERVICE, esifsvc, LITSSVC -ErrorAction SilentlyContinue | Format-Table Name, Status
Get-Process mode-watch, ThrottleStop -ErrorAction SilentlyContinue | Format-Table Name, Id
Get-ScheduledTask -TaskName 'TDP*' -ErrorAction SilentlyContinue | Format-Table TaskName, State
Get-CimInstance Win32_PnPSignedDriver | Where-Object DeviceName -match 'Dynamic Tuning' |
Sort-Object DeviceName -Unique | Format-Table DeviceName, DriverVersion
Without admin some tasks are invisible. An empty list is no proof that there are none.
What was installed or updated
# Read-only. What was installed or updated in the last 14 days?
$since = (Get-Date).AddDays(-14)
@(
Get-WinEvent -FilterHashtable @{ LogName = 'System'; StartTime = $since; ProviderName = 'Microsoft-Windows-WindowsUpdateClient'; Id = 19 } -ErrorAction SilentlyContinue
Get-WinEvent -FilterHashtable @{ LogName = 'System'; StartTime = $since; Id = 7045 } -ErrorAction SilentlyContinue
) | Sort-Object TimeCreated -Descending |
ForEach-Object { '{0:s} {1}' -f $_.TimeCreated, ($_.Message -replace '\s+', ' ') }
Get-WinEvent -FilterHashtable @{ LogName = 'Application'; StartTime = $since; ProviderName = 'MsiInstaller'; Id = 1033 } -ErrorAction SilentlyContinue |
ForEach-Object { '{0:s} {1}' -f $_.TimeCreated, ($_.Message -replace '\s+', ' ') }
Symptom, cause, action
| Symptom | Likely cause | Action |
|---|---|---|
| Turbo, then 8 W at 65-78 °C, CPUP present | The sensor is back: reboot, driver or Windows update, device rescan, resume | Find out what restored it, then, with consent, “Rebuild the fix from nothing” |
| 8 W from the first second, CPUP absent | A low MMIO limit was left behind when the sensor was removed | Let it cool, then, with consent, “Rebuild the fix from nothing” |
| A slide to 4-6 W at 53-57 °C | Energy saver or Best power efficiency, which override the chosen mode | Energy saver off, Best performance |
| Flat 15 W, below 95 °C | A limit left over from battery use, or XTU limits lost | Check the power source, set 25 W again |
| Flat 8.5-9 W, the DTT processor participant is missing | Without DTT the BIOS MMIO value applies | pnputil /scan-devices |
| Below 15 W at 96 °C, thermal flag set | Dust, dried paste, blocked vents, hot room | Cooling, not software |
| Limits differ from what was set | Another program writes them: XTU profiles, ThrottleStop, UXTU, Vantage, a new DTT | List recent changes, then trace |
| CPU below 1 GHz while the GPU is at 100% | The CPU and the iGPU share one package power budget | Find what loads the GPU: hardware acceleration, compositing |
| Low power and low CPU usage | No throttling, just no load | Run the load test |
| Switching takes minutes under load | Scheduled tasks default to priority 7, below normal | Task priority 4 or higher (a lower number) |
Warning: this removes the manufacturer’s protection of the case, so do it on mains only; on battery the service from step 3 brings the sensor back. The undo is the next section.
All code is in this post. The one outside file is the XTU installer.
Step 1. The software.
A6ABE038954FED536F60004DA0CAAEE80144EAEC1E1534AF930C891D167016D4. Newer XTU was not tested here.# Check an installer before running it: the hash and Valid / Intel Corporation.
$f = '.\xtusetup.exe'
(Get-FileHash $f -Algorithm SHA256).Hash
Get-AuthenticodeSignature $f | Format-List Status, SignerCertificate
Step 2. By hand, to prove it works. Switch Energy saver off in Settings first, then run this elevated, with the tablet cool and idle:
# Admin, on mains, while the tablet is cool and idle. Energy saver must be off.
Add-Type -AssemblyName System.Windows.Forms
if ([Windows.Forms.SystemInformation]::PowerStatus.PowerLineStatus -ne 'Online') { throw 'Not on mains: keep the sensor.' }
Add-Type -Namespace X1 -Name Overlay -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerSetActiveOverlayScheme(Guid g);
'@
[void][X1.Overlay]::PowerSetActiveOverlayScheme([Guid]'ded574b5-45a0-4f42-8737-46345c09c238')
Start-Service XTU3SERVICE
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
$asm = [Reflection.Assembly]::LoadFrom($dll)
$lib = [Activator]::CreateInstance($asm.GetType('Intel.Overclocking.SDK.IntelOverclockingLibrary'))
$lib.Initialize()
$t = $lib.TuningLib
$t.Tune([uint32]48, [decimal]25, $false) # PL1, W
$t.Tune([uint32]47, [decimal]25, $false) # PL2, W
$t.Tune([uint32]66, [decimal]28, $false) # tau, s
$t.ApplyChanges($false)
48, 47, 66 | ForEach-Object { $t.GetControl([uint32]$_).ActiveValue } # 25, 25, 28
pnputil /scan-devices # sensor back, DTT writes its cool-state 29 W
Start-Sleep -Seconds 20
pnputil /remove-device 'ACPI\INT3403\CPUP' # sensor out, confirm the limit with a load test
Cool means CPUP well below 56 °C, as the trace shows it. After one hot restore the cut came back in about 18 s, inside the 20 s wait above. Removing the sensor then may leave the low limit behind (not proven).
Then run loadtest.ps1. If XTU fails to initialise, wait: its service can need a minute or more after boot. By hand it lasts until a reboot or a device scan. Re-plugging the charger or changing the power mode can reset the limits.
Step 3. The automation. Save TdpModeService.cs and install.ps1 (below) side by side, ASCII, and run the installer elevated: powershell -ExecutionPolicy Bypass -File .\install.ps1
How far it is tested: this is a simpler rewrite of the service on my tablet, not the same code. It has no stuck-limit alarm and no backup watchdog. It compiles, its decision function passed 144 combinations of inputs and a 17-minute simulation with two unplugs, and it reads the real sensor state. It has not yet been installed or run under load.
Since 22 November 2026 my tablet runs different code, v1.4, from C:\Program Files\TDP, also not accepted yet. Older scripts are archived in C:\ProgramData\TDP. Look for both, and for TDP-* tasks, before blaming anything else. The installer below replaces that service and disables those tasks. If you write your own automation instead, it must:
TdpModeService.cs: the service.
// TdpModeService.cs - keeps an unlocked power-limit setup. C# 5, builds with the compiler in Windows.
// Mains: one thermal sensor of Intel DTT is removed once the CPU has been calm.
// Battery, unknown source or service stop: the sensor comes back.
// XTU limits are re-applied every 10 minutes in a separate thread.
// Arguments: <sensor instance id> <watts> <tau seconds> [check]
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.ServiceProcess;
using System.Threading;
public enum Step { None, Restore, Remove }
public class TdpModeService : ServiceBase {
public const int PollSeconds = 2; // reaction to unplugging
public const int SettleSeconds = 90; // time for DTT to write its high limit
public const int CalmSeconds = 30; // do not remove the sensor in the middle of a cut
public const double CalmBusy = 30; // percent CPU
const string XtuDll = @"C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll";
[StructLayout(LayoutKind.Sequential)]
struct PowerStatus { public byte AC, Flag, Percent, Reserved; public int Life, FullLife; }
[DllImport("kernel32.dll")] static extern bool GetSystemPowerStatus(out PowerStatus s);
[DllImport("kernel32.dll")] static extern bool GetSystemTimes(out long idle, out long kernel, out long user);
[DllImport("cfgmgr32.dll", CharSet = CharSet.Unicode)]
static extern int CM_Locate_DevNodeW(out uint node, string id, uint flags);
readonly string sensor;
readonly int watts, tau;
readonly ManualResetEvent stop = new ManualResetEvent(false);
readonly object logLock = new object();
Thread sensorThread, xtuThread;
long lastIdle, lastTotal;
public TdpModeService(string sensor, int watts, int tau) {
this.sensor = sensor; this.watts = watts; this.tau = tau;
ServiceName = "TdpModeService";
}
// The whole policy. No state, so a missed event cannot leave it wrong.
public static Step Decide(bool mains, bool present, int mainsSeconds, int calmSeconds) {
if (!mains) return present ? Step.None : Step.Restore;
if (present && mainsSeconds >= SettleSeconds && calmSeconds >= CalmSeconds) return Step.Remove;
return Step.None;
}
static bool OnMains() {
PowerStatus s;
return GetSystemPowerStatus(out s) && s.AC == 1; // unknown counts as battery
}
bool Present() {
uint node;
return CM_Locate_DevNodeW(out node, sensor, 0) == 0;
}
double Busy() {
long idle, kernel, user;
if (!GetSystemTimes(out idle, out kernel, out user)) return 100;
long total = kernel + user; // kernel time includes idle time
long dt = total - lastTotal, di = idle - lastIdle;
lastTotal = total; lastIdle = idle;
return dt <= 0 ? 100 : 100.0 * (dt - di) / dt;
}
void Log(string message) {
try {
lock (logLock) {
string dir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "logs");
Directory.CreateDirectory(dir);
string file = Path.Combine(dir, "service.log");
if (File.Exists(file) && new FileInfo(file).Length > 1048576) {
File.Copy(file, file + ".old", true);
File.Delete(file);
}
File.AppendAllText(file, DateTime.Now.ToString("s") + " " + message + Environment.NewLine);
}
} catch { } // logging must never stop the sensor loop
}
int Pnputil(string arguments, int timeoutMs) {
var info = new ProcessStartInfo(Path.Combine(Environment.SystemDirectory, "pnputil.exe"), arguments);
info.UseShellExecute = false;
info.CreateNoWindow = true;
using (Process p = Process.Start(info)) {
p.PriorityClass = ProcessPriorityClass.High; // full load must not delay the sensor
if (p.WaitForExit(timeoutMs)) return p.ExitCode;
p.Kill();
return -1;
}
}
void Restore(string why) {
int code = Pnputil("/scan-devices", 10000);
Log("restore (" + why + ") exit=" + code + " present=" + Present());
}
void Remove() {
if (stop.WaitOne(0) || !OnMains()) return;
int code = Pnputil("/remove-device \"" + sensor + "\"", 4000);
Log("remove exit=" + code + " present=" + Present());
if (!OnMains()) Restore("unplugged during removal");
}
void SensorLoop() {
int mainsSeconds = 0, calmSeconds = 0;
string last = "";
Busy();
while (!stop.WaitOne(PollSeconds * 1000)) {
try {
bool mains = OnMains(), present = Present();
double busy = Busy();
mainsSeconds = mains ? Math.Min(mainsSeconds + PollSeconds, 86400) : 0;
calmSeconds = mains && busy < CalmBusy ? Math.Min(calmSeconds + PollSeconds, 86400) : 0;
string now = "mains=" + mains + " sensor=" + present;
if (now != last) { Log(now); last = now; }
Step step = Decide(mains, present, mainsSeconds, calmSeconds);
if (step == Step.Restore) Restore("battery");
if (step == Step.Remove) Remove();
} catch (Exception e) { Log("sensor loop: " + e.Message); }
}
}
static object Call(object target, string name, params object[] args) {
return target.GetType().InvokeMember(name, BindingFlags.InvokeMethod, null, target, args);
}
void XtuLoop() {
object lib = null;
do {
int wait = 60;
try {
if (lib == null) {
Type type = Assembly.LoadFrom(XtuDll).GetType("Intel.Overclocking.SDK.IntelOverclockingLibrary");
object fresh = Activator.CreateInstance(type);
Call(fresh, "Initialize");
if (!(bool)Call(fresh, "InitializeCheck")) throw new Exception("XTU is not ready");
lib = fresh;
}
object t = lib.GetType().InvokeMember("TuningLib", BindingFlags.GetProperty, null, lib, null);
bool ok = (bool)Call(t, "Tune", (uint)48, (decimal)watts, false); // PL1
ok &= (bool)Call(t, "Tune", (uint)47, (decimal)watts, false); // PL2
ok &= (bool)Call(t, "Tune", (uint)66, (decimal)tau, false); // tau
ok &= (bool)Call(t, "ApplyChanges", false);
Log("xtu " + watts + " W / " + tau + " s ok=" + ok);
if (ok) wait = 600;
} catch (Exception e) {
lib = null;
Log("xtu: " + (e.InnerException ?? e).Message);
}
if (stop.WaitOne(wait * 1000)) return;
} while (true);
}
protected override void OnStart(string[] args) {
Log("start sensor=" + sensor + " watts=" + watts + " tau=" + tau);
sensorThread = new Thread(SensorLoop);
sensorThread.IsBackground = true;
sensorThread.Priority = ThreadPriority.Highest;
sensorThread.Start();
xtuThread = new Thread(XtuLoop); // separate: XTU may hang, the sensor loop must not
xtuThread.IsBackground = true;
xtuThread.Start();
}
protected override void OnStop() {
RequestAdditionalTime(30000);
stop.Set();
if (sensorThread != null) sensorThread.Join(15000);
try { if (!Present()) Restore("service stop"); }
catch (Exception e) { Log("stop: " + e.Message); }
}
public static int Main(string[] args) {
int watts, tau;
if (args.Length < 3
|| !int.TryParse(args[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out watts)
|| !int.TryParse(args[2], NumberStyles.Integer, CultureInfo.InvariantCulture, out tau)) {
Console.WriteLine("usage: TdpModeService <sensor instance id> <watts> <tau seconds> [check]");
return 2;
}
var service = new TdpModeService(args[0], watts, tau);
if (args.Length > 3 && args[3] == "check") { // read-only
service.Busy();
Thread.Sleep(1000);
Console.WriteLine("sensor={0} present={1} mains={2} busy={3:0} watts={4} tau={5}",
args[0], service.Present(), OnMains(), service.Busy(), watts, tau);
return 0;
}
ServiceBase.Run(service);
return 0;
}
}
install.ps1: builds it, locks the folder, installs it.
# install.ps1 - builds and installs TdpModeService. ASCII only. Elevated PowerShell, on mains, cool and idle.
# Defaults are for the ThinkPad X1 Tablet Gen 3 (i7-8650U). On another machine pass your own values.
param(
[string]$Sensor = 'ACPI\INT3403\CPUP',
[int]$Watts = 25, # never above the cTDP-up of your processor
[int]$Tau = 28,
[int]$BatteryMHz = 2400 # clock cap on battery, 0 = none
)
$ErrorActionPreference = 'Stop'
$name = 'TdpModeService'
$dir = Join-Path $env:ProgramFiles 'TDP'
$here = if ($PSScriptRoot) { $PSScriptRoot } else { (Get-Location).Path }
$src = Join-Path $here 'TdpModeService.cs'
$csc = "$env:WINDIR\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
$xtu = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
function Assert-Native([string]$What) { if ($LASTEXITCODE -ne 0) { throw "$What failed, exit $LASTEXITCODE" } }
# 1. prerequisites
$me = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()
if (-not $me.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { throw 'Run as administrator.' }
Add-Type -AssemblyName System.Windows.Forms
if ([Windows.Forms.SystemInformation]::PowerStatus.PowerLineStatus -ne 'Online') { throw 'Connect mains power first.' }
foreach ($f in $src, $csc, $xtu) { if (-not (Test-Path -LiteralPath $f)) { throw "Missing: $f" } }
Set-Service XTU3SERVICE -StartupType Automatic
Start-Service XTU3SERVICE
# 2. remove older automation and return to the factory sensor state
if (Get-Service $name -ErrorAction SilentlyContinue) {
Set-Service $name -StartupType Disabled
Stop-Service $name -Force
sc.exe delete $name | Out-Null
Assert-Native 'sc delete'
for ($i = 0; $i -lt 20 -and (Get-Service $name -ErrorAction SilentlyContinue); $i++) { Start-Sleep 1 }
}
foreach ($task in @(Get-ScheduledTask -TaskName 'TDP*' -ErrorAction SilentlyContinue)) {
Disable-ScheduledTask -InputObject $task | Out-Null
}
Get-Process mode-watch -ErrorAction SilentlyContinue | Stop-Process -Force
pnputil /scan-devices | Out-Null
Start-Sleep 3
$found = Get-PnpDevice -InstanceId $Sensor -ErrorAction SilentlyContinue | Where-Object Present
if (-not $found) { throw "Sensor not found: $Sensor" }
# 3. folder that only SYSTEM and Administrators can write: a SYSTEM service runs from here
New-Item -ItemType Directory -Path $dir -Force | Out-Null
icacls $dir /setowner '*S-1-5-32-544' | Out-Null
Assert-Native 'owner'
icacls $dir /reset | Out-Null # drop explicit entries left on an existing folder
Assert-Native 'folder ACL reset'
icacls $dir /inheritance:r /grant:r '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F' | Out-Null
Assert-Native 'folder ACL'
# 4. build
$exe = Join-Path $dir "$name.exe"
if (Test-Path -LiteralPath $exe) { Copy-Item -LiteralPath $exe "$exe.bak" -Force }
Copy-Item -LiteralPath $src (Join-Path $dir "$name.cs") -Force
& $csc /nologo /target:exe /r:System.ServiceProcess.dll "/out:$exe" (Join-Path $dir "$name.cs")
Assert-Native 'compile'
icacls (Join-Path $dir '*') /setowner '*S-1-5-32-544' /T /C | Out-Null
Assert-Native 'file owner'
icacls (Join-Path $dir '*') /reset /T /C | Out-Null # children inherit only the two entries above
Assert-Native 'file ACL'
# 5. calmer turbo (Windows default is 2), and Windows does the saving on battery
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
Assert-Native 'AC boost mode'
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
Assert-Native 'battery boost mode'
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 0
Assert-Native 'AC clock'
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX $BatteryMHz
Assert-Native 'battery clock'
powercfg /setactive SCHEME_CURRENT
Assert-Native 'power scheme'
# 6. the first brake: Best performance on mains (switch Energy saver off by hand)
Add-Type -Namespace X1Install -Name Overlay -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerSetActiveOverlayScheme(Guid g);
'@
if ([X1Install.Overlay]::PowerSetActiveOverlayScheme([Guid]'ded574b5-45a0-4f42-8737-46345c09c238') -ne 0) {
Write-Warning 'Set Best performance in Windows Settings.'
}
# 7. service, restarted 5 s after a crash
$binary = '"{0}" "{1}" {2} {3}' -f $exe, $Sensor, $Watts, $Tau
New-Service -Name $name -BinaryPathName $binary -StartupType Automatic | Out-Null
sc.exe failure $name reset= 86400 actions= restart/5000/restart/5000/restart/5000 | Out-Null
Assert-Native 'recovery'
Start-Service $name
Start-Sleep 5
Get-Service $name | Format-Table Name, Status, StartType
icacls $exe
$log = Join-Path $dir 'logs\service.log'
if (Test-Path -LiteralPath $log) { Get-Content -LiteralPath $log -Tail 5 } else { Write-Warning 'No service log yet.' }
'The sensor is removed after 90 s on mains, once the last 30 s had low CPU use. Wait, then run status.ps1.'
Step 4. Accept it. Every item, or it does not count:
status.ps1 shows the sensor absent and 25 / 25 / 28.loadtest.ps1 passes: about 17 W and 3 GHz with today’s cooling, no fall to 8 W.status.ps1: limits, live readings, throttling flags, sensor and the log.
# status.ps1 - read-only. ASCII only. Elevated: without admin the XTU SDK returns nothing.
param([string]$Sensor = 'ACPI\INT3403\CPUP')
'sensor present: ' + [bool](Get-PnpDevice -InstanceId $Sensor -ErrorAction SilentlyContinue | Where-Object Present)
Get-Service TdpModeService, XTU3SERVICE -ErrorAction SilentlyContinue | Format-Table Name, Status, StartType
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
$lib = $null
for ($i = 1; $i -le 18 -and -not $lib; $i++) { # XTU can answer late after boot
try {
$x = [Activator]::CreateInstance([Reflection.Assembly]::LoadFrom($dll).GetType('Intel.Overclocking.SDK.IntelOverclockingLibrary'))
$x.Initialize()
if ($x.InitializeCheck()) { $lib = $x }
} catch { }
if (-not $lib) { "XTU not ready, try $i"; Start-Sleep 10 }
}
if (-not $lib) { throw 'XTU SDK unavailable. Elevated? XTU3SERVICE running?' }
$t = $lib.TuningLib
foreach ($c in @((48, 'PL1 W'), (47, 'PL2 W'), (66, 'tau s'))) {
$v = $t.GetControl([uint32]$c[0])
'{0,-8} active={1} boot={2}' -f $c[1], $v.ActiveValue, $v.BootValue
}
$m = $lib.MonitoringLib
$m.Start()
Start-Sleep 2
$monitors = @((1000, 'package W'), (2701131777, 'package C'), (5, 'max core clock'), (3, 'thermal limit'),
(22, 'power limit'), (23, 'current limit (EDP)'), (26, 'VR limit'))
foreach ($c in $monitors) {
try { '{0,-20} {1}' -f $c[1], $m.GetValue([uint32]$c[0]) } catch { '{0,-20} n/a' -f $c[1] }
}
$m.Stop()
$log = Join-Path $env:ProgramFiles 'TDP\logs\service.log'
if (Test-Path -LiteralPath $log) { Get-Content -LiteralPath $log -Tail 10 }
To change the limits or the sensor, run install.ps1 again with other parameters.
uninstall.ps1: works for this kit, for my older service and for the older TDP-* tasks.
# uninstall.ps1 - back to factory behaviour. ASCII only. Elevated PowerShell. Safe to run twice.
param([string]$Sensor = 'ACPI\INT3403\CPUP')
$me = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()
if (-not $me.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { throw 'Run as administrator.' }
# automation first, or it removes the sensor again
if (Get-Service TdpModeService -ErrorAction SilentlyContinue) {
Set-Service TdpModeService -StartupType Disabled
Stop-Service TdpModeService -Force
sc.exe delete TdpModeService
}
foreach ($task in @(Get-ScheduledTask -TaskName 'TDP*' -ErrorAction SilentlyContinue)) {
Disable-ScheduledTask -InputObject $task | Out-Null
Stop-ScheduledTask -InputObject $task
}
Get-Process mode-watch -ErrorAction SilentlyContinue | Stop-Process -Force
pnputil /scan-devices
Start-Sleep 3
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 0
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 0
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 2 # Windows default in Balanced
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 2
powercfg /setactive SCHEME_CURRENT
Add-Type -Namespace X1Undo -Name Overlay -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerSetActiveOverlayScheme(Guid g);
'@
[void][X1Undo.Overlay]::PowerSetActiveOverlayScheme([Guid]::Empty) # Balanced
'sensor present: ' + [bool](Get-PnpDevice -InstanceId $Sensor -ErrorAction SilentlyContinue | Where-Object Present)
'service left: ' + [bool](Get-Service TdpModeService -ErrorAction SilentlyContinue)
'Now use Restart (not Shut down): the power limits return to their boot values.'
Without any script: disable the service TdpModeService, run pnputil /scan-devices as administrator, choose Balanced and restart.
| Item | Known good state, November 2026 |
|---|---|
| Machine | ThinkPad X1 Tablet Gen 3 (20KK), i7-8650U, BIOS 1.51 (N1ZET95W), Windows 11 build 26300 |
| Software | Intel XTU 7.4.1.3, Intel DTT 8.7.10200.12510 |
| Spec | 15 W at 1.9 GHz, cTDP-up 25 W at 2.1 GHz, cTDP-down 10 W at 0.8 GHz |
| MSR limit (0x610), set with XTU | PL1 = PL2 = 25 W, tau = 28 s |
| MMIO limit (MCHBAR+0x59A0/0x59A4), set by DTT | 29 W when cool, 8.5 W after the cut |
| Limiter | DTT Passive Policy 2, sensor ACPI\INT3403\CPUP, trip 56 °C from the BIOS |
| On mains | CPUP absent, Best performance for the measured speed (set by hand, the service does not set it; Balanced not measured), Energy saver off |
| Turbo | PERFBOOSTMODE 4 (Efficient Aggressive) on mains and battery, Windows default 2 |
| On battery | CPUP present, clock capped at 2.4 GHz by Windows, XTU stays at 25 W |
| Automation | Service TdpModeService v1.4 in C:\Program Files\TDP (not the code in this post), not yet accepted |
| Healthy full load | 15-18 W, 2.9-3.1 GHz, 95-98 °C, short dips to 13-14 W |
| The cut | 20 W for 15-50 s, then about 8 W, 2 GHz or less, 65-78 °C |
| XTU control | Id | Boot | Set | Notes |
|---|---|---|---|---|
| Turbo Boost Power Max (PL1) | 48 | 8.5 W | 25 W | default 29 W |
| Turbo Boost Short Power Max (PL2) | 47 | 29 W | 25 W | default 44 W |
| Short Power Max Enable | 49 | 1 | 1 | |
| Turbo Boost Power Time Window (tau) | 66 | 28 s | 28 s | 1-128 s |
| IccMax, four controls | 102, 104, 105, 106 | 100.75 A | untouched | tunable |
| Voltage offsets | 34, 79, 83 | 0 | untouched | read-only |
| XTU monitor | Id |
|---|---|
| Package power | 1000 |
| Package temperature | 2701131777 |
| Max core clock | 5 |
| Thermal throttling | 3 |
| Power-limit throttling | 22 |
| Current-limit (EDP) throttling | 23 |
| VR throttling | 26 |
| Thing | Identifier |
|---|---|
| XTU service | XTU3SERVICE |
| XTU SDK | C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll |
| DTT manager | ACPI\INT3400 |
| DTT processor participant | PCI\VEN_8086&DEV_1903 |
| DTT sensors here | ACPI\INT3403\ CPUP, CHRG, MEM, PCH, SSD0, WLAN |
| Best performance | ded574b5-45a0-4f42-8737-46345c09c238 |
| Best power efficiency | 961cc777-2547-4f9d-8174-7d86181b8a7a |
| PERFBOOSTMODE | be337238-0d82-4146-a960-4f3749d470c7 |
W skrócie: Odłożony tablet znów nadaje się do pracy. W testach pod długim obciążeniem jego procesor pracował z około czterokrotnie wyższym zegarem, bez otwierania obudowy.
Mój ThinkPad X1 Tablet trzeciej generacji ma czterordzeniowy procesor, 16 GB pamięci i szybki dysk. Powinien wystarczyć do pracy na lata. Pochodził z wyprzedaży amerykańskiej dystrybucji i miał ekran podatny na zarysowania, ale na to wystarczyło szkło ochronne 3MK. Z procesorem było gorzej.
Przy większym obciążeniu tablet działał szybko tylko przez chwilę. Potem zwalniał, w najgorszych momentach do 0,7 GHz. Kilka razy próbowałem to naprawić i straciłem na tym wiele dni. ThrottleStop, popularny program do takich problemów, nic nie zmieniał i nie zgłaszał żadnego błędu. W końcu odłożyłem sprawny komputer.
Po kilku latach wróciłem do niego z pomocą AI. Okazało się, że procesor wcale nie musiał tak zwalniać. Oprogramowanie Intela pilnowało czujnika na płycie głównej. Gdy ten dochodził do 56 °C, obcinało procesorowi moc do około 8 W, choć ustawiony limit wynosił 25 W. Po usunięciu tego czujnika z systemu procesor utrzymywał w testach około 3 GHz.

Ten sam model procesora, nie mój egzemplarz: Intel Core i7-8650U, SR3L8, autor Rjluna2, CC BY-SA 4.0, bez zmian.
Intel wcisnął cztery rdzenie tam, gdzie były dwa, i zostawił 15 W (i7-7600U, i7-8650U):
| i7-7600U, 7. gen. | i7-8650U, 8. gen. | |
|---|---|---|
| Rdzenie / wątki | 2 / 4 | 4 / 8 |
| TDP | 15 W | 15 W |
| Zegar bazowy | 2,8 GHz | 1,9 GHz |
| Konfigurowalne w górę | 25 W przy 2,9 GHz | 25 W przy 2,1 GHz |
15 W wystarcza na zegar bazowy, nie na cztery rdzenie w turbo. O tym, jak szybki jest układ naprawdę, decyduje więc producent laptopa limitami mocy i politykami termicznymi. Krótki skok turbo zjada zapas cieplny, potem przychodzi cięcie.
Ten procesor ma cztery rdzenie, a Intel dał mu te same 15 W co wcześniejszemu, dwurdzeniowemu. To wystarcza na zegar bazowy, ale nie na cztery rdzenie w trybie turbo. O tym, jak szybki jest naprawdę, decyduje więc producent laptopa: limitami mocy i ustawieniami temperatur. W testach Notebookchecka słabszy wariant tego tabletu, z i5, był szybszy od wersji z i7.
Limit mocy mówi, ile energii procesor może zużywać, a więc jak szybko może pracować. Są dwa takie limity i obowiązuje niższy. Pierwszy ustawia użytkownik. Lenovo dało temu tabletowi 15 W. Z pomocą AI podniosłem go w programie Intel XTU do 25 W, najwięcej, ile Intel dopuszcza dla tego procesora, i chciałem, żeby te 25 W naprawdę działało pod obciążeniem. Drugi zmienia sterownik Intela, a XTU go nie pokazuje.
Próg 56 °C wybrało Lenovo. Jest tak niski, bo dotyczy temperatury płyty i ma chronić obudowę. Sam procesor wytrzymuje około 100 °C, więc zwalniał z dużym zapasem.
| Warstwa | Gdzie | Kto zapisuje | Da się zmienić? |
|---|---|---|---|
| MSR | MSR_PKG_POWER_LIMIT, 0x610 |
BIOS przy starcie, XTU, DTT zapasowo | Tak, przez SDK XTU |
| MMIO | MCHBAR+0x59A0 (PL1), +0x59A4 (PL2) | BIOS przy starcie, potem Intel DTT | Nie podpisanymi narzędziami. Zmień więc to, na co reaguje DTT |
| Kontroler wbudowany (EC) | firmware laptopa | niektórzy producenci | Łatwo się nie da. Tu nie występuje |
| Windows | tryb zasilania, oszczędzanie, boost mode, limit zegara | Ty | Tak, w Ustawieniach i przez powercfg |
Działa najniższy z nich. XTU odczytuje tylko MSR, więc jego 25 W niczego nie dowodzi.
Łańcuch na tym tablecie:
ACPI\INT3403\CPUP próg 56 °C.esif_umdf2.dll w WUDFHost), nie w esifsvc. Dlatego zatrzymywanie usług nic nie dawało.MSR 0x610, do odczytu w Linuksie albo debuggerze (jednostka mocy jest w 0x606, bity 3:0, W = 1/2^jednostka):
| Bity | Znaczenie |
|---|---|
| 14:0 | PL1 |
| 15 | PL1 włączony |
| 16 | PL1 clamp |
| 23:17 | tau, okno PL1 |
| 46:32 | PL2 |
| 47 | PL2 włączony |
| 63 | blokada do resetu |
PL1 i PL2 to limity mocy. Ustawienie 25 W nie przełącza poziomu cTDP ani jego zegara bazowego.
Działa bez obcego sterownika: DTT samo raportuje swoje decyzje przez ETW.
# Admin. Start the trace, run the load test in another window, then press on.
$dir = Join-Path $env:TEMP 'x1-trace'; New-Item -ItemType Directory -Force $dir | Out-Null
'DptfCpuEtwProvider', 'DptfAcpiEtwProvider', 'EsifLfEtwProvider', 'EsifUmdf2EtwProvider', 'DPTF', 'Lenovo-Thermal-Service' |
Set-Content "$dir\providers.txt" -Encoding ASCII
logman start x1dtt -pf "$dir\providers.txt" -o "$dir\dtt.etl" -ets
Start-Sleep -Seconds 130
logman stop x1dtt -ets
tracerpt "$dir\dtt.etl" -o "$dir\dtt.csv" -of CSV -y
# Decode the trace: 0x59a0 = PL1, 0x59a4 = PL2, raw value / 8 = watts.
$csv = Join-Path $env:TEMP 'x1-trace\dtt.csv'
$prev = ''
Get-Content $csv | ForEach-Object {
$line = $null
if ($_ -match 'offset (0x59a[04])\[14:0\] = (0x[0-9a-fA-F]+)') {
$line = '{0} = {1} W' -f $Matches[1], ([Convert]::ToInt32($Matches[2], 16) / 8)
} elseif ($_ -match '(\w+) D0: TEMPERATURE = (\d+)') { # every sensor, not only CPUP
$line = '{0} = {1:N1} C' -f $Matches[1], ($Matches[2] / 10 - 273.15)
}
if ($line -and $line -ne $prev) { $line; $prev = $line }
}
Cięcie to jeden czujnik dochodzący do progu i zaraz po nim spadek 0x59a0. Tu był to CPUP, około 56 °C, i spadek w stronę 8,5 W. Identyfikator tego czujnika wypisuje discover.ps1 i przyjmuje install.ps1 -Sensor.
SET_RAPL_POWER_LIMIT i Policy.logman query providers.Pomogły dwie zmiany: wyłączenie oszczędzania energii w Windows, które też obniżało moc, i usunięcie czujnika z systemu. Czujnik zostaje na płycie i można go przywrócić. Teraz szybkość ogranicza chłodzenie. Procesor dochodzi do 96 °C przy około 17 W, więc 25 W jest tylko górną granicą.
Ten czujnik chronił przed przegrzaniem obudowy. Bez niego tablet może się przegrzewać, a ciepło skraca też życie baterii. Skali tego ryzyka nie zmierzyłem. Bez czujnika nie trzymaj tabletu w rękach pod obciążeniem. Po odłączeniu zasilacza moja usługa sama przywraca czujnik w ciągu kilku sekund. Nie przeszła jeszcze jednej próby: odłączenia zasilacza pod pełnym obciążeniem.
Bezpieczniej jest zostawić czujnik i ograniczyć zegar do 2,6 GHz. W teście tablet był tylko o 10% wolniejszy niż bez czujnika, a procesor miał 72 °C zamiast 96 °C.
Osiem wątków, zasilacz, średnia moc pakietu z sekund 60-120, po jednym przebiegu, w kolejności prób:
| Próba | Średnia | Minimum po 30 s | Najgoręcej |
|---|---|---|---|
| XTU 25 W, oszczędzanie włączone | 5,8 W | 4,1 W | 79 °C |
| XTU 25 W, oszczędzanie włączone, wybrana Najlepsza wydajność (nadpisana) | 6,7 W | 4,0 W | 75 °C |
| Bez oszczędzania, Najlepsza wydajność | 10,2 W | 7,3 W | 96 °C |
| To samo, ze śladem ETW | 8,9 W | 7,6 W | 96 °C |
| Zatrzymany esifsvc | 9,5 W | 8,3 W | 76 °C |
| Zatrzymany LITSSVC Lenovo | 11,2 W | 8,1 W | 96 °C |
| Obie usługi zatrzymane | 12,1 W | 7,7 W | 96 °C |
| Wyłączenie CPUP (odmowa Windows) | 9,5 W | 7,9 W | 97 °C |
| Usunięty uczestnik procesora DTT | 9,0 W | 8,1 W | 68 °C |
| Usunięty CPUP | 16,6 W | 14,9 W | 97 °C |
Trzy ustawienia porównane pod względem pracy:
| Ustawienie | Moc | Zegar | Temperatura, maks. | Praca/s |
|---|---|---|---|---|
| 25 W, czujnik działa | 8,4 W | 2,1 GHz | 72 °C | 5410 |
| Turbo przycięte do 2,6 GHz | 11,4 W | 2,6 GHz | 72 °C | 7059 |
| 25 W, czujnik usunięty | 16,6 W | 3,0 GHz | 96 °C | 7864 |
| Droga | Co wyszło albo czemu nie |
|---|---|
| Same limity XTU | Tylko MSR, DTT dalej tnie |
| ThrottleStop | U mnie bez efektu i bez błędu, przyczyna nieznana. Jego własny sterownik się ładował, ale protokół jest nieudokumentowany |
| Universal x86 Tuning Utility | Nie działał i nie zgłaszał błędu: Defender objął kwarantanną jego WinRing0x64.sys, podatny sterownik (CVE-2020-14979) |
| Zapis MMIO przez WinRing0 | Znana dziura eskalacji uprawnień, a sprawdzona kompilacja nie sięga tego adresu |
| Zatrzymanie esifsvc i LITSSVC | 9-12 W: polityka siedzi w sterowniku |
| Wyłączenie CPUP w Menedżerze urządzeń | Nieobsługiwane, węzłów DTT nie da się wyłączyć. Da się je usunąć |
| Usunięcie uczestnika procesora | Obowiązuje limit BIOS-u: 8,5-9 W |
| Ustawienia cTDP lub termiczne w WMI BIOS-u | Brak |
| Undervolting | Kontrolki XTU 34, 79 i 83 tylko do odczytu: łatka na Plundervolt (CVE-2019-11157) |
setup_var / RU.efi, starszy BIOS |
Zbadane, nie robione. Inne modele potrzebowały starego BIOS-u, a cofnięcie bywa zablokowane |
| Modyfikowany BIOS | Nie robione: podpisane kapsuły, a cegła wymaga programatora |
| Nadpisanie progu 56 °C w data vault DTT | Nie robione. Byłoby czystsze, ale plik jest haszowany |
Plan B, niesprawdzony na tym tablecie: Linux zapisuje oba limity bez obcego sterownika przez /sys/class/powercap (intel-rapl:0 to MSR, intel-rapl-mmio:0 to MMIO). throttled robi to cyklicznie. Nie uruchamiaj thermald --adaptive, stosuje tę samą tabelę termiczną. Najpierw sprawdź bit 63 w 0x610.
Zacząłem z modelem GLM, który jako pierwszy podejrzewał sterownik termiczny Intela. Przyczynę znalazł Claude. Nie chciał jednak podnieść limitu sterownikiem z dostępem do jądra systemu (ring 0), bo wymagało to obejścia Microsoft Defendera. Defender blokuje ten sterownik z powodu znanej luki. Potem safeguard, czyli filtr bezpieczeństwa firmy Anthropic, zaczął przerywać jego kolejne odpowiedzi.
Wróciłem więc do GLM. Spróbował tego sterownika, ale bez skutku, i cofnął zmianę w Defenderze. Potem znalazł prostsze wyjście: usunąć czujnik. Osłabianie Defendera okazało się niepotrzebne.
Z logów sesji, czas warszawski. Tę sekcję szkicował Claude, więc miej na uwadze, że opisuje safeguard własnego producenta.
| Kiedy | Kto | Co się stało |
|---|---|---|
| 17.11, 11:33 | GLM-5.3, high | Początek. Doprowadził do 25 W w XTU, co okazało się tylko jednym z dwóch limitów |
| 21.11, 20:34-21:00 | Claude Opus 5.5 | Ślad ETW: DTT, czujnik CPUP, 56 °C, 8,5 W. Usunął uczestnika procesora, co nie pomogło, i uznał, że przy jego zasadach 15 W na Windowsie jest nieosiągalne |
| 21:23 | Safeguard | Zatrzymał odpowiedź przy pracy nad testem wydajności |
| 21:44 | Safeguard | Oznaczył sesję, odpowiadał za niego Opus 4.8 |
| 21:49, 21:50 | Safeguard | Zatrzymał odpowiedzi na prośbę o stałe 20-25 W i na tę samą prośbę z uzasadnieniem |
| 21:54 | Safeguard | Zatrzymał sprawdzenie skrótu w pliku konfiguracji DTT |
| 21:57, 21:58 | Safeguard | Zatrzymał prośbę o udokumentowanie ustaleń, znów oznaczył sesję. Dokument napisał Opus 4.8 |
| 22:03 | Safeguard | Zatrzymał szóstą odpowiedź, przy testach limitu zegara |
| 22:10 | GLM-5.3, max | Przejął pracę z tym dokumentem |
| 22:34 | GLM-5.3, max | Usunął CPUP |
AI potrzebowało mierzalnego celu. W skrócie (to streszczenie, nie cytat):
Osiągnij pod stałym obciążeniem maksymalną moc, na jaką pozwala chłodzenie, ale nie więcej niż 25 W.
„Napraw dławienie” pozwala agentowi skończyć na odczycie 25 W. Ten cel da się udowodnić tylko pod obciążeniem.
Moim zdaniem po określeniu sukcesu GLM poradziłby sobie bez Claude’a.
Podobny problem może mieć inny laptop z procesorem Intela. Na zasilaczu obciąż w pełni procesor przez dwie minuty i obserwuj jego moc i temperaturę (skrypt jest w rozwinięciu „zmierz swoją maszynę”). Jeśli dochodzi do około 95 °C, potrzebuje lepszego chłodzenia. Jeśli jest wyraźnie chłodniejszy, a moc spada daleko poniżej limitu, coś go ogranicza.
Nie próbuj naprawy przy spuchniętej baterii, zepsutym wentylatorze, na cudzym sprzęcie ani gdy zależy Ci na gwarancji.
Mam żal do Lenovo, że z lenistwa zostawiło ten problem użytkownikom. Za wyrzucanie sprawnych komputerów płaci także środowisko.
Zacznij od tego na dowolnym laptopie. Pierwszy skrypt tylko czyta. Drugi w pełni obciąża procesor.
discover.ps1: procesor, BIOS, XTU, VBS, tryb zasilania i obecne czujniki DTT.
# discover.ps1 - read-only, no admin. Run it first, on any Windows laptop with an Intel CPU.
$cpu = Get-CimInstance Win32_Processor
'CPU: {0} ({1} cores, {2} threads, nominal {3} MHz)' -f $cpu.Name.Trim(), $cpu.NumberOfCores, $cpu.NumberOfLogicalProcessors, $cpu.MaxClockSpeed
'Machine: ' + (Get-CimInstance Win32_ComputerSystem).Manufacturer + ' ' + (Get-CimInstance Win32_ComputerSystem).Model
'BIOS: ' + (Get-CimInstance Win32_BIOS).SMBIOSBIOSVersion
'Windows: ' + [Environment]::OSVersion.Version
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
'XTU SDK: ' + $(if (Test-Path $dll) { [Diagnostics.FileVersionInfo]::GetVersionInfo($dll).FileVersion } else { 'not installed' })
$dg = Get-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard -ErrorAction SilentlyContinue
'VBS: status={0} (2 = running), Memory integrity={1}' -f $dg.VirtualizationBasedSecurityStatus, [bool]($dg.SecurityServicesRunning -contains 2)
Add-Type -Namespace X1Find -Name Power -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerGetEffectiveOverlayScheme(out Guid g);
'@
$g = [Guid]::Empty
[void][X1Find.Power]::PowerGetEffectiveOverlayScheme([ref]$g)
"Power mode: $g (ded574b5-45a0-4f42-8737-46345c09c238 = Best performance)"
$pkg = $null
try { $pkg = (Get-Counter '\Energy Meter(RAPL_Package0_PKG)\Power' -ErrorAction Stop).CounterSamples[0].CookedValue / 1000 } catch { }
'Package W: ' + $(if ($null -ne $pkg) { [math]::Round($pkg, 1) } else { 'no RAPL counter' })
'Intel DTT / DPTF / IPF participants (the sensor candidates are the Generic Participants):'
Get-PnpDevice -PresentOnly |
Where-Object { $_.FriendlyName -match 'Dynamic Tuning|Dynamic Platform and Thermal|Innovation Platform Framework' } |
Format-Table InstanceId, FriendlyName -AutoSize | Out-String -Width 160
loadtest.ps1: moc, zegar, temperatura i praca co 2 s, CSV i werdykt.
# loadtest.ps1 - no admin. Full load: the case gets hot. Mains only, one test at a time.
param(
[int]$Seconds = 120,
[double]$TargetW = 25, # the limit you set
[int]$ThermalC = 94, # a few degrees below Tjmax (100 C on the i7-8650U)
[string]$Csv = (Join-Path $env:TEMP ("loadtest-{0:yyyyMMdd-HHmmss}.csv" -f (Get-Date)))
)
Add-Type -TypeDefinition @'
using System; using System.Threading;
public static class X1Burn {
static volatile bool stop; public static long Work;
public static void Start(int n) {
stop = false; Work = 0;
for (int i = 0; i < n; i++) {
var t = new Thread(() => { double x = 1.0001; while (!stop) {
for (int k = 0; k < 100000; k++) { x = Math.Sqrt(x * 1.000001 + 0.5); }
Interlocked.Increment(ref Work); } });
t.IsBackground = true; t.Start();
}
}
public static void Stop() { stop = true; }
}
'@
Add-Type -AssemblyName System.Windows.Forms
$nominal = (Get-CimInstance Win32_Processor).MaxClockSpeed / 1000
$names = '\Energy Meter(RAPL_Package0_PKG)\Power',
'\Processor Information(_Total)\% Processor Performance',
'\Thermal Zone Information(*)\Temperature'
"PASS: from s40 every 10 s window is at $ThermalC C+ or at $TargetW W, and never above $TargetW W on average."
$rows = @(); $lastWork = 0; $lastT = 0
$sw = [Diagnostics.Stopwatch]::StartNew()
[X1Burn]::Start([Environment]::ProcessorCount)
try {
while ($sw.Elapsed.TotalSeconds -lt $Seconds) {
$s = (Get-Counter $names -SampleInterval 2 -MaxSamples 1).CounterSamples
$t = $sw.Elapsed.TotalSeconds; $work = [X1Burn]::Work
$hottest = ($s | Where-Object Path -like '*thermal zone*' | Measure-Object CookedValue -Maximum).Maximum
$r = [pscustomobject]@{
t = [math]::Round($t); W = [math]::Round($s[0].CookedValue / 1000, 1)
GHz = [math]::Round($s[1].CookedValue * $nominal / 100, 2); C = [math]::Round($hottest - 273.15)
WorkPerS = [math]::Round(($work - $lastWork) / ($t - $lastT))
}
$lastWork = $work; $lastT = $t; $rows += $r
'{0,4} s {1,6} W {2,6} GHz {3,4} C {4,7} work/s' -f $r.t, $r.W, $r.GHz, $r.C, $r.WorkPerS
if ($r.C -ge 101 -or [Windows.Forms.SystemInformation]::PowerStatus.PowerLineStatus -ne 'Online') { 'ABORTED'; break }
}
} finally { [X1Burn]::Stop() }
$rows | Export-Csv -Path $Csv -NoTypeInformation
$late = @($rows | Where-Object t -ge 60)
if ($late.Count -lt 5) { "too short to judge: run at least 100 s | pass=False | csv: $Csv"; return }
$mean =($late | Measure-Object W -Average).Average
$short = @($rows | Where-Object t -ge 40 | Where-Object {
$end = $_.t; $win = $rows | Where-Object { $_.t -gt $end - 10 -and $_.t -le $end }
($win | Measure-Object W -Average).Average -lt ($TargetW - 1) -and ($win | Measure-Object C -Maximum).Maximum -lt $ThermalC
})
$ok = $rows[-1].t -ge ($Seconds - 2) -and $mean -le ($TargetW + 0.5) -and $short.Count -eq 0
'from s60: {0:N1} W, {1:N2} GHz, {2:N0} work/s | windows short of both limits={3} | pass={4}' -f `
$mean, ($late | Measure-Object GHz -Average).Average, ($late | Measure-Object WorkPerS -Average).Average, $short.Count, $ok
"csv: $Csv"
Jak to czytać:
Sprawdzone na jednej maszynie. Metoda powinna się przenosić na laptopy z Intelem, w których tnie DTT lub DPTF, przede wszystkim na serię U 8. generacji: i5-8250U, i5-8350U, i7-8550U, i7-8650U.
Nawet nie próbuj, gdy:
CHRG to ładowarka). Ślad dowodzi, który czujnik tnie, a nie co chroni,Pilnuj też zasilacza. Ten tablet miał 45 W albo 65 W i ma baterię 42 Wh. Jeśli bateria rozładowuje się na zasilaczu pod obciążeniem, obniż limit.
Drabinka. Testuj po każdym kroku i przestań, gdy ograniczeniem stanie się chłodzenie:
discover.ps1, potem wyjściowy loadtest.ps1. Zapisz liczby.controls.ps1: potwierdź, że PL1, PL2 i tau da się zmieniać, zapisz ich numery i wartości startowe.pnputil /scan-devices i zobacz powrót cięcia. To jest dowód.install.ps1 -Sensor '...' -Watts ... -Tau .... Usługa zakłada numery 48, 47 i 66.Pokrętła bez sterowników, z zachowaną ochroną:
# Admin. Note the current values first.
powercfg /qh SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE
powercfg /qh SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX
# Calmer turbo: 4 = Efficient Aggressive, 2 = default here, 0 = turbo off (the last resort).
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
# Clock cap in MHz, 0 = none. Try a few and keep the one with the most work/s.
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 2600
powercfg /setactive SCHEME_CURRENT
controls.ps1: co XTU umie zmienić i odczytać na Twojej maszynie, z numerami.
# controls.ps1 - read-only, elevated. What does XTU let you change and read on this machine?
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
$lib = [Activator]::CreateInstance([Reflection.Assembly]::LoadFrom($dll).GetType('Intel.Overclocking.SDK.IntelOverclockingLibrary'))
$lib.Initialize()
if (-not $lib.InitializeCheck()) { throw 'XTU SDK not ready.' }
'--- controls (PL1=48, PL2=47, tau=66 here; check the names on your machine)'
$lib.TuningLib.GetAvailableControls() | Sort-Object Id | Select-Object * | Format-List | Out-String -Width 160
'--- monitors'
$m = $lib.MonitoringLib
$m.Start()
Start-Sleep 3
foreach ($x in ($m.GetAvailableMonitors() | Sort-Object Id)) {
$v = try { $m.GetValue([uint32]$x.Id) } catch { '?' }
'{0,10} | {1,-45} | {2,10} {3}' -f $x.Id, $x.Name, $v, $x.Units
}
$m.Stop()
Prompt dla agenta AI, na dowolny laptop:
Mój laptop z Intelem dławi się pod stałym obciążeniem. Pomóż mi go odblokować metodą z
https://blog.ww86.eu/hardware/2026/11/19/x1-tablet-25w-throttling.html
Przeczytaj cały wpis, ze wszystkimi rozwinięciami. Sprawdzono go na innej maszynie,
więc jego wartości traktuj jako przykłady, nie fakty o mojej.
Sukces: pod stałym obciążeniem maksymalna moc, na jaką pozwala moje chłodzenie,
ale nie więcej niż cTDP-up podane przez Intela dla mojego układu.
Faza 1, tylko odczyt: uruchom discover.ps1, porównaj sprzęt z listą „Nawet nie próbuj”
i powiedz, czy byś tu przerwał i dlaczego. Czekaj na moją odpowiedź.
Faza 2, po mojej zgodzie: test wyjściowy, potem drabinka, po jednym kroku.
Przed każdą zmianą: jedno zdanie, co robi, i dokładne cofnięcie. Czekaj na zgodę.
Po każdej zmianie: ten sam test i tabela przed i po.
Twarde granice: bez obcych sterowników ring0, wyjątków w Defenderze i zmian BIOS-u.
Nigdy nie usuwaj czujnika baterii lub ładowania, menedżera DTT ani uczestnika procesora.
Nigdy nie usuwaj czujnika bez dowodu ze śladu. Odczyt nie jest dowodem, tylko obciążenie.
Stare wątki ludzi, którzy uderzyli w tę samą ścianę. Jeśli wpis Ci pomógł, daj im znać:
Odtwórz to z AI. Cały fix, razem z kodem, jest w rozwinięciach. Dla tego tabletu daj agentowi to (inne laptopy mają własny prompt w „odblokuj własny procesor”):
Sukces: pod stałym obciążeniem maksymalna moc, na jaką pozwala chłodzenie,
ale nie więcej niż 25 W.
Mój ThinkPad X1 Tablet Gen 3 znów się dławi. Przeczytaj cały wpis, razem
ze zwiniętymi sekcjami:
https://blog.ww86.eu/hardware/2026/11/19/x1-tablet-25w-throttling.html
Zacznij od odczytu: uruchom sprawdzenie, poszukaj, co się zmieniło, zdaj raport.
Pytaj przed testem obciążeniowym i przed każdą zmianą, podawaj sposób cofnięcia.
Bez obcych sterowników ring0, bez wyjątków w Defenderze, nic powyżej 25 W.
Kolejność: sprawdzenie, co się zmieniło, test, tabela, ślad. Zmiany na końcu, a przed zmianą, restartem i zatrzymaniem usługi pytaj właściciela. Jeden test naraz, nigdy gdy ktoś inny zmienia ustawienia.
Stan, tylko odczyt
# Read-only, no admin needed.
Add-Type -Namespace X1 -Name Power -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerGetEffectiveOverlayScheme(out Guid g);
'@
$g = [Guid]::Empty; [void][X1.Power]::PowerGetEffectiveOverlayScheme([ref]$g)
"CPU: " + (Get-CimInstance Win32_Processor).Name
"BIOS: " + (Get-CimInstance Win32_BIOS).SMBIOSBIOSVersion
"last boot: " + (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
"battery: " + (Get-CimInstance Win32_Battery).BatteryStatus + " (2 = mains; 1, 4, 5 = discharging)"
"power mode: $g (for a load test expect ded574b5-45a0-4f42-8737-46345c09c238 = Best performance)"
"CPUP present: " + [bool](Get-PnpDevice -InstanceId 'ACPI\INT3403\CPUP' -ErrorAction SilentlyContinue | Where-Object Present)
Get-Service TdpModeService, XTU3SERVICE, esifsvc, LITSSVC -ErrorAction SilentlyContinue | Format-Table Name, Status
Get-Process mode-watch, ThrottleStop -ErrorAction SilentlyContinue | Format-Table Name, Id
Get-ScheduledTask -TaskName 'TDP*' -ErrorAction SilentlyContinue | Format-Table TaskName, State
Get-CimInstance Win32_PnPSignedDriver | Where-Object DeviceName -match 'Dynamic Tuning' |
Sort-Object DeviceName -Unique | Format-Table DeviceName, DriverVersion
Bez uprawnień administratora część zadań jest niewidoczna. Pusta lista nie dowodzi, że ich nie ma.
Co zainstalowano lub zaktualizowano
# Read-only. What was installed or updated in the last 14 days?
$since = (Get-Date).AddDays(-14)
@(
Get-WinEvent -FilterHashtable @{ LogName = 'System'; StartTime = $since; ProviderName = 'Microsoft-Windows-WindowsUpdateClient'; Id = 19 } -ErrorAction SilentlyContinue
Get-WinEvent -FilterHashtable @{ LogName = 'System'; StartTime = $since; Id = 7045 } -ErrorAction SilentlyContinue
) | Sort-Object TimeCreated -Descending |
ForEach-Object { '{0:s} {1}' -f $_.TimeCreated, ($_.Message -replace '\s+', ' ') }
Get-WinEvent -FilterHashtable @{ LogName = 'Application'; StartTime = $since; ProviderName = 'MsiInstaller'; Id = 1033 } -ErrorAction SilentlyContinue |
ForEach-Object { '{0:s} {1}' -f $_.TimeCreated, ($_.Message -replace '\s+', ' ') }
Objaw, przyczyna, działanie
| Objaw | Prawdopodobna przyczyna | Działanie |
|---|---|---|
| Turbo, potem 8 W przy 65-78 °C, CPUP obecny | Czujnik wrócił: restart, aktualizacja sterownika lub Windows, skan urządzeń, wybudzenie | Ustal, co go przywróciło, potem za zgodą „Odtwórz fix od zera” |
| 8 W od pierwszej sekundy, brak CPUP | Po usunięciu czujnika został niski limit MMIO | Ostudź, potem za zgodą „Odtwórz fix od zera” |
| Zjazd do 4-6 W przy 53-57 °C | Oszczędzanie energii albo Najlepsza efektywność, które przykrywają wybrany tryb | Wyłącz oszczędzanie, Najlepsza wydajność |
| Równe 15 W, poniżej 95 °C | Został limit z pracy na baterii albo przepadły limity XTU | Sprawdź źródło zasilania, ustaw znów 25 W |
| Równe 8,5-9 W, brak uczestnika procesora DTT | Bez DTT obowiązuje wartość MMIO z BIOS-u | pnputil /scan-devices |
| Poniżej 15 W przy 96 °C, flaga termiczna | Kurz, wyschnięta pasta, zasłonięte wloty, upał | Chłodzenie, nie oprogramowanie |
| Limity inne niż ustawione | Zapisuje je inny program: profile XTU, ThrottleStop, UXTU, Vantage, nowy DTT | Lista zmian, potem ślad |
| Procesor poniżej 1 GHz, gdy GPU ma 100% | Procesor i iGPU dzielą jeden budżet mocy pakietu | Znajdź, co obciąża GPU: akceleracja sprzętowa, kompozycja pulpitu |
| Niska moc i niskie użycie procesora | To nie dławienie, tylko brak obciążenia | Uruchom test |
| Przełączanie trwa minuty pod obciążeniem | Zadania harmonogramu mają domyślnie priorytet 7, poniżej normalnego | Priorytet zadania 4 lub wyższy (niższa liczba) |
Uwaga: to usuwa ochronę obudowy od producenta, więc rób to tylko na zasilaczu; na baterii czujnik przywraca usługa z kroku 3. Cofnięcie jest w następnym rozwinięciu.
Cały kod jest w tym wpisie. Jedyny plik z zewnątrz to instalator XTU.
Krok 1. Oprogramowanie.
A6ABE038954FED536F60004DA0CAAEE80144EAEC1E1534AF930C891D167016D4. Nowszego XTU tu nie sprawdzano.# Check an installer before running it: the hash and Valid / Intel Corporation.
$f = '.\xtusetup.exe'
(Get-FileHash $f -Algorithm SHA256).Hash
Get-AuthenticodeSignature $f | Format-List Status, SignerCertificate
Krok 2. Ręcznie, żeby dowieść, że działa. Najpierw wyłącz oszczędzanie energii w Ustawieniach, potem uruchom to jako administrator, na chłodnym i bezczynnym tablecie:
# Admin, on mains, while the tablet is cool and idle. Energy saver must be off.
Add-Type -AssemblyName System.Windows.Forms
if ([Windows.Forms.SystemInformation]::PowerStatus.PowerLineStatus -ne 'Online') { throw 'Not on mains: keep the sensor.' }
Add-Type -Namespace X1 -Name Overlay -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerSetActiveOverlayScheme(Guid g);
'@
[void][X1.Overlay]::PowerSetActiveOverlayScheme([Guid]'ded574b5-45a0-4f42-8737-46345c09c238')
Start-Service XTU3SERVICE
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
$asm = [Reflection.Assembly]::LoadFrom($dll)
$lib = [Activator]::CreateInstance($asm.GetType('Intel.Overclocking.SDK.IntelOverclockingLibrary'))
$lib.Initialize()
$t = $lib.TuningLib
$t.Tune([uint32]48, [decimal]25, $false) # PL1, W
$t.Tune([uint32]47, [decimal]25, $false) # PL2, W
$t.Tune([uint32]66, [decimal]28, $false) # tau, s
$t.ApplyChanges($false)
48, 47, 66 | ForEach-Object { $t.GetControl([uint32]$_).ActiveValue } # 25, 25, 28
pnputil /scan-devices # sensor back, DTT writes its cool-state 29 W
Start-Sleep -Seconds 20
pnputil /remove-device 'ACPI\INT3403\CPUP' # sensor out, confirm the limit with a load test
Chłodny znaczy: CPUP wyraźnie poniżej 56 °C w śladzie. Po jednym powrocie czujnika na gorąco cięcie wróciło po około 18 s, czyli w czasie 20 s czekania powyżej. Usunięcie czujnika w tym momencie może zostawić niski limit (bez dowodu).
Potem uruchom loadtest.ps1. Jeśli XTU się nie inicjalizuje, poczekaj: usługa potrafi potrzebować minuty lub więcej po starcie. Ręcznie działa do restartu albo skanu urządzeń. Przepięcie zasilacza lub zmiana trybu zasilania potrafi skasować limity.
Krok 3. Automatyka. Zapisz TdpModeService.cs i install.ps1 (niżej) obok siebie, w ASCII, i uruchom instalator jako administrator: powershell -ExecutionPolicy Bypass -File .\install.ps1
Na ile sprawdzone: to prostsza, przepisana usługa z mojego tabletu, a nie ten sam kod. Nie ma alarmu zatrzaśniętego limitu ani zapasowego strażnika. Kompiluje się, jej funkcja decyzyjna przeszła 144 kombinacje wejść i 17-minutową symulację z dwoma odpięciami, odczytuje prawdziwy stan czujnika. Nie była jeszcze zainstalowana ani uruchomiona pod obciążeniem.
Od 22 listopada 2026 na moim tablecie działa inny kod, v1.4, z C:\Program Files\TDP, też jeszcze bez odbioru. Starsze skrypty są w archiwum C:\ProgramData\TDP. Poszukaj obu i zadań TDP-*, zanim obwinisz coś innego. Instalator poniżej zastępuje tę usługę i wyłącza te zadania. Jeśli piszesz własną automatykę, musi ona:
TdpModeService.cs: usługa.
// TdpModeService.cs - keeps an unlocked power-limit setup. C# 5, builds with the compiler in Windows.
// Mains: one thermal sensor of Intel DTT is removed once the CPU has been calm.
// Battery, unknown source or service stop: the sensor comes back.
// XTU limits are re-applied every 10 minutes in a separate thread.
// Arguments: <sensor instance id> <watts> <tau seconds> [check]
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.ServiceProcess;
using System.Threading;
public enum Step { None, Restore, Remove }
public class TdpModeService : ServiceBase {
public const int PollSeconds = 2; // reaction to unplugging
public const int SettleSeconds = 90; // time for DTT to write its high limit
public const int CalmSeconds = 30; // do not remove the sensor in the middle of a cut
public const double CalmBusy = 30; // percent CPU
const string XtuDll = @"C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll";
[StructLayout(LayoutKind.Sequential)]
struct PowerStatus { public byte AC, Flag, Percent, Reserved; public int Life, FullLife; }
[DllImport("kernel32.dll")] static extern bool GetSystemPowerStatus(out PowerStatus s);
[DllImport("kernel32.dll")] static extern bool GetSystemTimes(out long idle, out long kernel, out long user);
[DllImport("cfgmgr32.dll", CharSet = CharSet.Unicode)]
static extern int CM_Locate_DevNodeW(out uint node, string id, uint flags);
readonly string sensor;
readonly int watts, tau;
readonly ManualResetEvent stop = new ManualResetEvent(false);
readonly object logLock = new object();
Thread sensorThread, xtuThread;
long lastIdle, lastTotal;
public TdpModeService(string sensor, int watts, int tau) {
this.sensor = sensor; this.watts = watts; this.tau = tau;
ServiceName = "TdpModeService";
}
// The whole policy. No state, so a missed event cannot leave it wrong.
public static Step Decide(bool mains, bool present, int mainsSeconds, int calmSeconds) {
if (!mains) return present ? Step.None : Step.Restore;
if (present && mainsSeconds >= SettleSeconds && calmSeconds >= CalmSeconds) return Step.Remove;
return Step.None;
}
static bool OnMains() {
PowerStatus s;
return GetSystemPowerStatus(out s) && s.AC == 1; // unknown counts as battery
}
bool Present() {
uint node;
return CM_Locate_DevNodeW(out node, sensor, 0) == 0;
}
double Busy() {
long idle, kernel, user;
if (!GetSystemTimes(out idle, out kernel, out user)) return 100;
long total = kernel + user; // kernel time includes idle time
long dt = total - lastTotal, di = idle - lastIdle;
lastTotal = total; lastIdle = idle;
return dt <= 0 ? 100 : 100.0 * (dt - di) / dt;
}
void Log(string message) {
try {
lock (logLock) {
string dir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "logs");
Directory.CreateDirectory(dir);
string file = Path.Combine(dir, "service.log");
if (File.Exists(file) && new FileInfo(file).Length > 1048576) {
File.Copy(file, file + ".old", true);
File.Delete(file);
}
File.AppendAllText(file, DateTime.Now.ToString("s") + " " + message + Environment.NewLine);
}
} catch { } // logging must never stop the sensor loop
}
int Pnputil(string arguments, int timeoutMs) {
var info = new ProcessStartInfo(Path.Combine(Environment.SystemDirectory, "pnputil.exe"), arguments);
info.UseShellExecute = false;
info.CreateNoWindow = true;
using (Process p = Process.Start(info)) {
p.PriorityClass = ProcessPriorityClass.High; // full load must not delay the sensor
if (p.WaitForExit(timeoutMs)) return p.ExitCode;
p.Kill();
return -1;
}
}
void Restore(string why) {
int code = Pnputil("/scan-devices", 10000);
Log("restore (" + why + ") exit=" + code + " present=" + Present());
}
void Remove() {
if (stop.WaitOne(0) || !OnMains()) return;
int code = Pnputil("/remove-device \"" + sensor + "\"", 4000);
Log("remove exit=" + code + " present=" + Present());
if (!OnMains()) Restore("unplugged during removal");
}
void SensorLoop() {
int mainsSeconds = 0, calmSeconds = 0;
string last = "";
Busy();
while (!stop.WaitOne(PollSeconds * 1000)) {
try {
bool mains = OnMains(), present = Present();
double busy = Busy();
mainsSeconds = mains ? Math.Min(mainsSeconds + PollSeconds, 86400) : 0;
calmSeconds = mains && busy < CalmBusy ? Math.Min(calmSeconds + PollSeconds, 86400) : 0;
string now = "mains=" + mains + " sensor=" + present;
if (now != last) { Log(now); last = now; }
Step step = Decide(mains, present, mainsSeconds, calmSeconds);
if (step == Step.Restore) Restore("battery");
if (step == Step.Remove) Remove();
} catch (Exception e) { Log("sensor loop: " + e.Message); }
}
}
static object Call(object target, string name, params object[] args) {
return target.GetType().InvokeMember(name, BindingFlags.InvokeMethod, null, target, args);
}
void XtuLoop() {
object lib = null;
do {
int wait = 60;
try {
if (lib == null) {
Type type = Assembly.LoadFrom(XtuDll).GetType("Intel.Overclocking.SDK.IntelOverclockingLibrary");
object fresh = Activator.CreateInstance(type);
Call(fresh, "Initialize");
if (!(bool)Call(fresh, "InitializeCheck")) throw new Exception("XTU is not ready");
lib = fresh;
}
object t = lib.GetType().InvokeMember("TuningLib", BindingFlags.GetProperty, null, lib, null);
bool ok = (bool)Call(t, "Tune", (uint)48, (decimal)watts, false); // PL1
ok &= (bool)Call(t, "Tune", (uint)47, (decimal)watts, false); // PL2
ok &= (bool)Call(t, "Tune", (uint)66, (decimal)tau, false); // tau
ok &= (bool)Call(t, "ApplyChanges", false);
Log("xtu " + watts + " W / " + tau + " s ok=" + ok);
if (ok) wait = 600;
} catch (Exception e) {
lib = null;
Log("xtu: " + (e.InnerException ?? e).Message);
}
if (stop.WaitOne(wait * 1000)) return;
} while (true);
}
protected override void OnStart(string[] args) {
Log("start sensor=" + sensor + " watts=" + watts + " tau=" + tau);
sensorThread = new Thread(SensorLoop);
sensorThread.IsBackground = true;
sensorThread.Priority = ThreadPriority.Highest;
sensorThread.Start();
xtuThread = new Thread(XtuLoop); // separate: XTU may hang, the sensor loop must not
xtuThread.IsBackground = true;
xtuThread.Start();
}
protected override void OnStop() {
RequestAdditionalTime(30000);
stop.Set();
if (sensorThread != null) sensorThread.Join(15000);
try { if (!Present()) Restore("service stop"); }
catch (Exception e) { Log("stop: " + e.Message); }
}
public static int Main(string[] args) {
int watts, tau;
if (args.Length < 3
|| !int.TryParse(args[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out watts)
|| !int.TryParse(args[2], NumberStyles.Integer, CultureInfo.InvariantCulture, out tau)) {
Console.WriteLine("usage: TdpModeService <sensor instance id> <watts> <tau seconds> [check]");
return 2;
}
var service = new TdpModeService(args[0], watts, tau);
if (args.Length > 3 && args[3] == "check") { // read-only
service.Busy();
Thread.Sleep(1000);
Console.WriteLine("sensor={0} present={1} mains={2} busy={3:0} watts={4} tau={5}",
args[0], service.Present(), OnMains(), service.Busy(), watts, tau);
return 0;
}
ServiceBase.Run(service);
return 0;
}
}
install.ps1: kompiluje, zamyka katalog, instaluje.
# install.ps1 - builds and installs TdpModeService. ASCII only. Elevated PowerShell, on mains, cool and idle.
# Defaults are for the ThinkPad X1 Tablet Gen 3 (i7-8650U). On another machine pass your own values.
param(
[string]$Sensor = 'ACPI\INT3403\CPUP',
[int]$Watts = 25, # never above the cTDP-up of your processor
[int]$Tau = 28,
[int]$BatteryMHz = 2400 # clock cap on battery, 0 = none
)
$ErrorActionPreference = 'Stop'
$name = 'TdpModeService'
$dir = Join-Path $env:ProgramFiles 'TDP'
$here = if ($PSScriptRoot) { $PSScriptRoot } else { (Get-Location).Path }
$src = Join-Path $here 'TdpModeService.cs'
$csc = "$env:WINDIR\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
$xtu = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
function Assert-Native([string]$What) { if ($LASTEXITCODE -ne 0) { throw "$What failed, exit $LASTEXITCODE" } }
# 1. prerequisites
$me = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()
if (-not $me.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { throw 'Run as administrator.' }
Add-Type -AssemblyName System.Windows.Forms
if ([Windows.Forms.SystemInformation]::PowerStatus.PowerLineStatus -ne 'Online') { throw 'Connect mains power first.' }
foreach ($f in $src, $csc, $xtu) { if (-not (Test-Path -LiteralPath $f)) { throw "Missing: $f" } }
Set-Service XTU3SERVICE -StartupType Automatic
Start-Service XTU3SERVICE
# 2. remove older automation and return to the factory sensor state
if (Get-Service $name -ErrorAction SilentlyContinue) {
Set-Service $name -StartupType Disabled
Stop-Service $name -Force
sc.exe delete $name | Out-Null
Assert-Native 'sc delete'
for ($i = 0; $i -lt 20 -and (Get-Service $name -ErrorAction SilentlyContinue); $i++) { Start-Sleep 1 }
}
foreach ($task in @(Get-ScheduledTask -TaskName 'TDP*' -ErrorAction SilentlyContinue)) {
Disable-ScheduledTask -InputObject $task | Out-Null
}
Get-Process mode-watch -ErrorAction SilentlyContinue | Stop-Process -Force
pnputil /scan-devices | Out-Null
Start-Sleep 3
$found = Get-PnpDevice -InstanceId $Sensor -ErrorAction SilentlyContinue | Where-Object Present
if (-not $found) { throw "Sensor not found: $Sensor" }
# 3. folder that only SYSTEM and Administrators can write: a SYSTEM service runs from here
New-Item -ItemType Directory -Path $dir -Force | Out-Null
icacls $dir /setowner '*S-1-5-32-544' | Out-Null
Assert-Native 'owner'
icacls $dir /reset | Out-Null # drop explicit entries left on an existing folder
Assert-Native 'folder ACL reset'
icacls $dir /inheritance:r /grant:r '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F' | Out-Null
Assert-Native 'folder ACL'
# 4. build
$exe = Join-Path $dir "$name.exe"
if (Test-Path -LiteralPath $exe) { Copy-Item -LiteralPath $exe "$exe.bak" -Force }
Copy-Item -LiteralPath $src (Join-Path $dir "$name.cs") -Force
& $csc /nologo /target:exe /r:System.ServiceProcess.dll "/out:$exe" (Join-Path $dir "$name.cs")
Assert-Native 'compile'
icacls (Join-Path $dir '*') /setowner '*S-1-5-32-544' /T /C | Out-Null
Assert-Native 'file owner'
icacls (Join-Path $dir '*') /reset /T /C | Out-Null # children inherit only the two entries above
Assert-Native 'file ACL'
# 5. calmer turbo (Windows default is 2), and Windows does the saving on battery
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
Assert-Native 'AC boost mode'
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 4
Assert-Native 'battery boost mode'
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 0
Assert-Native 'AC clock'
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX $BatteryMHz
Assert-Native 'battery clock'
powercfg /setactive SCHEME_CURRENT
Assert-Native 'power scheme'
# 6. the first brake: Best performance on mains (switch Energy saver off by hand)
Add-Type -Namespace X1Install -Name Overlay -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerSetActiveOverlayScheme(Guid g);
'@
if ([X1Install.Overlay]::PowerSetActiveOverlayScheme([Guid]'ded574b5-45a0-4f42-8737-46345c09c238') -ne 0) {
Write-Warning 'Set Best performance in Windows Settings.'
}
# 7. service, restarted 5 s after a crash
$binary = '"{0}" "{1}" {2} {3}' -f $exe, $Sensor, $Watts, $Tau
New-Service -Name $name -BinaryPathName $binary -StartupType Automatic | Out-Null
sc.exe failure $name reset= 86400 actions= restart/5000/restart/5000/restart/5000 | Out-Null
Assert-Native 'recovery'
Start-Service $name
Start-Sleep 5
Get-Service $name | Format-Table Name, Status, StartType
icacls $exe
$log = Join-Path $dir 'logs\service.log'
if (Test-Path -LiteralPath $log) { Get-Content -LiteralPath $log -Tail 5 } else { Write-Warning 'No service log yet.' }
'The sensor is removed after 90 s on mains, once the last 30 s had low CPU use. Wait, then run status.ps1.'
Krok 4. Odbiór. Wszystko, inaczej się nie liczy:
status.ps1 pokazuje brak czujnika i 25 / 25 / 28.loadtest.ps1 przechodzi: około 17 W i 3 GHz przy dzisiejszym chłodzeniu, bez spadku do 8 W.status.ps1: limity, bieżące odczyty, flagi dławienia, czujnik i log.
# status.ps1 - read-only. ASCII only. Elevated: without admin the XTU SDK returns nothing.
param([string]$Sensor = 'ACPI\INT3403\CPUP')
'sensor present: ' + [bool](Get-PnpDevice -InstanceId $Sensor -ErrorAction SilentlyContinue | Where-Object Present)
Get-Service TdpModeService, XTU3SERVICE -ErrorAction SilentlyContinue | Format-Table Name, Status, StartType
$dll = 'C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll'
$lib = $null
for ($i = 1; $i -le 18 -and -not $lib; $i++) { # XTU can answer late after boot
try {
$x = [Activator]::CreateInstance([Reflection.Assembly]::LoadFrom($dll).GetType('Intel.Overclocking.SDK.IntelOverclockingLibrary'))
$x.Initialize()
if ($x.InitializeCheck()) { $lib = $x }
} catch { }
if (-not $lib) { "XTU not ready, try $i"; Start-Sleep 10 }
}
if (-not $lib) { throw 'XTU SDK unavailable. Elevated? XTU3SERVICE running?' }
$t = $lib.TuningLib
foreach ($c in @((48, 'PL1 W'), (47, 'PL2 W'), (66, 'tau s'))) {
$v = $t.GetControl([uint32]$c[0])
'{0,-8} active={1} boot={2}' -f $c[1], $v.ActiveValue, $v.BootValue
}
$m = $lib.MonitoringLib
$m.Start()
Start-Sleep 2
$monitors = @((1000, 'package W'), (2701131777, 'package C'), (5, 'max core clock'), (3, 'thermal limit'),
(22, 'power limit'), (23, 'current limit (EDP)'), (26, 'VR limit'))
foreach ($c in $monitors) {
try { '{0,-20} {1}' -f $c[1], $m.GetValue([uint32]$c[0]) } catch { '{0,-20} n/a' -f $c[1] }
}
$m.Stop()
$log = Join-Path $env:ProgramFiles 'TDP\logs\service.log'
if (Test-Path -LiteralPath $log) { Get-Content -LiteralPath $log -Tail 10 }
Żeby zmienić limity albo czujnik, uruchom install.ps1 ponownie z innymi parametrami.
uninstall.ps1: działa dla tego zestawu, mojej starszej usługi i starszych zadań TDP-*.
# uninstall.ps1 - back to factory behaviour. ASCII only. Elevated PowerShell. Safe to run twice.
param([string]$Sensor = 'ACPI\INT3403\CPUP')
$me = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()
if (-not $me.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { throw 'Run as administrator.' }
# automation first, or it removes the sensor again
if (Get-Service TdpModeService -ErrorAction SilentlyContinue) {
Set-Service TdpModeService -StartupType Disabled
Stop-Service TdpModeService -Force
sc.exe delete TdpModeService
}
foreach ($task in @(Get-ScheduledTask -TaskName 'TDP*' -ErrorAction SilentlyContinue)) {
Disable-ScheduledTask -InputObject $task | Out-Null
Stop-ScheduledTask -InputObject $task
}
Get-Process mode-watch -ErrorAction SilentlyContinue | Stop-Process -Force
pnputil /scan-devices
Start-Sleep 3
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 0
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCFREQMAX 0
powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 2 # Windows default in Balanced
powercfg /setdcvalueindex SCHEME_CURRENT SUB_PROCESSOR PERFBOOSTMODE 2
powercfg /setactive SCHEME_CURRENT
Add-Type -Namespace X1Undo -Name Overlay -MemberDefinition @'
[DllImport("powrprof.dll")] public static extern uint PowerSetActiveOverlayScheme(Guid g);
'@
[void][X1Undo.Overlay]::PowerSetActiveOverlayScheme([Guid]::Empty) # Balanced
'sensor present: ' + [bool](Get-PnpDevice -InstanceId $Sensor -ErrorAction SilentlyContinue | Where-Object Present)
'service left: ' + [bool](Get-Service TdpModeService -ErrorAction SilentlyContinue)
'Now use Restart (not Shut down): the power limits return to their boot values.'
Bez skryptu: wyłącz usługę TdpModeService, uruchom pnputil /scan-devices jako administrator, wybierz tryb zrównoważony i zrób restart.
| Element | Stan poprawny, listopad 2026 |
|---|---|
| Maszyna | ThinkPad X1 Tablet Gen 3 (20KK), i7-8650U, BIOS 1.51 (N1ZET95W), Windows 11 build 26300 |
| Oprogramowanie | Intel XTU 7.4.1.3, Intel DTT 8.7.10200.12510 |
| Specyfikacja | 15 W przy 1,9 GHz, cTDP-up 25 W przy 2,1 GHz, cTDP-down 10 W przy 0,8 GHz |
| Limit MSR (0x610), ustawiany przez XTU | PL1 = PL2 = 25 W, tau = 28 s |
| Limit MMIO (MCHBAR+0x59A0/0x59A4), ustawiany przez DTT | 29 W na chłodno, 8,5 W po cięciu |
| Kto ogranicza | DTT Passive Policy 2, czujnik ACPI\INT3403\CPUP, próg 56 °C z BIOS-u |
| Na zasilaczu | brak CPUP, dla zmierzonej szybkości Najlepsza wydajność (ręcznie, usługa jej nie ustawia; zrównoważonego nie mierzono), oszczędzanie energii wyłączone |
| Turbo | PERFBOOSTMODE 4 (Efficient Aggressive) na zasilaczu i baterii, domyślnie w Windows 2 |
| Na baterii | CPUP obecny, zegar ograniczony przez Windows do 2,4 GHz, XTU zostaje na 25 W |
| Automatyka | Usługa TdpModeService v1.4 w C:\Program Files\TDP (inny kod niż we wpisie), jeszcze bez odbioru |
| Zdrowe pełne obciążenie | 15-18 W, 2,9-3,1 GHz, 95-98 °C, krótkie dołki do 13-14 W |
| Cięcie | 20 W przez 15-50 s, potem około 8 W, najwyżej 2 GHz, 65-78 °C |
| Kontrolka XTU | Id | Start | Ustawione | Uwagi |
|---|---|---|---|---|
| Turbo Boost Power Max (PL1) | 48 | 8,5 W | 25 W | domyślnie 29 W |
| Turbo Boost Short Power Max (PL2) | 47 | 29 W | 25 W | domyślnie 44 W |
| Short Power Max Enable | 49 | 1 | 1 | |
| Turbo Boost Power Time Window (tau) | 66 | 28 s | 28 s | 1-128 s |
| IccMax, cztery kontrolki | 102, 104, 105, 106 | 100,75 A | bez zmian | zmienialne |
| Przesunięcia napięcia | 34, 79, 83 | 0 | bez zmian | tylko odczyt |
| Monitor XTU | Id |
|---|---|
| Moc pakietu | 1000 |
| Temperatura pakietu | 2701131777 |
| Najwyższy zegar rdzenia | 5 |
| Dławienie termiczne | 3 |
| Dławienie limitem mocy | 22 |
| Dławienie limitem prądu (EDP) | 23 |
| Dławienie VR | 26 |
| Element | Identyfikator |
|---|---|
| Usługa XTU | XTU3SERVICE |
| SDK XTU | C:\Program Files\Intel\Intel(R) Extreme Tuning Utility\Client\IntelOverclockingSDK.dll |
| Menedżer DTT | ACPI\INT3400 |
| Uczestnik procesora DTT | PCI\VEN_8086&DEV_1903 |
| Czujniki DTT tutaj | ACPI\INT3403\ CPUP, CHRG, MEM, PCH, SSD0, WLAN |
| Najlepsza wydajność | ded574b5-45a0-4f42-8737-46345c09c238 |
| Najlepsza efektywność | 961cc777-2547-4f9d-8174-7d86181b8a7a |
| PERFBOOSTMODE | be337238-0d82-4146-a960-4f3749d470c7 |