This is a cache of https://discuss.96boards.org/t/help-wanted-for-setting-mali-hardware-acceleration-up-with-bionic-stretch-arm64-kodi/7595. It is a snapshot of the page at 2024-11-01T10:50:45.411+0000.
Help wanted for setting MALI hardware acceleration up with bionic / stretch ARM64 (Kodi) - Rock960 - 96Boards Forum

Help wanted for setting MALI hardware acceleration up with bionic / stretch ARM64 (Kodi)

I would like to know how to setup hardware video acceleration properly for bionic and stretch ARM64. MALI drivers are installed BUT when launching Kodi through a systemd service using dbus-launch (X11 minimal installation), my SBC is reaching 140°F and around 75% of CPU load just when it enters the APP… if i play a video, it is worse and playback is stuttering even with SD content ! I have installed armsoc package too…

I think that this situation is caused by an improper setup on my system, i do not know how to enable hardware MALI acceleration properly !

Anyway it is working almost fine OOTB with stretch ARMHF :+1:

You will find my xorg log file below and thanks for any help !

X.Org X Server 1.19.6
Release Date: 2017-12-20
[    18.904] X Protocol Version 11, Revision 0
[    18.905] Build Operating System: Linux 4.4.0-138-generic aarch64 ubuntu
[    18.905] Current Operating System: Linux UT-VRK 4.4.154 #5 SMP Sat Sep 29 14:23:12 CST 2018 aarch64
[    18.906] Kernel command line: earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 console=ttyFIQ0 rw root=PARTUUID=614e0000-0000 rootfstype=ext4 rootwait earlyprintk console=ttyFIQ0,1500000n8 rw root=PARTUUID=b921b045-1d rootfstype=ext4 init=/sbin/init rootwait
[    18.907] Build Date: 25 October 2018  04:10:37PM
[    18.908] xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support) 
[    18.908] Current version of pixman: 0.34.0
[    18.909] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    18.909] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    18.912] (==) Log file: "/var/lib/kodi/.local/share/xorg/Xorg.0.log", Time: Sat Mar 16 20:18:08 2019
[    18.918] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    18.918] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    18.923] (==) No Layout section.  Using the first Screen section.
[    18.923] (==) No screen section available. Using defaults.
[    18.923] (**) |-->Screen "Default Screen Section" (0)
[    18.923] (**) |   |-->Monitor "<default monitor>"
[    18.929] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    18.930] (**) |   |-->Device "Rockchip Graphics"
[    18.930] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    18.930] (==) Automatically adding devices
[    18.930] (==) Automatically enabling devices
[    18.930] (==) Automatically adding GPU devices
[    18.930] (==) Automatically binding GPU devices
[    18.930] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    18.933] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    18.933] 	Entry deleted from font path.
[    18.933] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    18.933] 	Entry deleted from font path.
[    18.933] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    18.933] 	Entry deleted from font path.
[    18.942] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    18.942] 	Entry deleted from font path.
[    18.942] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    18.942] 	Entry deleted from font path.
[    18.942] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[    18.942] (==) ModulePath set to "/usr/lib/xorg/modules"
[    18.942] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    18.943] (II) Loader magic: 0x55777f5010
[    18.943] (II) Module ABI versions:
[    18.943] 	X.Org ANSI C Emulation: 0.4
[    18.943] 	X.Org Video Driver: 23.0
[    18.944] 	X.Org XInput driver : 24.1
[    18.944] 	X.Org Server Extension : 10.0
[    18.947] (++) using VT number 1

