12 12
JMCC

[Development] RK3399 media script

Recommended Posts

After installation of the media script, I experience very slow window dragging, i. e. moving a window is laggy and delayed - the mouse is faster and the window follows only very slowly. Do you experience the same?

 

"Enable display compositing" in Window Manager Tweaks is disabled as advised. Enabling "Hide the content of the window while moving" in Window Manager Advance settings at least speeds up moving windows a little bit, but not much.

 

Is this normal behavior or is there anything I can do to improve display performance?

Share this post


Link to post
Share on other sites

@mar0ni - yes this is normal behaviour i think as there is some inefficient memory copying happening between the gpu and the x server and there is no proper 2d acceleration (used for such window moves) around ... but i guess @JMCC can explain it in more detail ...

 

best wishes - hexdump

Share this post


Link to post
Share on other sites

Yes, it is a known issue with glamor, that instead of "accelerating" it slows down certain 2D operations. In the case of Rockchip's modified glamor to work with OpenGL-ES, It is even worse. It is the trade-off for having the possibility of an accelerated canvas for 3D, video playing, browser, etc.

 

However, in the mainline kernel and current X server, they are tweaking glamor to be much more efficient. Hopefully we can see a stable version soon.

Share this post


Link to post
Share on other sites

Thanks for clarification :thumbup:. I have read this in your first post's documentation and therefor chose "amsoc" during installation. It seems that armsoc is also not that snappy, but good to know that glamor is even worse. Let's hope mainline with a current X server arrives soon :)

Share this post


Link to post
Share on other sites

The script is not compatible with Armbian 20.02.0-rc1, as the Kodi uses `nodm`, but Armbian 20.02.0-rc1 uses lightdm. 

 

I have to modify the kodi-gbm-wrapper script to get it work. However, to `service lightdm stop` requiring *authentication*.  so it wont smoothly go to kodi. 

 

Last thing is the version - kodi  18rc4 - it doesn't have PVR addons, and it seems to be a known issue:

https://forum.kodi.tv/showthread.php?tid=336841

 

Update: Feb 7

After further search, I find the PVR addons for Ubuntu platform requires special installation

https://kodi.wiki/view/Ubuntu_PVR_add-ons

 

I tried `apt install kodi-pvr-iptvsimple`, but failed with dependency error: 

kodi-api-pvr (= 5.2.1)

 

I am looking for an update for the Kodi installation script :) 

Share this post


Link to post
Share on other sites
On 2/6/2020 at 10:48 AM, Lesca said:

The script is not compatible with Armbian 20.02.0-rc1, as the Kodi uses `nodm`, but Armbian 20.02.0-rc1 uses lightdm. 

 

I am looking for an update for the Kodi installation script :) 

Ditto. Friendly seem to have permanently broken the video acceleration even though Chromium reports it as there. They have also added lots of junk.

 

Armbian with this script is my preference.

 

Share this post


Link to post
Share on other sites
On 2/7/2020 at 9:10 AM, Secarius said:

Hi did anyone managed to use the eDP port on the Nano PC T4?

 

I couldn't get it to work at all. IMO, Friendly generally has sketchy hardware compatibility and only loosely adheres to specs and standards.

Share this post


Link to post
Share on other sites

Working on Wayland integration and would like a good starting point.

 

Please post which boards work and specific test results.

 

I'll keep the list updated.

 

 Board  Overall 

 GPU

 accelerated

 Desktop

 WebGL  VPU encode

 VPU decode

 4K@60

 10-bit

 HEVC

 OpenGL ES 3.2  OpenCL 1.2
 NanoPi TC4  ?        OK    
 NanoPi M4  ?        Some freezing    
 RockPro 64  OK

 OK

 X11

 OK

Chromium

 ?  OK  OK  OK
 Khadas EDGE  ?        OK    
 RockPi 4B   Install failed        ?    
 ROCK960C  ?        OK    
               
               
               

 

last updated: 2020-06-01

Share this post


Link to post
Share on other sites

hello, 

 

After install the media script i can not get gpu hw acceleration.

my current system is

orange pi 4 with rk3399

kernel 4.4.216-rk3399
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:    bionic

when I play video with mpv the cpu go  more of 150%.

how can I know that the orange pi has the hw acceleration enabled?

 

 

note > only one day hw acceleration was working but the next day stop working.

 

Thx!

 

Regards


 

 

Share this post


Link to post
Share on other sites

Maybe some update overwrote the config. Have you tried re-running the script?

Share this post


Link to post
Share on other sites

yes  I run the script again , today let me test in a clean armbian image.

 

 

6 hours ago, JMCC said:

Maybe some update overwrote the config. Have you tried re-running the script?

 

Share this post


Link to post
Share on other sites
14 hours ago, Memo said:

yes  I run the script again , today let me test in a clean armbian image.

 

 

 

I re running the script but the cpu % goes to high, after that  I run script again but  in  a new armbian image, and cpu goes to high to

 

how can I launch 

I use differents options to launch mpv (--hwdec=rkmpp --vo=drm). but always cpu goes to high

what I doing wrong?

Thx

Share this post


Link to post
Share on other sites
4 hours ago, Memo said:

I re running the script but the cpu % goes to high, after that  I run script again but  in  a new armbian image, and cpu goes to high to

 

how can I launch 

I use differents options to launch mpv (--hwdec=rkmpp --vo=drm). but always cpu goes to high

what I doing wrong?

Thx

 

Please post the output of the following commands:

$ uname -r
$ ls -l /dev/mali*
$ ls -l /dev/rk*
$ ls -l /dev/vpu*

 

Share this post


Link to post
Share on other sites
16 hours ago, JMCC said:

 

Please post the output of the following commands:


$ uname -r
$ ls -l /dev/mali*
$ ls -l /dev/rk*
$ ls -l /dev/vpu*

 

hello  here is the output 

 

 

4.4.213-rk3399

crw-rw---- 1 root video 10, 53 Jun 14 04:37 /dev/mali0

crw-rw---- 1 root video 243, 0 Jun 14 04:37 /dev/rkvdec

crw-rw---- 1 root video 244, 0 Jun 14 04:37 /dev/vpu_service
 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
12 12