Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
1234Next
Return to list New
View: 14813|Reply: 31

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

[Copy link]

1

Threads

4

Posts

312

Credits

Intermediate member

Rank: 3Rank: 3

Credits
312
Post time 2016-5-10 05:48:39 | Show all posts |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

16

Posts

70

Credits

Registered member

Rank: 2

Credits
70
Post time 2016-5-10 10:46:02 From the mobile phone | Show all posts
have you consider the security root problem?  Thanks for your good work

1

Threads

4

Posts

312

Credits

Intermediate member

Rank: 3Rank: 3

Credits
312
 Author| Post time 2016-5-10 16:00:20 From the mobile phone | Show all posts
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
Post time 2016-5-24 11:23:42 | Show all posts
Wow, great work!

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

18

Threads

303

Posts

6030

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
6030
Post time 2016-5-26 20:51:58 | Show all posts
@javimotta98  Bravo. Keep up the good work.

1

Threads

4

Posts

312

Credits

Intermediate member

Rank: 3Rank: 3

Credits
312
 Author| Post time 2016-5-30 22:23:22 | Show all posts
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

312

Credits

Intermediate member

Rank: 3Rank: 3

Credits
312
 Author| Post time 2016-5-31 00:37:07 | Show all posts
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
Post time 2016-5-31 19:36:19 From the mobile phone | Show all posts
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
Post time 2016-6-4 22:38:32 | Show all posts
Orange pi one palying quake3 on lubuntu 16.04.
http://www.iot-dev.net/full.php?ar=30



0

Threads

1

Posts

21

Credits

Novice

Rank: 1

Credits
21
Post time 2016-6-8 10:29:57 | Show all posts
Youtube in browser not support, lags
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2017-5-29 09:49 GMT+8 , Processed in 0.038662 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list