Skip to content

Commit

Permalink
feat: enable mangohud read of cpu power (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Jan 11, 2025
1 parent 39b638c commit 27a37ea
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions steam.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,21 @@ sed -i 's@"dxvk.conf"@"/usr/share/latencyflex/dxvk.conf"@g' /usr/bin/latencyflex
chmod +x /usr/bin/latencyflex

sed -i "s@enabled=1@enabled=0@" /etc/yum.repos.d/negativo17-fedora-multimedia.repo

# this allows mangohud to read CPU power wattage
tee /usr/lib/systemd/system/sysfs-read-powercap-intel.service << EOF
[Unit]
Description=Set readable intel cpu power
After=systemd-udevd.service
After=tuned.service
ConditionPathExists=/sys/class/powercap/intel-rapl:0/energy_uj
[Service]
Type=oneshot
ExecStart=chmod a+r /sys/class/powercap/intel-rapl:0/energy_uj
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
EOF
systemctl enable sysfs-read-powercap-intel.service

0 comments on commit 27a37ea

Please sign in to comment.