Any chance to install LACT (GitHub - ilya-zlobintsev/LACT: Linux GPU Configuration Tool) on Bluefin?
P.S. This application allows you to control your AMD or Nvidia GPU on a Linux system.
Thanks in advance.
Any chance to install LACT (GitHub - ilya-zlobintsev/LACT: Linux GPU Configuration Tool) on Bluefin?
P.S. This application allows you to control your AMD or Nvidia GPU on a Linux system.
Thanks in advance.
Layering should work, that is how Bazzite does I think. You can even add the copr repo to your bluefin install so it will get updates from the repo.
You can use the following script (borrowed from Bazzite) to layer Lact. I did this for my custom Ublue image.
#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
ublue-update --wait
rpm-ostree kargs --append-if-missing=$(printf 'amdgpu.ppfeaturemask=0x%x\n' "$(($(cat /sys/module/amdgpu/parameters/ppfeaturemask) | 0x4000))")
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
echo 'Installing LACT Libadwaita...'
wget \
$(curl -s https://api.github.com/repos/ilya-zlobintsev/LACT/releases/latest | \
jq -r ".assets[] | select(.name | test(\"lact-libadwaita.*fedora-$(rpm -E %fedora)\")) | .browser_download_url") \
-O /tmp/lact.rpm
else
echo 'Installing LACT...'
wget \
$(curl -s https://api.github.com/repos/ilya-zlobintsev/LACT/releases/latest | \
jq -r ".assets[] | select(.name | test(\"lact-[0-9].*fedora-$(rpm -E %fedora)\")) | .browser_download_url") \
-O /tmp/lact.rpm
fi
rpm-ostree install --apply-live -y /tmp/lact.rpm
sudo systemctl enable --now lactd
rm /tmp/lact.rpm
echo 'Complete.'
Yeah. Layering will work, but i thought it is not the right way.
Generally it isn’t but there are stuff that won’t just work any other way. For example most of the VPN clients need to be layered.
Its like the last option if other ones are not usable.
Thanks. I need to reevaluate this script every update? Maybe overlay a COPR is less cumbersome?
I’ve read on bluefin asministrators guide that layering will be disabled soon. Any global changes coming?
Can’t speak for other images, but that is just one setting that the user can change if they need. So its not that big of a deal.
And I guess most of the Bluefin/Aurora users don’t need that much gaming specific stuff, and if they know they do, they propably go to Bazzite.
When I’ve layered packages previously for my experimental builds, these have been updated as part of the automatic update process via rpm-ostree. So I would expect that this would be the case here. If not, it’s a few minutes to re-run the script and re-instate LACT.
As far I know, Bazzite images has ujust switch like “–enable-lact”. One have to fill an issue on github to append this to Bluefin?