Intel CPU power: 0 watts in GOverlay

I use an i5-14600KF and an RX 6500 XT GPU. GOverlay shows the GPU power consumption, but it does not show the CPU power. I searched for a solution and running this command in the terminal:

sudo chmod o+r /sys/class/powercap/intel-rapl:0/energy_uj

temporarily fixes the issue. However, the permission is not preserved after rebooting the system. My question is: is it possible to make this permission persistent after reboot, or is there an application that allows GOverlay to read the CPU power consumption? Thanks to anyone who can help or who tries to help.

I’d also like to take the opportunity to thank this wonderful distro. I’m new to Linux and I’ve had good results with this GPU in games on CachyOS. If anyone knows ways to make it more efficient, I’d appreciate any tips.

Funny, I just did this for a friend a bit different i5 model but I think this might help make that stick.

A udev rule can be created to automatically apply the correct permissions after each boot.

The rule should be placed in /etc/udev/rules.d/70-intel-rapl.rules and configured as follows:

SUBSYSTEM=="powercap", KERNEL=="intel-rapl:0", RUN+="/usr/bin/chgrp games /sys/%p/energy_uj", RUN+="/usr/bin/chmod g+r /sys/%p/energy_uj"

This rule ensures that the energy_uj file is owned by the games group and readable by group members, and it will be applied automatically after each system reboot.

Additionally, the user must be added to the games group for the permission change to take effect. (If not already added)

Thank you, this definitely solves my problem.:clap:t3: