Hi, I was finally able to try @ogra 's suggestion and change a little the way the snap works.
It took me some time because I was experimenting using the lxd container, to try to reduce system resources usage, but it didn’t work for me, so I’m using Multipass again. Also, each test takes me a long time, to rebuild the snap (I usually make snapcraft clean mypart
), I’m not sure there’s a faster procedure.
While I’m currently focusing on enablying the OpenGL support, next I will try to make the fahclient be a user service using an autostart desktop file. I’m still investigating how to do it properly. Also, I’d like to enable CUDA as well, but that’s for later too.
OpenGL
I released revision 35 to all channels. Using the hardware-observe
interface the GPU is detected, though there are still some errors. Adding the browser-support
interface didn’t seem to help actually, but I’m not sure if I had to set something related to sandboxing and where to eventually do so.
Client errors
Running the client, on first run, it produces the following error:
12:27:00:ERROR:No compute devices matched GPU #0 NVIDIA:4 GM107 [GeForce GTX 850M]. You may need to update your graphics drivers.
In the control app, the GPU slot appears but it is always yellow with the writing Paused: waiting for idle. For OpernGL it reports:
-
GPUs:
0
-
CUDA:
Not detected: cuInit() returned 100
-
OpenCL:
Not detected: clGetPlatformIDs() returned -1001
Logs:
15:34:05 kernel: audit: type=1400 audit(1585917245.233:67775): apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0" pid=794779 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
15:34:05 FAHClient: AVC apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0" pid=794779 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
15:33:43 kernel: audit: type=1400 audit(1585917223.173:67774): apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28" pid=794779 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
15:33:43 FAHClient: AVC apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28" pid=794779 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
15:33:09 kernel: audit: type=1400 audit(1585917189.721:67773): apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0" pid=794687 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
15:33:09 FAHClient: AVC apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0" pid=794687 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
15:33:09 kernel: audit: type=1400 audit(1585917189.709:67772): apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28" pid=794687 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
15:33:09 FAHClient: AVC apparmor="DENIED" operation="open" profile="snap.folding-at-home-fcole90.folding-at-home-fcole90" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28" pid=794687 comm="FAHClient" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
I’m running the client as user, with the command folding-at-home-fcole90
which has the following plugs:
plugs:
- network
- network-bind
- opengl
- x11
- unity7
- home
- serial-port
- raw-usb
- desktop
- desktop-legacy
- hardware-observe
- browser-support
Any suggestion on how to proceed?