Skip to content

Commit 64d8926

Browse files
Bot Updating Templated Files
1 parent 4ab0ed0 commit 64d8926

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ To use hardware acceleration in Wayland mode, we distinguish between the card us
106106
* `DRINODE`: The path to the GPU used for **Rendering** (EGL).
107107
* `DRI_NODE`: The path to the GPU used for **Encoding** (VAAPI/NVENC).
108108

109-
If both variables point to the same device, the container will automatically enable **Zero Copy** encoding, significantly reducing CPU usage and latency.
109+
If both variables point to the same device, the container will automatically enable **Zero Copy** encoding, significantly reducing CPU usage and latency. If they are set to different devices one will be used for **Rendering** and one for **Encoding** with a cpu readback.
110+
111+
You can also use the environment variable `AUTO_GPU=true`, with this set the first card detected in the container (IE `/dev/dri/renderD128`) will be used and configured for **Zero Copy**.
110112

111113
##### Intel & AMD (Open Source Drivers)
112114

@@ -124,13 +126,34 @@ For Intel and AMD GPUs.
124126
125127
##### Nvidia (Proprietary Drivers)
126128
129+
**Note: Nvidia support is currently considered experimental, driver changes can break it at any time.**
130+
127131
**Note: Nvidia support is not available for Alpine-based images.**
128132
133+
**Note: Nvidia frames have issues with hardware decoders in Chromium browsers you need to navigate to `chrome://flags/#disable-accelerated-video-decode` and toggle it to `Disabled` for smooth playback**
134+
129135
**Prerequisites:**
130136

131-
1. **Driver:** Proprietary drivers **580 or higher** are required.
132-
2. **Kernel Parameter:** Set `nvidia-drm.modeset=1` in your host bootloader (GRUB/systemd-boot).
133-
3. **Initialization:** On headless systems, run `nvidia-modprobe --modeset` on the host (once per boot) to initialize the card.
137+
1. **Driver:** Proprietary drivers **580 or higher** are required. **Crucially, you should install the driver using the `.run` file downloaded directly from the Nvidia website.**
138+
* **Unraid:** Use the production branch from the Nvidia Driver Plugin.
139+
140+
2. **Kernel Parameter:** You must set `nvidia-drm.modeset=1 nvidia_drm.fbdev=1` in your host bootloader.
141+
* **Standard Linux (GRUB):** Edit `/etc/default/grub` and add the parameter to your existing `GRUB_CMDLINE_LINUX_DEFAULT` line:
142+
143+
```text
144+
GRUB_CMDLINE_LINUX_DEFAULT="<other existing options> nvidia-drm.modeset=1 nvidia_drm.fbdev=1"
145+
```
146+
147+
Then apply the changes by running:
148+
149+
```bash
150+
sudo update-grub
151+
```
152+
153+
* **Unraid (Syslinux):** Edit the file `/boot/syslinux/syslinux.cfg` and add `nvidia-drm.modeset=1 nvidia_drm.fbdev=1` to the end of the `append` line for the Unraid OS boot entry.
154+
155+
3. **Hardware Initialization:** **On headless systems, the Nvidia video card requires a physical dummy plug inserted into the GPU so that DRM initializes properly.**
156+
134157
4. **Docker Runtime:** Configure the host docker daemon to use the Nvidia runtime:
135158

136159
```bash
@@ -159,6 +182,8 @@ services:
159182
capabilities: [compute,video,graphics,utility]
160183
```
161184

185+
* **Unraid:** Ensure you're properly setting the DRINODE/DRI_NODE and adding `--gpus all --runtime nvidia` to your extra parameters.
186+
162187
### SealSkin Compatibility
163188

164189
This container is compatible with [SealSkin](https://sealskin.app).
@@ -179,12 +204,14 @@ This container is based on [Docker Baseimage Selkies](https://github.com/linuxse
179204
| Variable | Description |
180205
| :----: | --- |
181206
| PIXELFLUX_WAYLAND | **Experimental** If set to true the container will initialize in Wayland mode running [Smithay](https://github.com/Smithay/smithay) and Labwc while enabling zero copy encoding with a GPU |
207+
| SELKIES_DESKTOP | If set to true and in Wayland mode, a simple panel will be initialized with labwc |
182208
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default `3000` |
183209
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default `3001` |
184210
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082 |
185211
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
186212
| DRI_NODE | **Encoding GPU**: Enable VAAPI/NVENC stream encoding and use the specified device IE `/dev/dri/renderD128` |
187213
| DRINODE | **Rendering GPU**: Specify which GPU to use for EGL/3D acceleration IE `/dev/dri/renderD129` |
214+
| AUTO_GPU | If set to true and in Wayland mode, we will automatically use the first GPU available for encoding and rendering IE `/dev/dri/renderD128` |
188215
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
189216
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
190217
| TITLE | The page title displayed on the web browser, default "Selkies" |

0 commit comments

Comments
 (0)