Skip to content

Commit 975864f

Browse files
committed
#25 add support for larger monitors than 8k
1 parent 021c2b6 commit 975864f

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

root/etc/s6-overlay/s6-rc.d/svc-xorg/run

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ fi
88
if [ ! -z ${DRINODE+x} ]; then
99
VFBCOMMAND="-vfbdevice ${DRINODE}"
1010
fi
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
1317
exec 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" \

0 commit comments

Comments
 (0)