File tree Expand file tree Collapse file tree
root/etc/s6-overlay/s6-rc.d/svc-xorg Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ All application settings are passed via environment variables:
4141| DISABLE_ZINK | Do not set the Zink environment variables if a video card is detected (userspace applications will use CPU rendering) |
4242| WATERMARK_PNG | Full path inside the container to a watermark png IE ` /usr/share/selkies/www/icon.png ` |
4343| WATERMARK_LOCATION | Where to paint the image over the stream integer options below |
44+ | MAX_RES | Pass a larger maximum resolution for the container default is 8k ` 7680x4320 ` |
4445
4546* 1 - Top Left
4647* 2 - Top Right
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ full_custom_readme: |
4545 | DISABLE_ZINK | Do not set the Zink environment variables if a video card is detected (userspace applications will use CPU rendering) |
4646 | WATERMARK_PNG | Full path inside the container to a watermark png IE `/usr/share/selkies/www/icon.png` |
4747 | WATERMARK_LOCATION | Where to paint the image over the stream integer options below |
48+ | MAX_RES | Pass a larger maximum resolution for the container default is 8k `7680x4320` |
4849
4950 * 1 - Top Left
5051 * 2 - Top Right
Original file line number Diff line number Diff line change 88if [ ! -z ${DRINODE+x} ]; then
99 VFBCOMMAND="-vfbdevice ${DRINODE}"
1010fi
11+ DEFAULT_RES="7680x4320"
12+ if [ ! -z ${MAX_RES+x} ]; then
13+ DEFAULT_RES="${MAX_RES}"
14+ fi
1115
1216# Run Xvfb server with required extensions
1317exec s6-setuidgid abc \
1418 /usr/bin/Xvfb \
1519 "${DISPLAY}" \
16- -screen 0 "7680x4320x ${DISPLAY_CDEPTH}" \
20+ -screen 0 "${DEFAULT_RES}x ${DISPLAY_CDEPTH}" \
1721 -dpi "${DISPLAY_DPI}" \
1822 +extension "COMPOSITE" \
1923 +extension "DAMAGE" \
You can’t perform that action at this time.
0 commit comments