Hi @kevin.tx
Thank you very much! Disabling the rasterization resolves the problem.
For using it in a docker-compose.yaml
I managed to find a default-flags
file for chromium. So I copied that file to /etc/chromium.d/default-flags
, changed the lines for GPU rasterization from
# Enable GPU rasterization.
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-gpu-rasterization"
to:
# Disable GPU rasterization.
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-gpu-rasterization"
to disable the GPU rasterization by default. The complete file now looks as follows:
# A set of command line flags that we want to set by default.
# Do not hide any extensions in the about:extensions dialog
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --show-component-extension-options"
# Disable GPU rasterization.
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-gpu-rasterization"
# Don't display any warnings about not being the default browser
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-default-browser-check"
# Disable pinging
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-pings"
# Disable the builtin media router (bug #833477)
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --media-router=0"
And finally I mounted this file into the chromium container:
[...]
Kiosk:
container_name: Kiosk
image: torizon/arm64v8-chromium:2.7
platform: linux/arm64
restart: always
command: http://localhost:5000
depends_on:
Weston:
condition: service_started
MyApp:
condition: service_healthy
device_cgroup_rules:
- c 226:* rmw
- c 199:* rmw
environment:
MACHINE: null
security_opt:
- seccomp:unconfined
shm_size: 256mb
volumes:
- /tmp:/tmp
- /var/run/dbus:/var/run/dbus
- /dev/dri:/dev/dri
- /dev/galcore:/dev/galcore
- /etc/chromium.d/default-flags:/etc/chromium.d/default-flags
network_mode: host
This is the way. Well, at least for us. I am always open for a better and more elegant solution.
Best regards