Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Chromium Hardware Acceleration i.MX6 Vivante
#!/bin/sh
if [ "${1}" == "forever" ]; then
while sleep 1; do "${0}"; done
exit 0
fi
export DISPLAY=:0
# url="http://jsfiddle.net/gionaf/Ugc5g/embedded/result/"
url="https://pezzato.net"
# url="https://jayweeks.com/medusae/"
# url="https://codepen.io/eltonkamami/embed/ECrKd?height=265&theme-id=0&default-tab=result&embed-version=2"
# --enable-native-gpu-memory-buffers \
# --enable-zero-copy \
# --gpu-rasterization-msaa-sample-count=0 \
# --canvas-msaa-sample-count \
# --disable-gpu-vsync \
# --disable-gpu-sandbox \
# --enable-hardware-overlays \
# --num-raster-threads=1 \
# --disable-2d-canvas-clip-aa \
# --disable-2d-canvas-image-chromium \
# --start-fullscreen \
rm -rf /home/root/.chromium
/usr/bin/chromium/chrome \
--enable-gpu \
--use-gl=egl \
--gpu-no-context-lost \
--user-data-dir=/home/root/.chromium/ \
--disable-setuid-sandbox \
--disable-infobars \
--disable-session-crashed-bubble \
--ignore-certificate-errors \
--ignore-gpu-blacklist \
--window-size=640,480 --kiosk --window-position=0,0 \
--no-first-run \
--disable-java --disable-plugins \
"${url}" \
2>&1 >/var/log/kiosk.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment