Help installing fw-fanctrl
There isn't an RPM, so I'll need to move the files, binaries, and services around manually. I got stuck, can someone help me?
44 Replies
this appears to be the line that running fw-fanctrl breaks
commandResult = socketController.sendViaClientSocket(' '.join(sys.argv[1:]))
[Error] > An error occurred: [Errno 2] No such file or directory
@Kyle Gospo whenever you get some time, I could use some help with this 😅 again, no worries about when, I probly won't be back online till this weekend at the earliest anyways
the ping was mostly for awareness, not immediate response 👍
I wonder if just doing a custom bazzite image honestly wouldn't be a half bad idea tbh. It would let me just use the normal installation process I assume, so it shouldn't be that annoying
hmm, I'm having a hard time even getting a custom image working right
@tulip I hope you don't mind the ping, do you happen to have some custom-image experience?ahahaha yeah i do!
https://github.com/atomic-studio-org/
oh whats going on with this
do you mind sending me the repo?
heyooo, that's sick!
yeah one sec
GitHub
GitHub - ngraham20/bazzite-personal
Contribute to ngraham20/bazzite-personal development by creating an account on GitHub.
and here's the tool I'm trying to install https://github.com/TamtamHero/fw-fanctrl
GitHub
GitHub - TamtamHero/fw-fanctrl: A simple systemd service to better ...
A simple systemd service to better control Framework Laptop's fan(s) - TamtamHero/fw-fanctrl
I've tried a few different ways to install this, but all of them seem pretty unhappy with read-only-root-filesystem 😂
I even tried installing manually by just copy/pasting the files into the right places but that didn't really work for whatever reason (user error I'm sure), so I figured a custom image might be fun to give a go at
you won't be able to just rawdog their install script
you need to make your own
uyp
yup
ah damn
then I'll need to understand how it works, meaning I'm back to a manual installation
yup LOL
which is 100% fine, but I couldn't even get that far 😂
it shouldnt be too hard now that ur on a custom image
I mean my own one is still bazzite:stable, I haven't gotten an image to build yet lmaooo
make a
system
directory w/ etc
and usr
inside of it, then you can put stuff that you would put on those /
directories, but there!
ADD system/etc etc
ADD system/usr usr
looks like you can just change the directory target, if you looks at the script you probably only need to change some variable
and adjust the systemctl calls
wait huh?
I'm not sure I've done whatever you're suggesting before 😂
you can manually add files to etc and usr from your repo by doing
ADD (...)
on the containerfile
but you most likely wont need that
im pretty sure you can just manually do whatever the scripts are doinOH in the containerfile. That makes sense. I was thinking I would literally do it manually, like clone the repo and c/p some files around to understand where things need to go lmao
which I had tried earlier, but things weren't working properly for some reason
this was happening: https://discord.com/channels/1072614816579063828/1311801951037427804/1311810030840053962
here, lemme try again manually while I've got some attention 😂 I'll see if I can reproduce the error or get past it
just ping whenever you have any updates on ur progress! ill answer ASAP
youre a gem as always, thanks!!!
oh hey I think I got it!!
the script has pretty bad error handling, so the "file not found" was actually caused by me not supplying a command to the script 😂
go figure
you know something cool
does this thing need a kernel module or something?
it uses
ectool
, so no kernel module, noif not we can make it into a sysext so you can install it on rrgular bazzite directly
whats a sysext?
systemd system extension
a new mechanism systemd has for overlaying things on immutable usrs and etcs
thst wouldnt fuck up your updates or anything
does manually adding services usually mess with things?
i believe kyle already applied the patched systemd thing that fixes sysext
where?
I just stuck the service file in
/etc/systemd/system
oh nah it should be fjne
you can even enable the service on the build script
ill try making a sysext for this tool you want tomorro
imma sleep rn
thanks so much for the help!
ill be here helpin out always! (hopefully!)
does this thing even require sysext? looks portable enough to me, it just defaulted to /usr but looks like you can put it wherever
ah man that's so much better! I got it working/installed. I'll update this thread with some easier way to install once I either write a custom script, make a custom base-image, or figure out that @asen23's totally right and that I just didn't rtfm well enough 😂
try installing with
install.sh -p "~/.local/share/fw-fanctrl"
this is for a custom image
so that's not gonna work
i mean for normal installation
actually, it was mainly to get installed at all so it probly would've, but I do like the idea of a custom image
the custom route is different sure
lmao that made me sweat. It doesn't resolve "~" so it created a directory called
~
scariest command I've run in a long time lmaoooooh wtf lol, try expanding that then
from glance it looks like normal mkdir and cp stuff so i figure theyll expand it
it doesn't put the system files in a place that's useful I don't think
the rest of the install seems to work tho
oops, mean to reply @asen23
copying them over to
/etc/systemd/system
still works tho, and I also had to put a symlink for ectool
in the path
probably still worth trying a custom image, even if just for fun
@tulip I finally get to actually use this lmaooooo https://discord.com/channels/1072614816579063828/1283493575518064650/1283843087608578168hmm, maybe using "/usr/local" as path could work better then
oh and it would solve the ectool not in path
/usr/local/bin
should be in path by defaultI mean at this point, it's installed 😂 so I'll probly stop fiddling with it. However, that makes sense to me
I do want to make a custom image tho, so once I have that, I'll mark this as resolved 👍