Skip to content

Commit 4e99b6e

Browse files
committed
ingest pixelflux for gpu detection, add X11 fallback on legacy systems
1 parent bbe28fa commit 4e99b6e

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ All application settings are passed via environment variables:
3636
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
3737
| DRI_NODE | Enable VAAPI stream encoding and use the specified device IE `/dev/dri/renderD128` |
3838
| DRINODE | Specify which GPU to use for DRI3 acceleration IE `/dev/dri/renderD129` |
39+
| 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` |
3940
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
4041
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
4142
| TITLE | The page title displayed on the web browser, default "Selkies" |

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ full_custom_readme: |
4040
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
4141
| DRI_NODE | Enable VAAPI stream encoding and use the specified device IE `/dev/dri/renderD128` |
4242
| DRINODE | Specify which GPU to use for DRI3 acceleration IE `/dev/dri/renderD129` |
43+
| 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` |
4344
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
4445
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
4546
| TITLE | The page title displayed on the web browser, default "Selkies" |

root/etc/s6-overlay/s6-rc.d/init-selkies-config/run

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/usr/bin/with-contenv bash
22

3+
# check if underlying system supports wayland binaries
4+
if ! grep -q avx2 /proc/cpuinfo; then
5+
echo "[ls.io-init] CPU does not support AVX2. Falling back to X11"
6+
printf "false" > /run/s6/container_environment/PIXELFLUX_WAYLAND
7+
PIXELFLUX_WAYLAND="false"
8+
fi
9+
310
# set paths for wayland or xorg
411
if [[ "${PIXELFLUX_WAYLAND}" == "true" ]];then
512
CONF_DIR="$HOME/.config/labwc"

0 commit comments

Comments
 (0)