Intel Rapl can provide Package, Cores, iGPU and RAM Power Values
Currently it looks like MangoHud shows the Total CPU Package as the "CPU" power usage. When using a CPU with an iGPU, this will also include the iGPU power usage and RAM.
The Intel RAPL sysfs contains separate sub zones under the package that shows: core=CPU uncore=iGPU dram=RAM
I've tried to split this into separate readings, so that GPU power usage can be extracted, but my limited coding skills have failed me. It would be good if all 4 values (including package) could be displayed to aid in best tuning the power limits when running on battery.
Output shown below: intel-rapl enabled: 1 Zone 0 name: package-0 enabled: 1 max_energy_range_uj: 262143328850 energy_uj: 26963529117 Constraint 0 name: long_term power_limit_uw: 200000000 time_window_us: 31981568 max_power_uw: 17000000 Constraint 1 name: short_term power_limit_uw: 37000000 time_window_us: 976 max_power_uw: 0 Zone 0:0 name: core enabled: 0 max_energy_range_uj: 262143328850 energy_uj: 7980278886 Constraint 0 name: long_term power_limit_uw: 0 time_window_us: 976 Zone 0:1 name: uncore enabled: 0 max_energy_range_uj: 262143328850 energy_uj: 6564982278 Constraint 0 name: long_term power_limit_uw: 0 time_window_us: 976 Zone 0:2 name: dram enabled: 0 max_energy_range_uj: 262143328850 energy_uj: 1074383113 Constraint 0 name: long_term power_limit_uw: 0 time_window_us: 976
Source: flightlessmango/MangoHud