MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.9k stars 499 forks source link

orange pi 5 plus, console is bigger than the screen #7214

Open artifex69 opened 2 months ago

artifex69 commented 2 months ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Expected behaviour

Actual behaviour

the console is bigger than the screen, the last lines are not visible at the bottom of the screen

Extra details

artifex69 commented 2 months ago

The problem seems to be the driver. Monitor resolution is detected correctly but the monitor is set to full hd when it should be 1920x1200

fbset -i

mode "1920x1200"
    geometry 1920 1200 1920 1200 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : rockchipdrmfb
    Address     : 0
    Size        : 9216000
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 7680
    Accelerator : No

setting the console resolution to 1080 (´fbset-yres 1080´)will make it fit the monitor but with image stretching.

artifex69 commented 1 month ago

it seems that the kernel and drivers are not adequate, besides failing graphics NFS does not work either, the module isn't compiled too. As a workaround I installed Joshua-Riek kernel and modules and https://launchpad.net/~liujianfeng1994 panfork mesa, both compiled with dietpi bookworm. Now all I've tried is working, GPU acceleration for firefox and chromium, jellyfin transcoding etc

So, for me that issue is resolved

MichaIng commented 3 weeks ago

Panfrost and NFS kernel divers should both be there. But maybe some X11 config is needed to enable it for X. Though JianFeng also has own Chromium etc packages, which you use I guess?

artifex69 commented 3 weeks ago

Hi MichaIng, sorry for the delay, I was doing some tests this days. You are right, NFS driver is there, it was another kernel that lacks the driver, Maybe the orange pi official ones. The chromium package is the dietpi one. I cannot get to work the GPU acceleration nor in Chromiun neither firefox with panfrost. chromium chrome://gpu and firefox about:support shows no HW render.

However, I get the HW acceleration by changing the following packages to the JianFeng panfork version: libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0 and installing mali-g610-firmware.

Chromium need to be started without --use-gl=egl flag in the file /etc/chromium.d/dietpi file though.

there is still de problem with the screen resolution that it's not working with some of resolutions and shows the weird behaviour on console