[    18.947] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    18.961] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[    18.965] (II) xfree86: Adding drm device (/dev/dri/card0)
[    18.971] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[    18.972] (II) no primary bus or device found
[    18.972] 	falling back to /sys/devices/platform/display-subsystem/drm/card0
[    18.972] (II) LoadModule: "glx"
[    18.979] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    19.078] (II) Module glx: vendor="X.Org Foundation"
[    19.078] 	compiled for 1.19.6, module version = 1.0.0
[    19.078] 	ABI class: X.Org Server Extension, version 10.0
[    19.078] (II) LoadModule: "modesetting"
[    19.078] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    19.083] (II) Module modesetting: vendor="X.Org Foundation"
[    19.083] 	compiled for 1.19.6, module version = 1.19.6
[    19.083] 	Module class: X.Org Video Driver
[    19.083] 	ABI class: X.Org Video Driver, version 23.0
[    19.083] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    19.083] (II) modeset(0): using drv /dev/dri/card0
[    19.083] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    19.084] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    19.084] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    19.084] (**) modeset(0): Option "AccelMethod" "glamor"
[    19.084] (==) modeset(0): RGB weight 888
[    19.084] (==) modeset(0): Default visual is TrueColor
[    19.084] (II) Loading sub module "glamoregl"
[    19.084] (II) LoadModule: "glamoregl"
[    19.085] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    19.139] (II) Module glamoregl: vendor="X.Org Foundation"
[    19.139] 	compiled for 1.19.6, module version = 1.0.0
[    19.139] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    19.139] (II) glamor: OpenGL accelerated X.org driver based.
[    21.434] (II) glamor: EGL version 1.4 (DRI2):
[    21.434] EGL_MESA_drm_image required.
[    21.444] (EE) modeset(0): glamor initialization failed
[    21.444] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[    21.574] (II) modeset(0): Output HDMI-1 has no monitor section
[    21.700] (II) Quirked EDID physical size to 0x0 cm
[    21.701] (II) modeset(0): EDID for output HDMI-1
[    21.701] (II) modeset(0): Manufacturer: SAM  Model: 29f  Serial#: 0
[    21.701] (II) modeset(0): Year: 2006  Week: 45
[    21.701] (II) modeset(0): EDID Version: 1.3
[    21.701] (II) modeset(0): Digital Display Input
[    21.701] (II) modeset(0): Indeterminate output size
[    21.701] (II) modeset(0): Gamma: 2.20
[    21.701] (II) modeset(0): No DPMS capabilities specified
[    21.701] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    21.701] (II) modeset(0): First detailed timing is preferred mode
[    21.701] (II) modeset(0): redX: 0.650 redY: 0.330   greenX: 0.300 greenY: 0.600
[    21.701] (II) modeset(0): blueX: 0.150 blueY: 0.080   whiteX: 0.313 whiteY: 0.329
[    21.702] (II) modeset(0): Supported established timings:
[    21.702] (II) modeset(0): 640x480@60Hz
[    21.702] (II) modeset(0): Manufacturer's mask: 0
[    21.702] (II) modeset(0): Supported detailed timing:
[    21.702] (II) modeset(0): clock: 148.5 MHz   Image Size:  160 x 90 mm
[    21.702] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    21.702] (II) modeset(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    21.702] (II) modeset(0): Supported detailed timing:
[    21.702] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    21.702] (II) modeset(0): h_active: 1280  h_sync: 1390  h_sync_end 1430 h_blank_end 1650 h_border: 0
[    21.702] (II) modeset(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[    21.703] (II) modeset(0): Monitor name: SAMSUNG
[    21.703] (II) modeset(0): Ranges: V min: 49 V max: 61 Hz, H min: 15 H max: 68 kHz, PixClock max 235 MHz
[    21.703] (II) modeset(0): Supported detailed timing:
[    21.703] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    21.703] (II) modeset(0): h_active: 1280  h_sync: 1720  h_sync_end 1760 h_blank_end 1980 h_border: 0
[    21.703] (II) modeset(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[    21.703] (II) modeset(0): Supported detailed timing:
[    21.703] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    21.703] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    21.703] (II) modeset(0): v_active: 540  v_sync: 542  v_sync_end 547 v_blanking: 562 v_border: 0
[    21.703] (II) modeset(0): Supported detailed timing:
[    21.704] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    21.704] (II) modeset(0): h_active: 1920  h_sync: 2448  h_sync_end 2492 h_blank_end 2640 h_border: 0
[    21.704] (II) modeset(0): v_active: 540  v_sync: 542  v_sync_end 547 v_blanking: 562 v_border: 0
[    21.704] (II) modeset(0): Supported detailed timing:
[    21.704] (II) modeset(0): clock: 27.0 MHz   Image Size:  160 x 90 mm
[    21.704] (II) modeset(0): h_active: 720  h_sync: 736  h_sync_end 798 h_blank_end 858 h_border: 0
[    21.704] (II) modeset(0): v_active: 480  v_sync: 489  v_sync_end 495 v_blanking: 525 v_border: 0
[    21.704] (II) modeset(0): Number of EDID sections to follow: 1
[    21.704] (II) modeset(0): EDID (in hex):
[    21.704] (II) modeset(0): 	00ffffffffffff004c2d9f0200000000
[    21.705] (II) modeset(0): 	2d100103801009780aaea5a6544c9926
[    21.705] (II) modeset(0): 	14505420000001010101010101010101
[    21.705] (II) modeset(0): 	010101010101023a801871382d40582c
[    21.705] (II) modeset(0): 	4500a05a0000001e011d007251d01e20
[    21.705] (II) modeset(0): 	6e285500a05a0000001e000000fc0053
[    21.705] (II) modeset(0): 	414d53554e470a2020202020000000fd
[    21.705] (II) modeset(0): 	00313d0f4417000a202020202020012f
[    21.705] (II) modeset(0): 	020327714b901f041305140312202122
[    21.705] (II) modeset(0): 	2309070783010000e2000fe305030167
[    21.705] (II) modeset(0): 	030c001000b82d011d00bc52d01e20b8
[    21.706] (II) modeset(0): 	285540a05a0000001e011d8018711c16
[    21.706] (II) modeset(0): 	20582c2500a05a0000009e011d80d072
[    21.706] (II) modeset(0): 	1c1620102c2580a05a0000009e8c0ad0
[    21.706] (II) modeset(0): 	8a20e02d10103e9600a05a0000001800
[    21.706] (II) modeset(0): 	0000000000000000000000000000006c
[    21.707] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    21.707] (II) modeset(0): Printing probed modes for output HDMI-1
[    21.707] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    21.707] (II) modeset(0): Modeline "1920x1080"x50.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[    21.707] (II) modeset(0): Modeline "1920x1080"x59.9  148.35  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[    21.707] (II) modeset(0): Modeline "1920x1080i"x60.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[    21.708] (II) modeset(0): Modeline "1920x1080i"x50.0   74.25  1920 2448 2492 2640  1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[    21.708] (II) modeset(0): Modeline "1920x1080"x30.0   74.25  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.8 kHz e)
[    21.708] (II) modeset(0): Modeline "1920x1080"x25.0   74.25  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (28.1 kHz e)
[    21.708] (II) modeset(0): Modeline "1920x1080"x24.0   74.25  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[    21.708] (II) modeset(0): Modeline "1920x1080i"x59.9   74.18  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.7 kHz e)
[    21.708] (II) modeset(0): Modeline "1920x1080"x30.0   74.18  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.7 kHz e)
[    21.708] (II) modeset(0): Modeline "1920x1080"x24.0   74.18  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[    21.709] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    21.709] (II) modeset(0): Modeline "1280x720"x50.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[    21.709] (II) modeset(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    21.709] (II) modeset(0): Modeline "720x576"x50.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    21.709] (II) modeset(0): Modeline "720x480"x60.0   27.03  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    21.709] (II) modeset(0): Modeline "720x480"x59.9   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    21.709] (II) modeset(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    21.709] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    21.709] (II) modeset(0): Output HDMI-1 connected
[    21.709] (II) modeset(0): Using exact sizes for initial modes
[    21.709] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[    21.709] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    21.709] (==) modeset(0): DPI set to (96, 96)
[    21.709] (II) Loading sub module "fb"
[    21.709] (II) LoadModule: "fb"
[    21.710] (II) Loading /usr/lib/xorg/modules/libfb.so
[    21.718] (II) Module fb: vendor="X.Org Foundation"
[    21.718] 	compiled for 1.19.6, module version = 1.0.0
[    21.718] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    21.718] (==) Depth 24 pixmap format is 32 bpp
[    21.740] (==) modeset(0): Backing store enabled
[    21.740] (==) modeset(0): Silken mouse enabled
[    21.745] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    21.760] (==) modeset(0): DPMS enabled
[    21.760] (WW) modeset(0): Option "DRI" is not used
[    21.760] (--) RandR disabled
[    21.797] (II) SELinux: Disabled on system
[    21.799] (II) AIGLX: Screen 0 is not DRI2 capable
[    21.799] (EE) AIGLX: reverting to software rendering
[    21.811] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    21.815] (II) IGLX: Loaded and initialized swrast
[    21.815] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    21.817] (II) modeset(0): Damage tracking initialized
[    21.817] (II) modeset(0): Setting screen physical size to 508 x 285
[    27.686] (II) Quirked EDID physical size to 0x0 cm
...
[    27.686] (II) modeset(0): EDID vendor "SAM", prod id 671
[    27.687] (II) modeset(0): Using EDID range info for horizontal sync
[    27.687] (II) modeset(0): Using EDID range info for vertical refresh
[    27.687] (II) modeset(0): Printing DDC gathered Modelines:
[    27.687] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    27.687] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    27.687] (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[    27.687] (II) modeset(0): Modeline "1920x1080i"x0.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[    27.687] (II) modeset(0): Modeline "1920x1080i"x0.0   74.25  1920 2448 2492 2640  1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[    27.688] (II) modeset(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    27.688] (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    27.688] (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[    27.688] (II) modeset(0): Modeline "720x576"x0.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    27.688] (II) modeset(0): Modeline "1920x1080"x0.0   74.25  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[    27.688] (II) modeset(0): Modeline "1920x1080"x0.0   74.25  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (28.1 kHz e)
[    27.688] (II) modeset(0): Modeline "1920x1080"x0.0   74.25  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.8 kHz e)
[    27.689] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    28.232] (II) modeset(0): Disabling kernel dirty updates, not required.

EDIT : searching over google for EGL_MESA_drm_image required for T860 did not provide useful info… it’s the same for querying about modeset, armsoc drivers for T860 :cry:

Hi,

If you want to use Kodi, i suggest you try LibrELEC. You can download it from:
https://libreelec.tv/downloads_new/rockchip/

I managed to get KODI GBM working with almost all features included in latest LibreELEC (Pulse Eight HDMI CEC, HDMI audio passthrough, etc…). It is installed on bionic arm64 with mate desktop, so whenever i want to get into an X11 session when i am into KODI, i only have to shut KODI off and log into mate without rebooting … :+1:

Thanks for replying anyway !

Regards

Maybe you can share your image :slight_smile:

You can use rkdeveloptool rl command to read the image via USB to PC.

1 Like

Yes, i am up to do so…

By image, you are meaning OS image right ? I assume that a clean system should be on it before sharing isn’t it ?

EDIT : i’ve just posted download link to my ROCK960C image in my KODI GBM thread…