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
Raevenant
RaevenantOP3mo ago
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
STEP 3/4: RUN mkdir -p /var/lib/alternatives && /tmp/build.sh && ostree container commit
++ rpm -E %fedora
+ RELEASE=41
+ git clone https://github.com/TamtamHero/fw-fanctrl.git /tmp/fw-fanctrl
Cloning into '/tmp/fw-fanctrl'...
+ cd /tmp/fw-fanctrl
+ ./install.sh
removing legacy files
installing ectool
downloading artifact from gitlab
checking artifact sha256 sum
extracting artifact
ectool installed
creating '/usr/lib/systemd/system'
creating services
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to system scope bus via local transport: Host is down
creating '/usr/lib/systemd/system/fw-fanctrl.service'
adding services sub-configurations
adding sub-configurations for [system-sleep]
adding '/usr/lib/systemd/system-sleep/fw-fanctrl-suspend'
logname: no login name
moving legacy files to their new destination
enabling services
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to system scope bus via local transport: Host is down
Error: building at STEP "RUN mkdir -p /var/lib/alternatives && /tmp/build.sh && ostree container commit": while running runtime: exit status 1
Error: Error: buildah exited with code 1
STEP 3/4: RUN mkdir -p /var/lib/alternatives && /tmp/build.sh && ostree container commit
++ rpm -E %fedora
+ RELEASE=41
+ git clone https://github.com/TamtamHero/fw-fanctrl.git /tmp/fw-fanctrl
Cloning into '/tmp/fw-fanctrl'...
+ cd /tmp/fw-fanctrl
+ ./install.sh
removing legacy files
installing ectool
downloading artifact from gitlab
checking artifact sha256 sum
extracting artifact
ectool installed
creating '/usr/lib/systemd/system'
creating services
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to system scope bus via local transport: Host is down
creating '/usr/lib/systemd/system/fw-fanctrl.service'
adding services sub-configurations
adding sub-configurations for [system-sleep]
adding '/usr/lib/systemd/system-sleep/fw-fanctrl-suspend'
logname: no login name
moving legacy files to their new destination
enabling services
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to system scope bus via local transport: Host is down
Error: building at STEP "RUN mkdir -p /var/lib/alternatives && /tmp/build.sh && ostree container commit": while running runtime: exit status 1
Error: Error: buildah exited with code 1
@tulip I hope you don't mind the ping, do you happen to have some custom-image experience?
tulip🌷
tulip🌷3mo ago
ahahaha yeah i do! https://github.com/atomic-studio-org/ oh whats going on with this do you mind sending me the repo?
Raevenant
RaevenantOP3mo ago
heyooo, that's sick! yeah one sec
Raevenant
RaevenantOP3mo ago
GitHub
GitHub - ngraham20/bazzite-personal
Contribute to ngraham20/bazzite-personal development by creating an account on GitHub.
Raevenant
RaevenantOP3mo ago
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
Raevenant
RaevenantOP3mo ago
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
Kyle Gospo
Kyle Gospo3mo ago
you won't be able to just rawdog their install script you need to make your own
tulip🌷
tulip🌷3mo ago
uyp yup
Raevenant
RaevenantOP3mo ago
ah damn then I'll need to understand how it works, meaning I'm back to a manual installation
tulip🌷
tulip🌷3mo ago
yup LOL
Raevenant
RaevenantOP3mo ago
which is 100% fine, but I couldn't even get that far 😂
tulip🌷
tulip🌷3mo ago
it shouldnt be too hard now that ur on a custom image
Raevenant
RaevenantOP3mo ago
I mean my own one is still bazzite:stable, I haven't gotten an image to build yet lmaooo
tulip🌷
tulip🌷3mo ago
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
asen23
asen233mo ago
looks like you can just change the directory target, if you looks at the script you probably only need to change some variable
Kyle Gospo
Kyle Gospo3mo ago
and adjust the systemctl calls
Raevenant
RaevenantOP3mo ago
wait huh? I'm not sure I've done whatever you're suggesting before 😂
tulip🌷
tulip🌷3mo ago
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 doin
Raevenant
RaevenantOP3mo ago
OH 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
tulip🌷
tulip🌷3mo ago
just ping whenever you have any updates on ur progress! ill answer ASAP
Raevenant
RaevenantOP3mo ago
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
tulip🌷
tulip🌷3mo ago
you know something cool does this thing need a kernel module or something?
Raevenant
RaevenantOP3mo ago
it uses ectool, so no kernel module, no
tulip🌷
tulip🌷3mo ago
if not we can make it into a sysext so you can install it on rrgular bazzite directly
Raevenant
RaevenantOP3mo ago
whats a sysext?
tulip🌷
tulip🌷3mo ago
systemd system extension a new mechanism systemd has for overlaying things on immutable usrs and etcs thst wouldnt fuck up your updates or anything
Raevenant
RaevenantOP3mo ago
does manually adding services usually mess with things?
tulip🌷
tulip🌷3mo ago
i believe kyle already applied the patched systemd thing that fixes sysext where?
Raevenant
RaevenantOP3mo ago
I just stuck the service file in /etc/systemd/system
tulip🌷
tulip🌷3mo ago
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
Raevenant
RaevenantOP3mo ago
thanks so much for the help!
tulip🌷
tulip🌷3mo ago
ill be here helpin out always! (hopefully!)
asen23
asen233mo ago
does this thing even require sysext? looks portable enough to me, it just defaulted to /usr but looks like you can put it wherever
Raevenant
RaevenantOP3mo ago
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 😂
asen23
asen233mo ago
try installing with install.sh -p "~/.local/share/fw-fanctrl"
Kyle Gospo
Kyle Gospo3mo ago
this is for a custom image so that's not gonna work
asen23
asen233mo ago
i mean for normal installation
Raevenant
RaevenantOP3mo ago
actually, it was mainly to get installed at all so it probly would've, but I do like the idea of a custom image
asen23
asen233mo ago
the custom route is different sure
Raevenant
RaevenantOP3mo ago
lmao that made me sweat. It doesn't resolve "~" so it created a directory called ~
❯ rm -rf "./~"
rm: cannot remove './~/.local/share/fw-fanctrl/bin/ectool': Permission denied
rm: cannot remove './~/.local/share/fw-fanctrl/bin/fw-fanctrl': Permission denied
rm: cannot remove './~/.local/share/fw-fanctrl/lib/systemd/system/fw-fanctrl.service': Permission denied
rm: cannot remove './~/.local/share/fw-fanctrl/lib/systemd/system-sleep/fw-fanctrl-suspend': Permission denied

