-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux fah-client user in video/render groups, but no effect? #323
Comments
So give more context on this:
were the commands which would let FAHClient see AMD GPUs as supported. It would require a reboot for that after commands were used. In most cases I could get away with adding my user to render group only. The way I look at it, this is not a massive issue, since AMD users require to manually set up their systems to be able to fold. running couple of extra commands in console is not a big deal at all, thus I never bothered anyone with that :) |
I can't imagine how adding the machine's regular user to the video and render groups could help in any way. The FAH client process and its descendants, including the WUs, have no connection to that user. They run under the fah-client system user. Another thing, which doesn't seem to matter in this case: systemd-logind applies ACLs to the device nodes, granting access to the logged-in user while a local session exists:
That's why adding the user who will log in locally to such groups is no longer necessary for a long time with systemd-logind. It must have been compiled with ACL support ( From what I could infer, the operation is more or less like this:
At the same time, we have:
If you've got a machine where this always happens, it'd be interesting to edit |
All the recent attempts were done on Debian based systems, where I used fahclient installer from FAH website. Each of them (Mint 22 and Mint 21.3, and Kubuntu) required usermod magic. |
Thanks for checking. In theory, the permission/owner adjustments on the device nodes might not be applied in time. I think it's unlikely, at least while the DRM drivers are loaded in the initramfs, which is pretty much universal, I believe. |
See:
https://foldingforum.org/viewtopic.php?p=367199#p367199
Maybe when
fah-client.service
starts, udev hasn't tweaked the device nodes permissions yet -- and DRM drivers are huge these days and take a while to load, especially amdgpu. One way to test is to addExecStartPre=-/usr/bin/ls -l /dev/dri/
tofah-client.service
and comment outStandardOutput=null
. Usesystemctl edit --full fah-client.service
for that (andsystemctl revert fah-client.service
to undo). Pro tip: set yourEDITOR
environment variable so you don't get trapped in vim! haha. Then reboot the machine and check the output ofjournalctl -b -u fah-client.service
. When the rules are applied on time, it'll look something like this:If it's a real issue, is there a simple way to get the service synced up after udev runs its rules, without messing with libsystemd/libdrm?
@muziqaz
The text was updated successfully, but these errors were encountered: