Trying making opengl beta driver working ubuntu mate!

Hi,

There is a new release of raspbian with a beta opengl driver today :

Do you think is possible to have it under mate too ?

Thank you

Aworan

1 Like

I try to make working opengl driver under ubuntu mate, I am close but it don’t work.
For that I read the source code of the raspi-config utility in raspbian.

What I did :

Upgrade kernel version, open a terminal then :

sudo rpi-update

Edit file /boot/config.txt :

sudo pluma /boot/config.txt

Add the line :

dtoverlay=vc4-kms-v3d

Then we need to erase the xorg.conf, but it is better to rename it, if we want to go back :

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old

Install xcompmgr :

sudo apt-get update
sudo apt-get install xcompmgr

Add a file :

sudo pluma /etc/xdg/autostart/xcompmgr.desktop

And put that content :

[Desktop Entry]
Type=Application
Name=xcompmgr
Comment=Start simple compositor
NoDisplay=true
Exec=xcompmgr -a

Save & Quit.

reboot the pi, that is done !

If you want to go back, remove the added line in config.txt, rename xorg.conf.old to xorg.conf, delete /etc/xdg/autostart/xcompmgr.desktop and reboot.

If you want to test the driver :

sudo apt-get install mesa-utils
vblank_mode=0 glxgears

I saw the display change and it’s buggy like in raspbian (I have an old 4/3 monitor) but the hardware acceleration don’t work.

If I try glxgears it’s sloooow ! ~23 fps and it is ~500 fps in raspbian.

I think we need to compile xserver with some options for the driver ?

Anyone have some ideas about what is missing ?

Aworan

I second this!
I would love to give it a shot on Mate. I prefer this OS over raspbian.

btw, did you make sure your libgl1-mesa-dri was updated?
I believe the repo from which the mate version comes from differs from raspbian.

Have you tried changing some of your sources to that of raspbian and see if it updates libgl1-mesa-dri?

I just try it, it works :slight_smile:
I am doing some tests
I ill publish a tutorial in one hour :slight_smile:

Awesome!!! :smiley:

I’m looking forward to your tutorial.
I bet posting it on /r/raspberry_pi would be advantageous too, will get even more attention.

Do you have a clean install of ubuntu mate ?
Can you do :

dpkg --get-selections |grep mesa
and give me the result ?

I do have a clean install. Only installed a handful of other packages, nothing to do with GPU IIRC.

Here’s the output of your commands:
libegl1-mesa:armhf install libegl1-mesa-drivers:armhf install libgl1-mesa-dri:armhf install libgl1-mesa-glx:armhf install libglapi-mesa:armhf install libgles1-mesa:armhf install libgles2-mesa:armhf install libglu1-mesa:armhf install libwayland-egl1-mesa:armhf install mesa-utils install

Ok !
I just post my tutorial :

Give me feedback !

What is it ? reddit ?
I don’t know how it works :slight_smile:

Wow! Nice tutorial! I was gonna suggest adding a way to reverse the changes, but you did that already!

Perhaps add your suggested openGL games?

Also, do I have to do anything to chromium? or will it work hw-accelerated automatically?

I also posted it on reddit then.
Here’s the link in case you want to monitor it there too:

Thank you :slight_smile: I try to write clean tutorial :wink:

I didb’t have time to try some.
It will be great to make some tests with tuxracer and openarena !!!
I will try next weekend !

Yes is works out the box try :
chrome://gpu
You will see a lot of things are hardware accelerated !