Skip to content

Instantly share code, notes, and snippets.

@liorean
Last active March 9, 2021 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liorean/dc8595e38004817c67f295a92e6cc612 to your computer and use it in GitHub Desktop.
Save liorean/dc8595e38004817c67f295a92e6cc612 to your computer and use it in GitHub Desktop.
Hardware accelerate RPi4 Ubuntu Mate 64-bit video

Raspberry Pi4 with Ubuntu MATE

Install dependencies

$ sudo apt update
$ sudo apt dist-upgrade
$ sudo apt install libgl2-mesa libgl2-mesa-dev xorg-dev

Configure

$ sudo nano /boot/firmware/config.txt
max_framebuffers=2
dtoverlay=vc4-fkms-v3d
#If that doesn't work, try:
#dtoverlay=vc4-kms-v3d
#dtoverlay=vc4-kms-v3d-pi4
gpu-mem=128
hdmi_enable_4kp60

Reboot and check

$ cat /proc/device-tree/{soc/firmwarekms@7e600000,v3dbus/v3d@7ec04000}/status
okayokay

Firefox

Check if Compositing is Basic in about:support.

In about:config set

layers.acceleration.force-enabled=true

Check that Compositing is now OpenGL in about:support.

Chromium

Check chrome://gpu

Enable Override software rendering list in chrome://flags

Check chrome://gpu

VLC

Change Output to OpenGL video output in Tools : Preferences : Video

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