View: 61897|Reply: 32

Ubuntu MATE 16.04 LTS - v0.1 beta - GPU & VPU drivers

[Copy link]

1

threads

4

posts

819

credits

Senior member

Rank: 4

credits
819
Published in 2016-5-10 05:48:39 | Show all floors |Read mode
Edited by javimotta98 at 2016-5-31 01:42

Ubuntu 16.04 LTS - MATE Desktop - Mali and vdpau drivers


Hello, this is the first image I've made (and also the first thread in this forum, hello all!) so please don't expect the best performance and keep in mind it may have some bugs After some time using it, I think it's stable enough for everyday use. I'm open to suggestions and advice on how to improve it

Because I wanted to try latest Ubuntu version on my Orange Pi and there wasn't any 16.04 distro here, I tried to modify the Loboris image build script to be able to create an Ubuntu xenial (16.04) image... And it worked! Here are the changes I made:


In create_image file:
trusty|utopic|precise|vivid|wily*) --> trusty|utopic|precise|vivid|wily|xenial*)

In install_mate_desktop file:
if [ ! "${_REL}"=jessie" ] && [ ! "${_REL}"=vivid" ] && [ ! "${_REL}"=wily" ]; then --> if [ ! "${_REL}"=jessie" ] && [ ! "${_REL}"=vivid" ] && [ ! "${_REL}"=wily" ] && [ ! "${_REL}"=xenial" ]; then

In install_xfce_desktop file:
if [ ! "${_REL}"=jessie" ] && [ ! "${_REL}"=vivid" ] && [ ! "${_REL}"=wily" ]; then --> if [ ! "${_REL}"=jessie" ] && [ ! "${_REL}"=vivid" ] && [ ! "${_REL}"=wily" ] && [ ! "${_REL}"=xenial" ]; then

In params.sh file:
distro=xenial


Features:
  • Based on Loboris image
  • English language
  • MATE desktop installed
  • GPU acceleration [Mali r4p0-00rel0 modules and binaries]
  • VPU acceleration [vdpau-sunxi]
  • glmark2-es2 installed for testing
  • mpv and SMPlayer configured for accelerated video playback with vdpau
  • CPU usage, frequency and temperature in top panel
  • Two 1080p h.264 videos for testing (in Videos folder)

Problems:

To do:
  • Improve performance
  • Switch to a hardware accelerated composite manager
  • Increase CMA memory (memory used for video decoding)
  • Install Kodi

User: orangepi
Password: orangepi

File info:
Compressed file: 1.09 GiB - MD5: f24cd0d26278fdf33876cbfa353d3835
Uncompressed file: 2.83 GiB - MD5: ccf746c7b4ceffb7cb37f35ac4ee861e

Downloads:
MEGA: https://mega.nz/#!yNNx0RZZ!A6O2kD_VtWWGlHhPR-acAk3vXWq3NSH_Wpc5zbR-mHs
Google Drive: https://docs.google.com/uc?export=download&id=0B595BwgvkDicXzZMdjRHMEc2MFE



0

threads

1

posts

21

credits

Novice

Rank: 1

credits
21
Published in 2016-6-8 10:29:57 | Show all floors
Youtube in browser not support, lags

0

threads

16

posts

70

credits

Registered member

Rank: 2

credits
70
Published in 2016-5-10 10:46:02 from mobile | Show all floors
have you consider the security root problem?  Thanks for your good work

1

threads

4

posts

819

credits

Senior member

Rank: 4

credits
819
 Author| Published in 2016-5-10 16:00:20 from mobile | Show all floors
simplyngo replied at 2016-5-10 10:46
have you consider the security root problem?  Thanks for your good work

Not in this version, but I'll try to include the patch in next release

2

threads

10

posts

54

credits

Registered member

Rank: 2

credits
54
Published in 2016-5-24 11:23:42 | Show all floors
Wow, great work!

How much effort would it take to get onto a 4.x kernel?

18

threads

303

posts

9600

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9600
Published in 2016-5-26 20:51:58 | Show all floors
@javimotta98  Bravo. Keep up the good work.

1

threads

4

posts

819

credits

Senior member

Rank: 4

credits
819
 Author| Published in 2016-5-30 22:23:22 | Show all floors
aegrotatio replied at 2016-5-24 11:23
Wow, great work!

How much effort would it take to get onto a 4.x kernel?

Thanks! I don't have enough knowledge to make the necessary patches to make the mainline Linux kernel work with our Orange Pi, although there are some people working on it. You can find more information here: https://linux-sunxi.org/Orange_Pi_PC#Mainline_kernel

1

threads

4

posts

819

credits

Senior member

Rank: 4

credits
819
 Author| Published in 2016-5-31 00:37:07 | Show all floors
Edited by javimotta98 at 2016-5-31 01:45

OK, I have good news! I've found the cause of low OpenGL ES performance. It's all because of the compositing window manager, the component that draws windows and their borders. The composite manager used in MATE desktop isn't compatible with OpenGL ES. Because of that, the composite manager is software-rendered, so all things that are shown on screen passes through this software-accelerated compositing manager, including all the frames generated by Mali GPU, causing a bottleneck. Disabling the composite manager results in a huge boost in OpenGL performance. For example, the 3D horse test from glmark2-es2 benchmark goes up from 44 FPS to 82 FPS and now it scores 77 points. This problem is also present in other distros, like Ubuntu MATE from melanrz. Some other distros, like Lubuntu 15.10 from the Orange Pi russian forum, don't suffer this problem because they use OpenGL ES compatible compositing window managers, like KWin. So, if you want the best 3D performance, just disable the composite manager in MATE Tweaks. There are some drawbacks though, like losing shadows in windows. I will probably switch to other compositing window manager in next release, maybe KWin. What do you think?
Apart from that, I haven't found any more performance-related problems or bugs so far. I think it's stable enough for everyday use. I will edit the first post to reflect that. In next version I'll also try to include Kodi. What else would you like to see in next release?

0

threads

1

posts

30

credits

Novice

Rank: 1

credits
30
Published in 2016-5-31 19:36:19 from mobile | Show all floors
Yes, i still looking for linux desktop with hw accelerated kodi. I will be wait for your distro.

1

threads

5

posts

55

credits

Registered member

Rank: 2

credits
55
Published in 2016-6-4 22:38:32 | Show all floors
Orange pi one palying quake3 on lubuntu 16.04.
http://www.iot-dev.net/full.php?ar=30



You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list