Skip to content

Instantly share code, notes, and snippets.

@alepez
Created November 16, 2017 14:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alepez/5e8403fd63a971bac43aa3cff4bd8dee to your computer and use it in GitHub Desktop.
Save alepez/5e8403fd63a971bac43aa3cff4bd8dee to your computer and use it in GitHub Desktop.
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
@qrpike
Copy link

qrpike commented Mar 16, 2018

What linux packages are required for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment