HW Acceleration for 2d/3d on pinebook pro
Hello all!

I've literally just received my pinebook pro. Fortunatly most things seem to be working - the sound is definately working ok and I'm not experiencing any wifi issues; as for bluetooth however I haven't as yet tried it.

The first thing I did was to update the firmware for the keyboard and touchpad and that went without issue as well. Then it was a case of running the /usr/bin/mrfixit_update.sh . That completed ok and then it was just a case of performing a normal apt update/apt upgrade as per normal debian.

The only problem I seem to be having is with any sort of acceleration on the laptop itself. To give an example I can open (let's say) a terminal window. Moving the window seems to get a little slower if the window is large but the problem is largely with resizing windows - the pinebook pro is struggling to resize windows. Also I've noticed that if I click the menu button (bottom left) there's a big black square that appears just before the menu itself appears.

Is the pinebook not using any sort of xorg acceleration (2d) at all?

Firefox (which seems to crash a lot) also seems to be struggling and just loading a webpage exhibits similar issues; scrolling through a webpage seems to be painfully slow.

I also decided to try to check if 3d (GPU) acceleration is working. Glxgears gives me the result of 295 frames in 5.0 seconds = 59.532 fps in a window although a game like "torcs" dosen't seem to be running quite right - it is running at around 1-2fps.

One thing I did notice is I have the following in /etc/X11/xorg.conf;

Section "device"
 Identifier "Rockchip Graphics"
 Driver "modesetting"
 Option "AccelMethod" "glamor"
 Option "DRI" "2"
 Option "Dri2Vsync" "true"
 Option "TripleBuffer" "true"
Section "Screen"
 Identifier "Default Screen"
 Subsection "Display"
 Depth 24
 Modes "1920x1080" "1280x1024" "1024x768" "800x600"

So I see that the device is using modesetting/glamor but presumably it isn't quite working 100% since there seems to be a lack of any 2d (xorg) or 3d (GPU) acceleration?

Update: I have a couple of errors in /var/log/Xorg.0.log which look concering too;

$ cat /var/log/Xorg.0/log | grep error

[4.651] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/rockchip_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/rockchip_dri.so : cannot openm shared object file : No such file or directory)
[4.771] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so failed (/usr/lib/arm-gnueabihf/dri/swrast_dri.so: undefined symbol: _glapi_ tls Dispatch)

Update: I tried to run a different OS from microsd (in my case I chose q4os) -- it seemed to be a touch slower with moving windows but resizing was much better and it did not have the sluggishness surrounding the menu button.

Is this all down to drivers and kernel verison?

... currently not tested from my side

need to figure out which driver I need to compile and which kernel module I need

but if @tsys work/config for manjaro arm is correct

[elektroman@PinebookPro-1 ~]$ lsmod | grep panfrost
panfrost               53248  0
gpu_sched              28672  1 panfrost
drm                   532480  9 gpu_sched,drm_kms_helper,dw_mipi_dsi,panel_simple,rockchipdrm,dw_hdmi,panfrost,analogix_dp
PANFROST is right.

maybe I must check mesa-git ...
Is there an update on all of this at all? After updating I still see the same errors and still no accelerated X .....:-(

@ljones , I will try and fail spectacularly to explain it short:
- mrfixit's Debian image is using 4.4 kernel with the Mali blobs. gl4es is enabled by default there which gets you to accelerated 2d/3d for games - think of it as translation from desktop GL to GLES2 commands. Lots of various work has been done to get better performance on the Mate build (I think you will be better with Chromium with this Debian build btw).

- To use Panfrost, you will need a distro running the latest kernels (5+) -> more recent kernel the better. Think Manjaro, Arch Linux ARM, postmarketOS, Gentoo, the unofficial Debian installer, Fedora, OpenSUSE, etc (sorry for not listing all upstream distros, great work all!). On top of that you will need to be running recent Mesa version - at the very least Mesa 19.2. Of course newer Mesa version is better.

Since you asked for accelerated X environment, there can be caveats. XFCE on Manjaro is defaulting to Xrender as it's compositor doesn't play well with Panfrost but it's still plenty fast (this could've changed since I last checked it a few months ago). KDE Manjaro on the other hand just needs to have the compositor enabled and you will enjoy very fast desktop experience. Wayland DEs play a lot better with hardware acceleration but may not be your cup of tea.

The great news! Pinebook Pro is near feature completeness in the latest kernels - this is getting close to "plug-and-play" territory for all distros. It's getting really close to the point where no special distro images will be needed

Lima is targeting the Allwinner SOCs with older Mali 400 series GPUs. Panfrost is the open source driver for the Mali GPU inside the Rockchip SOC found in the Pinebook Pro or newer

Device: Pinebook Pro 128GB No:246 / MainOS: Manjaro ARM
Godot and Flutter - creating something can be fun with the right tools!
which OS are you using? manjaro or debian?
(06-19-2020, 10:02 AM)xmixahlx Wrote: which OS are you using? manjaro or debian?
Apologies for reviving an old thread and post!

Well right now I'm retrying things. Confession time -- I've hardly touched my pinebook pro since posting my last message (above) on here. Not a fan of sloooowly resizing or moving windows. Right now I'm using the debian installer although it appears this version of debian dosen't seem to support panfrost at all. 3D works - a little - but it is still down at around 7-9fps for example in torcs. I did once try armbian a while back but I've not tried it again recently; last time I did there was no 2d or 3d acceleration at all!

I did see the one made by "mrfixit2001" here but that looks pretty much out of date - it dates from the end of 2019.

One thing to note which was intresting - I tried installing full KDE plasma on debian (using the debian installer). I also enabled - as a test - "wobbly windows". I do see that this version of debian though has a similar issue with 3D as does the Raspberry pi 4. Example (this is what I tried); install full kde plasma and enable wobbly windows and then move a window around. The window will sometimes move smoothly but then become jerky but then go back to smooth again. The exact same issue exists on the pi4 I've found btw.

Did anyone manage to get the 2D (panfrost/xorg) acceleration drivers working in debian at all?

so the problem is blazing your own trail here unnecessarily.

mrfixit2001 desktop
unofficial debian installer

these all work well with gpu and vpu hwaccel.

manjaro and the unnofficial debian installer use kernel 5.x which uses panfrost.

you cant install random things made for other distributions. that isnt how linux works.

easiest way to do this is just use manjaro out of the box.

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Pinebook Pro/Mobian/XFCE4] can fix touch or screen in greeter not both SynthGal 0 175 05-31-2024, 09:42 AM
Last Post: SynthGal
  Debian on Pinebook Pro u974615 7 1,975 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 2,746 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 2,621 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 2,803 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 94,355 12-08-2023, 11:25 PM
Last Post: tllim
  Boot Order in Pinebook Pro food 8 1,906 11-23-2023, 07:37 AM
Last Post: KC9UDX
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 6,219 08-31-2023, 04:20 PM
Last Post: TRS-80
  Would a Pinebook Pro be good for a Linux newbie? cassado10 6 1,946 08-08-2023, 04:58 AM
Last Post: moobythegoldensock
  Install deepin OS on pinebook pro wangyukunshan 4 2,017 08-07-2023, 01:12 PM
Last Post: myself600

Forum Jump:

Users browsing this thread: 1 Guest(s)