Skip to content

Commit

Permalink
feat(desktop): Switch from CoreCtrl to LACT as the default AMD overcl…
Browse files Browse the repository at this point in the history
…ocking solution.
  • Loading branch information
KyleGospo committed Nov 26, 2023
1 parent 95fdf2d commit 083dda2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Expand Up @@ -77,7 +77,7 @@ screens:
show_terminal: true
package_manager: yafti.plugin.run
packages:
- CoreCtrl (GPU Overclocking): ujust install-corectrl
- LACT (GPU Overclocking): ujust install-lact
nvidia-additions:
source: yafti.screen.package
values:
Expand Down
16 changes: 11 additions & 5 deletions system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just
Expand Up @@ -20,13 +20,19 @@ configure-waydroid:
deactivate
sudo rm -rf /tmp/waydroid_script

# Install CoreCtrl for overclocking & undervolting AMD GPUs
install-corectrl:
echo 'Installing CoreCtrl...'
# Install LACT for overclocking & undervolting AMD GPUs
install-lact:
echo 'Installing LACT...'
ublue-update --wait
rpm-ostree install corectrl
echo 'Setting needed kargs for CoreCtrl...'
wget \
$(curl -s https://api.github.com/repos/ilya-zlobintsev/LACT/releases/latest | \
jq -r ".assets[] | select(.name | test(\"lact-.*fedora-$(rpm -E %fedora)\")) | .browser_download_url") \
-P /tmp/lact.rpm
rpm-ostree install /tmp/lact.rpm
rm /tmp/lact.rpm
echo 'Setting needed kargs for LACT...'
rpm-ostree kargs --append="amdgpu.ppfeaturemask=0xffffffff"
echo 'Done. Be sure to enable LACT with sudo systemctl enable --now lactd after you reboot.'

# Install OpenRazer for Razer gaming hardware
install-openrazer:
Expand Down

0 comments on commit 083dda2

Please sign in to comment.