I tried with recommanded lxc (linux container is more secure) but opengl Mai is not recognized
----> so instead of
sudo mkdir -p /srv/chroot/armbian
sudo debootstrap --arch arm64 --foreign bookworm /srv/chroot/debian-arm64 http://debian.xtdv.net/debian
sudo schroot -c debian-arm64
(step to create user pi skipped)
apt install aegisub inxi
We notice EVERYTHING IS RECOGNIZED:
(debian-arm64)root@bananapim5:/home/pi# inxi -Gs
Graphics:
Device-1: meson-g12a-vpu driver: meson_drm v: N/A
Device-2: meson-g12a-mali driver: panfrost v: kernel
Device-3: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: N/A
Display: server: X.Org v: 1.21.1.4 driver: dri: meson
gpu: meson_drm,panfrost,meson_dw_hdmi note: X driver n/a
resolution: 1920x1080~60Hz
API: OpenGL v: 3.1 Mesa 22.3.6 renderer: Mali-G31 (Panfrost)
Sensors:
System Temperatures: cpu: 44.3 C mobo: N/A
Fan Speeds (RPM): N/A
++++++> I have done
sudo lxc-create --name "arm64-bookworm" --template download -- --dist debian --release bookworm --arch arm64
sudo lxc-start -n "arm64-bookworm"
sudo lxc-attach -n "arm64-bookworm"
apt install aegisub inxi
We notice GL is not FULLY DETECTED
root@arm64-bookworm:/home/pi# inxi -Gs
Graphics:
Device-1: meson-g12a-vpu driver: meson_drm v: N/A
Device-2: meson-g12a-mali driver: panfrost v: kernel
Device-3: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: N/A
Display: server: X.org v: 1.21.1.7 driver: X: loaded: fbdev,modesetting
gpu: mroot@arm64-bookworm:/home/pi# inxi -Gs
Graphics:
Device-1: meson-g12a-vpu driver: meson_drm v: N/A
Device-2: meson-g12a-mali driver: panfrost v: kernel
Device-3: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: N/A
Display: server: X.org v: 1.21.1.7 driver: X: loaded: fbdev,modesetting
gpu: meson_drm,panfrost,meson_dw_hdmi resolution: 1920x1080
API: OpenGL Message: GL data unavailable for root.
eson_drm,panfrost,meson_dw_hdmi resolution: 1920x1080
API: OpenGL Message: GL data unavailable for root.
root@arm64-bookworm:/home/pi# lshw -c video
*-graphics
product: mesondrmfb
physical id: 5
logical name: /dev/fb0
capabilities: fb
configuration: depth=32 resolution=720,480
root@arm64-bookworm:/home/pi# xrandr --listproviders
Can't open display :0
The reason is OpenGL rely on Xorg and Xorg can't find my display event after doing export DISPLAY=:0
the device :dev/fb0 does not exist also.as we can seet it withe the Xorg log:
root@arm64-bookworm:/home/pi# cat /var/log/Xorg.0.log
[ 25980.096]
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[ 25980.096] Current Operating System: Linux arm64-bookworm 6.2.0-rc3-meson64 #23.02.2 SMP PREEMPT Fri Feb 17 23:06:22 UTC 2023 aarch64
[ 25980.096] Kernel command line: root=UUID=4cc9d1be-c592-4e80-8f1c-e73b8c044930 rootwait rootfstype=ext4 splash plymouth.ignore-serial-consoles console=ttyAML0,115200 console=tty1 consoleblank=0 coherent_pool=2M loglevel=1 ubootpart=7ac72bfa-01 libata.force=noncq usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u,0x1058:0x1001:u video=drm_kms_helper.edid_firmware=HDMI-A-1:edid/720x480.bin video=HDMI-A-1:720x480M@60 fbcon=rotate:0 module_blacklist=simpledrm cgroup_enable=memory swapaccount=1
[ 25980.096] xorg-server 2:21.1.7-3+deb12u5 (https://www.debian.org/support)
[ 25980.096] Current version of pixman: 0.42.2
[ 25980.097] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 25980.097] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 25980.097] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 17 20:03:34 2024
[ 25980.098] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 25980.098] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 25980.100] (==) ServerLayout "dummy_layout"
[ 25980.100] (**) |-->Screen "dummy_screen" (0)
[ 25980.100] (**) | |-->Monitor "dummy_monitor"
[ 25980.101] (**) | |-->Device "dummy_videocard"
[ 25980.101] (**) |-->Input Device "dummy_mouse"
[ 25980.101] (**) |-->Input Device "dummy_keyboard"
[ 25980.101] (==) Automatically adding devices
[ 25980.101] (==) Automatically enabling devices
[ 25980.101] (==) Automatically adding GPU devices
[ 25980.101] (==) Automatically binding GPU devices
[ 25980.101] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 25980.101] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 25980.101] Entry deleted from font path.
[ 25980.101] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 25980.101] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 25980.101] (II) Loader magic: 0xaaaac1da0f00
[ 25980.101] (II) Module ABI versions:
[ 25980.101] X.Org ANSI C Emulation: 0.4
[ 25980.101] X.Org Video Driver: 25.2
[ 25980.101] X.Org XInput driver : 24.4
[ 25980.101] X.Org Server Extension : 10.0
[ 25980.105] (EE) systemd-logind: failed to get session: PID 991 does not belong to any known session
[ 25980.109] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 25980.109] (II) Platform probe for /sys/devices/platform/soc/ff900000.vpu/drm/card0
[ 25980.111] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 25980.111] (II) Platform probe for /sys/devices/platform/soc/ffe40000.gpu/drm/card1
[ 25980.111] (II) no primary bus or device found
[ 25980.111] (II) LoadModule: "glx"
[ 25980.112] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 25980.115] (II) Module glx: vendor="X.Org Foundation"
[ 25980.116] compiled for 1.21.1.7, module version = 1.0.0
[ 25980.116] ABI class: X.Org Server Extension, version 10.0
[ 25980.116] (==) Matched modesetting as autoconfigured driver 0
[ 25980.116] (==) Matched fbdev as autoconfigured driver 1
[ 25980.116] (==) Assigned the driver to the xf86ConfigLayout
[ 25980.116] (II) LoadModule: "modesetting"
[ 25980.116] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 25980.117] (II) Module modesetting: vendor="X.Org Foundation"
[ 25980.117] compiled for 1.21.1.7, module version = 1.21.1
[ 25980.117] Module class: X.Org Video Driver
[ 25980.117] ABI class: X.Org Video Driver, version 25.2
[ 25980.117] (II) LoadModule: "fbdev"
[ 25980.117] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 25980.117] (II) Module fbdev: vendor="X.Org Foundation"
[ 25980.118] compiled for 1.21.1.3, module version = 0.5.0
[ 25980.118] Module class: X.Org Video Driver
[ 25980.118] ABI class: X.Org Video Driver, version 25.2
[ 25980.118] (II) LoadModule: "void"
[ 25980.118] (WW) Warning, couldn't open module void
[ 25980.118] (EE) Failed to load module "void" (module does not exist, 0)
[ 25980.118] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 25980.118] (II) FBDEV: driver for framebuffer: fbdev
[ 25980.119] (WW) Falling back to old probe method for modesetting
[ 25980.119] (EE) open /dev/dri/card0: No such file or directory
[ 25980.119] (WW) Falling back to old probe method for fbdev
[ 25980.119] (II) Loading sub module "fbdevhw"
[ 25980.119] (II) LoadModule: "fbdevhw"
[ 25980.119] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 25980.119] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 25980.119] compiled for 1.21.1.7, module version = 0.0.2
[ 25980.119] ABI class: X.Org Video Driver, version 25.2
[ 25980.120] (EE) open /dev/fb0: No such file or directory
[ 25980.120] (WW) Falling back to old probe method for modesetting
[ 25980.120] (EE) open /dev/dri/card0: No such file or directory
[ 25980.120] (WW) Falling back to old probe method for fbdev
[ 25980.120] (II) Loading sub module "fbdevhw"
[ 25980.120] (II) LoadModule: "fbdevhw"
[ 25980.120] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 25980.120] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 25980.120] compiled for 1.21.1.7, module version = 0.0.2
[ 25980.120] ABI class: X.Org Video Driver, version 25.2
[ 25980.120] (EE) open /dev/fb0: No such file or directory
[ 25980.120] (EE) No devices detected.
[ 25980.120] (EE)
Fatal server error:
[ 25980.120] (EE) no screens found(EE)
[ 25980.120] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 25980.121] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 25980.121] (EE)
[ 25980.121] (EE) Server terminated with error (1). Closing log file.
Thus starting aegisub in linux container is impossible.
root@arm64-bookworm:/home/pi# su - pi
pi@arm64-bookworm:~$ aegisub-3.2
12:56:43: Error: Unable to initialize GTK+, is DISPLAY set properly?
So now the question is
DOES SOMEONE KNOW HOW TO MAKE LINUX CONTAINER WORK GRAPHICALLY UNDER Ubuntu JAMMY?