Hardware acceleration on PBP
#1
Hi

I'm wondering whether it is normal that e.g. this video does not play fluently on the PBP. I've checked and all the hardware acceleration seems to be working. Can anyone confirm whether this is normal or if this video can be played on 1080p 60fps?
#2
(12-21-2019, 12:14 PM)brent.thierens Wrote: Hi

I'm wondering whether it is normal that e.g. this video does not play fluently on the PBP. I've checked and all the hardware acceleration seems to be working. Can anyone confirm whether this is normal or if this video can be played on 1080p 60fps?

I'm playing that same video at 1080p60HD in fullscreen with the stock Debian build and it looks fine to me.
#3
run glxgears please - I've had a situation when for some reason the GPU blob stopped working (not sure why).
If it runs, then good, if you just get errors - I'll walk you though what you should do.
You can find me on IRC, Discord and Twitter


#4
Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning: I'm trying to play it in Chromium on Ayufan's Ubuntu build.
#5
(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
You can find me on IRC, Discord and Twitter


#6
For Video aka H264 or others
VPU is responsible for doing this.
GPU may resize the video

so glxgears is worthless

If you are running 5.4 kernel from the Manjaro project this is enabled
Code:
$ zcat /proc/config.gz | grep HANTRO
CONFIG_VIDEO_HANTRO=m
CONFIG_VIDEO_HANTRO_ROCKCHIP=y

HANTRO is the IP supplier for the hardware decoder/encoder
older kernels from rockchip may have other name(s).

ffmpeg needs support for this
AFAIR
Only MPEG4 is currently enabled

The whole whole videostream encoding is currently in staging
#7
(12-21-2019, 06:43 PM)Luke Wrote:
(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks Smile
Thanks!

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
#8
(12-22-2019, 08:01 AM)e-minguez Wrote:
(12-21-2019, 06:43 PM)Luke Wrote:
(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks Smile
Thanks!

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
Ask, and you shall receive;

Wiki - Pinebook Pro - Software tunining guide

As usual, feel free to correct, improve or comment, (good or politely bad).

Right now it only has Linux kernel tuning for the VPU, that @ElektromAn, showed us above. When I see a kernel option specific to us, I'll try and remember to add it to the list.


As for Chromium and other software tuning, my thought is to make that a separate section on the Wiki. That concept is not yet implemented.

Edit: Made a separate section in the Wiki for Software tunning.
--
Arwen Evenstar
Princess of Rivendale
#9
(12-22-2019, 12:57 PM)Arwen Wrote:
(12-22-2019, 08:01 AM)e-minguez Wrote:
(12-21-2019, 06:43 PM)Luke Wrote:
(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks Smile
Thanks!

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
Ask, and you shall receive;

Wiki - Pinebook Pro - Software tunining guide

As usual, feel free to correct, improve or comment, (good or politely bad).

When I see a kernel option specific to us, I'll try and remember to add it to the list.


As for Chromium and other software tuning, my thought is to make that a separate section on the Wiki. That concept is not yet implemented.
Thank you so much!

I like the idea of adding content to the wiki so it is centralized somewhere and the community can collaborate.

Enviado desde mi ONEPLUS A5010 mediante Tapatalk

Moderator edit: Fixed link, I changed the Wiki link & name, to better reflect it's usage. (Just in case someone clinks on this post's link.)
#10
(12-22-2019, 12:57 PM)Arwen Wrote: Ask, and you shall receive;

Wiki - Pinebook Pro - Software tunining guide

As usual, feel free to correct, improve or comment, (good or politely bad).

Right now it only has Linux kernel tuning for the VPU, that @ElektromAn, showed us above. When I see a kernel option specific to us, I'll try and remember to add it to the list.
I use Manjaro ARM
because it`s suits my needs of new/fresh HEAD builds
Personally I use Sabayon (some Gentoo stlye system)
Anyway
Ayufans Ubuntu uses rkmpv with hardware VPU is a non standard way (missing API)

Debian may support rkmkv with ayufan`s kernel, please check library versions here.
If you want to use VPU acceleration support with other application(s) you have to wait
The whole API is currently not stable, there are other VPU accelerations IP available or in use.
And because of this the HANTRO driver is in staging, you can read this in Kconfig or TODO.
Chromium uses non standard hacks, which are really hacks
you are here on your own ...
As I said currently mp4 is supported to decode for video playback
h265 and vp9 are also on the list.
Please read here
https://github.com/torvalds/linux/tree/m...dia/hantro
I may possible to use some NEON aka MMX style optimizations
One side note :
All hardware vendors are bad in to do upstream work for their hardware.
And some $wireless-usb driver will not go into staging because of this


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro update broke hardware video acceleration with mpv myself600 2 1,340 01-25-2023, 09:12 AM
Last Post: myself600
  Very slow glamor 2D acceleration hjalfi 3 4,054 09-06-2021, 12:54 PM
Last Post: jbrock
  [LibreOffice & Gimp] ARM support: no hardware acceleration on [Manjaro] Pinebook Pro regivanx 0 1,840 06-15-2021, 04:04 AM
Last Post: regivanx
Lightbulb Hardware video acceleration in Chromium on Manjaro siemsenit 3 4,311 06-01-2021, 09:51 AM
Last Post: siemsenit
  Manjaro XFCE MPV Hardware Acceleration p3pp3r 2 5,438 10-14-2020, 08:52 PM
Last Post: p3pp3r
  HW Acceleration for 2d/3d on pinebook pro ljones 6 9,033 09-19-2020, 09:54 AM
Last Post: xmixahlx
  mainline kernel hardware acceleration xmixahlx 33 52,906 06-11-2020, 10:41 AM
Last Post: xmixahlx

Forum Jump:


Users browsing this thread: 1 Guest(s)