fw-fanctrl on  main [!?] via 🐍 v3.13.0
❯ sudo rm -rf "./~"
❯ rm -rf "./~"
rm: cannot remove './~/.local/share/fw-fanctrl/bin/ectool': Permission denied
rm: cannot remove './~/.local/share/fw-fanctrl/bin/fw-fanctrl': Permission denied
rm: cannot remove './~/.local/share/fw-fanctrl/lib/systemd/system/fw-fanctrl.service': Permission denied
rm: cannot remove './~/.local/share/fw-fanctrl/lib/systemd/system-sleep/fw-fanctrl-suspend': Permission denied

fw-fanctrl on  main [!?] via 🐍 v3.13.0
❯ sudo rm -rf "./~"
scariest command I've run in a long time lmaoooo
asen23
asen233mo ago
oh wtf lol, try expanding that then from glance it looks like normal mkdir and cp stuff so i figure theyll expand it
Raevenant
RaevenantOP3mo ago
❯ sudo ./install.sh -p /home/raevenant/.local/share/fw-fanctrl
removing legacy files
installing ectool
downloading artifact from gitlab
checking artifact sha256 sum
extracting artifact
ectool installed
creating '/home/nathaniel/.local/share/fw-fanctrl/lib/systemd/system'
creating services
creating '/home/nathaniel/.local/share/fw-fanctrl/lib/systemd/system/fw-fanctrl.service'
adding services sub-configurations
adding sub-configurations for [system-sleep]
adding '/home/nathaniel/.local/share/fw-fanctrl/lib/systemd/system-sleep/fw-fanctrl-suspend'
moving legacy files to their new destination
enabling services
enabling [fw-fanctrl]
Failed to enable unit: Unit fw-fanctrl.service does not exist
❯ sudo ./install.sh -p /home/raevenant/.local/share/fw-fanctrl
removing legacy files
installing ectool
downloading artifact from gitlab
checking artifact sha256 sum
extracting artifact
ectool installed
creating '/home/nathaniel/.local/share/fw-fanctrl/lib/systemd/system'
creating services
creating '/home/nathaniel/.local/share/fw-fanctrl/lib/systemd/system/fw-fanctrl.service'
adding services sub-configurations
adding sub-configurations for [system-sleep]
adding '/home/nathaniel/.local/share/fw-fanctrl/lib/systemd/system-sleep/fw-fanctrl-suspend'
moving legacy files to their new destination
enabling services
enabling [fw-fanctrl]
Failed to enable unit: Unit fw-fanctrl.service does not exist
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/1283843087608578168
asen23
asen233mo ago
hmm, 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 default
Raevenant
RaevenantOP3mo ago
I 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 👍

Did you find this page helpful?