User Tools

Site Tools


pkgpower


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pkgpower [2026/10/07 12:17] – created adminpkgpower [2026/10/07 12:28] (current) – [Troubleshooting] admin
Line 1: Line 1:
 ===== PkgPower ===== ===== PkgPower =====
  
-CPU package power-limit manager for **panther** (%%ThinkPad%% P16 Gen 5, Core Ultra 7 365, Fedora Linux + KDE Plasma 6). Created 2026-10-06.+CPU package power-limit manager originally written for my personal laptop (%%ThinkPad%% P16 Gen 5, Core Ultra 7 365, Fedora Linux + KDE Plasma 6). Created 2026-10-06.
  
 A small bash script + systemd unit + udev rule + Plasma 6 panel applet that caps CPU package power (PL1/PL2) via the kernel's native RAPL interface. Replaces the unmaintained ''undervolt'' Python utility: only its power-limit writes (''-p1''/''-p2'', MSR 0x610) ever had effect — voltage offsets are locked on 10th-gen+ Intel CPUs and silently no-op. A small bash script + systemd unit + udev rule + Plasma 6 panel applet that caps CPU package power (PL1/PL2) via the kernel's native RAPL interface. Replaces the unmaintained ''undervolt'' Python utility: only its power-limit writes (''-p1''/''-p2'', MSR 0x610) ever had effect — voltage offsets are locked on 10th-gen+ Intel CPUs and silently no-op.
Line 243: Line 243:
 </code> </code>
  
-Notes: +=== Misc === 
-  * ''plasmoidviewer'' console noise (DeclarativeDropArea overrides, isScreenUiReady errors, nullptr disconnect) comes from KDE's stock desktopcontainment inside the viewer, not from this applet. Judge only ''file:///home/...'' lines.+ 
 +  * ''plasmoidviewer'' console noise (DeclarativeDropArea overrides, isScreenUiReady errors, nullptr disconnect) comes from KDE's stock desktopcontainment inside the viewer, not from this applet. Judge only file:-home-... lines.
   * Clicking mode buttons in the viewer is live fire (NOPASSWD sudo); the icon flips within ~3 s (poll interval).   * Clicking mode buttons in the viewer is live fire (NOPASSWD sudo); the icon flips within ~3 s (poll interval).
  
Line 267: Line 268:
   * **udev rule silently misfires** — check the journal for SELinux denials.   * **udev rule silently misfires** — check the journal for SELinux denials.
   * **Changing wattages** — edit the ''case'' table in the script; everything else follows.   * **Changing wattages** — edit the ''case'' table in the script; everything else follows.
-  * **Paste gremlins** — ''bash -n /usr/local/bin/pkgpower'' must stay silent; check for smart quotes or stray ``` fence lines if the script misbehaves. 
   * Lighter-touch alternatives: ''/sys/devices/system/cpu/intel_pstate/max_perf_pct'' (frequency cap, %) and ''/sys/devices/system/cpu/intel_pstate/no_turbo'' (turbo switch). A low PL2 already tames bursty surging without killing turbo entirely.   * Lighter-touch alternatives: ''/sys/devices/system/cpu/intel_pstate/max_perf_pct'' (frequency cap, %) and ''/sys/devices/system/cpu/intel_pstate/no_turbo'' (turbo switch). A low PL2 already tames bursty surging without killing turbo entirely.
  
-==== Related on this machine ==== 
- 
-  * Battery charge thresholds **50 (start) / 60 (stop)** set in KDE Power settings (EC-enforced; deliberately not TLP — powerdevil double-writer + TLP/power-profiles-daemon package conflict). Before extended unplugged use, temporarily raise stop → 100 then start → 99 (order matters — the EC only charges below the *start* threshold), restore 50/60 afterwards. 
-  * Baseline battery health 2026-10-06: 99.96% (74.97 / 75 Wh), 4 cycles (Sunwoda pack). 
-  * History: this setup replaces ''acpower.sh'' / ''fifteenwatt.sh'' / ''tenwatt.sh'' from the previous %%ZBook%% (i7-1360P) era, which wrapped ''undervolt -p1/-p2''. 
pkgpower.1791375466.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki