Fan control and turning off RGB lights on AYN Loki

Hello everyone, I have been trying out Bazzite on my AYN Loki and it works great, but I'm unable to apply fan control so it won't be as noisy and power hungry, and turn off the RGB light that its stuck on a cyan-blue. There is a script by toast_tato that handle this on Chimera OS, but the script doesn't work on Bazzite, at least in my attempts. Its there some plug in or something similar that could help me out? Link to the script https://docs.google.com/document/d/17a0F6Wsdak1ekE6XDUn749BNynU5mj8FH9vpzDWm_bg/edit?usp=sharing
13 Replies
antheas
antheas•5mo ago
you can turn off the leds in steam settings as for the fans, you need a script for that unsure if it will work though, unclear if bazzite ships the fan controls i dont know if they are part of ayn platform
Anward
Anward•5mo ago
I tried using the scripts but they don't seems to work on Bazzite.
antheas
antheas•5mo ago
look under hwmon to see if theres the fan interface i havent looked into fans yet
Anward
Anward•5mo ago
This is what I got. hwmon0 - ACAD hwmon1 - acpitz hwmon2 - BATT hwmon3 - nvme hwmon4 - amdgpu hwmon5 - ki0temp hwmon6 - zenergy hwmon7 - aynec
antheas
antheas•5mo ago
aynec is the fan curve
Anward
Anward•5mo ago
In theory, I should replace hwmon6 on the script to hwmon7?
antheas
antheas•5mo ago
the proper way to do it is look through all of them and find the one that has the aynec name and use that one as it can change
Aru
Aru•5mo ago
also note that for systemd to run a script, you will probably need to tag it properly SE Linux prevents systemd from running stuff otherwise you basically need to vet it as safe e.g. sudo chcon -u system_u -r object_r --type=bin_t /filepath/to/executable/goes/here
Anward
Anward•5mo ago
Where do I write this?
Aru
Aru•5mo ago
assuming you followed that google doc exactly, then probably sudo chcon -u system_u -r object_r --type=bin_t /etc/ayn/ayn.sh
antheas
antheas•5mo ago
can you mark an executable in the /etc dir?
Aru
Aru•5mo ago
🤔 not sure tbh, i usually put my scripts in either ~/.local/bin or /usr/local/bin
Anward
Anward•5mo ago
It looks like it worked! Thanks a lot!
Want results from more Discord servers?
Add your server