Docs: Add Ubuntu, consistent steps for BPF LSM and note on already open GPU file descriptors#62
Docs: Add Ubuntu, consistent steps for BPF LSM and note on already open GPU file descriptors#62MaEtUgR wants to merge 2 commits into
Conversation
…ed kernel BPF LSM feature
…evoke existing GPU file descriptors It can be further refined but this note at least helps dcument the reality that if gnome already holds the GPU it will not be freed immediately.
|
Hi, first and foremost thanks for your help ! |
| }; | ||
| ``` | ||
|
|
||
| The NixOS module configures BPF LSM automatically — no manual kernel parameter changes needed. |
There was a problem hiding this comment.
bpf is enabled by default on nixos, the module doesnt enable it
|
|
||
| Check your kernel's default LSM list: | ||
|
|
||
| On Ubuntu/Fedora: |
There was a problem hiding this comment.
bpf is also enabled by default on fedora, i tested on a Fedora 44 KDE edition VM, maybe we should add a warning to not touch the grub config if bpf is already enabled? or remove Fedora?
| ``` | ||
|
|
||
| > [!NOTE] | ||
| > The block only applies to new file opens. Processes that already have the GPU open (e.g. the compositor) will keep their access until they restart. A session logout/login is required for the GPU to fully power down. Check `cardwire gpu --lsof 1` to verify thre's no process keeping e.g. the dedicated GPU awake. |
There was a problem hiding this comment.
typo on "thre's no process keeping e.g. the dedicated GPU awake", a session logout/login shouldn't be required, even if the compositor has the dGPU's render/card node open, the dGPU can still enter D3Cold as long as the fd is not actively keeping the GPU awake (e.g. the GPU is idle, and the driver/compositor allow runtime suspend)
First of all thank you for all the effor on this successor to
supergfxctlwhich I was using before. The direction of this tool seems much better 👏 I think we just have to get it more accessible which I'm trying to achieve by contributing to the docs. It's the points I stumbeled and spent time on so I try to make it easier for the next user. I tried to get a good coverage for all distros but I could only test on Ubuntu 26.04 (Kernel 7, BPF compiled but disabled by default).