Xorg settings recommmended for ROC-RK3328-CC

Hi @librecomputer

I am using Devuan with your kernel (and APT settings) and so far everything is going great!

uname -a
Linux RK3328 6.1.54-10001-gd517e36a604d #1 SMP PREEMPT_DYNAMIC Fri Sep 22 22:11:56 EDT 2023 aarch64 GNU/Linux

I am using a stateless Xorg config file but I wonder if you can recommend any Xorg settings to squeeze more performance from this board.

For what I can see, it looks like you compiled the GPU driver as module into the kernel:

dmesg | grep gpu
[sudo] password for freezr: 
[   46.739362] lima ff300000.gpu: Looking up mali-supply from device tree
[   46.739955] lima ff300000.gpu: gp - mali450 version major 0 minor 0
[   46.740048] lima ff300000.gpu: pp0 - mali450 version major 0 minor 0
[   46.740124] lima ff300000.gpu: pp1 - mali450 version major 0 minor 0
[   46.740178] lima ff300000.gpu: l2 cache 8K, 4-way, 64byte cache line, 128bit external bus
[   46.740201] lima ff300000.gpu: l2 cache 64K, 4-way, 64byte cache line, 128bit external bus
[   46.746914] lima ff300000.gpu: bus rate = 163840000
[   46.746952] lima ff300000.gpu: mod rate = 163840000
[   46.747028] lima ff300000.gpu: Looking up mali-supply from device tree
[   46.747108] vdd_logic: could not add device link ff300000.gpu: -EEXIST
[   46.751147] [drm] Initialized lima 1.1.0 20191231 for ff300000.gpu on minor 1
freezr ) sudo dmesg | grep -i gpu
[   46.739362] lima ff300000.gpu: Looking up mali-supply from device tree
[   46.739955] lima ff300000.gpu: gp - mali450 version major 0 minor 0
[   46.740048] lima ff300000.gpu: pp0 - mali450 version major 0 minor 0
[   46.740124] lima ff300000.gpu: pp1 - mali450 version major 0 minor 0
[   46.740178] lima ff300000.gpu: l2 cache 8K, 4-way, 64byte cache line, 128bit external bus
[   46.740201] lima ff300000.gpu: l2 cache 64K, 4-way, 64byte cache line, 128bit external bus
[   46.746914] lima ff300000.gpu: bus rate = 163840000
[   46.746952] lima ff300000.gpu: mod rate = 163840000
[   46.747028] lima ff300000.gpu: Looking up mali-supply from device tree
[   46.747108] vdd_logic: could not add device link ff300000.gpu: -EEXIST
[   46.751147] [drm] Initialized lima 1.1.0 20191231 for ff300000.gpu on minor 1

Thanks in advance! :pray:

We have preconfigured settings on our images in /usr/share/X11. It is simply matching the driver name and is very basic.

1 Like

Oh I see, I have to go on your repo to get that file, meanwhile I found this on the Armbian forum, what do you think:

Section "Monitor"
        Identifier              "Monitor0"
        Option                  "DPMS" "false"
EndSection
Section "ServerFlags"
        Option                  "BlankTime" "0"
        Option                  "StandbyTime" "0"
        Option                  "SuspendTime" "0"
        Option                  "OffTime" "0"
EndSection
Section "ServerFlags"
        Option  "AutoAddGPU" "off"
        Option "Debug" "dmabuf_capable"
EndSection
Section "Device"
         Identifier "Lima"
         Driver "modesetting"
         Option "AccelMethod" "glamor"
EndSection
Section "OutputClass"
        Identifier "Lima"
        MatchDriver "rockchip"
        Driver "modesetting"
        Option "PrimaryGPU" "true"
EndSection

Thanks! :pray:

I didn’t notice any particular improvement, perhaps because I am connected through a VNC connection and Tightvnc doesn’t provide any acceleration… :thinking:

VNC is all software encoding of a virtual display. You can reduce the compression level to increase performance.