cage-kiosk / cage

A Wayland kiosk
https://www.hjdskes.nl/projects/cage
MIT License
1.24k stars 80 forks source link

error on raspberr pi os #340

Open olevenets2 opened 5 months ago

olevenets2 commented 5 months ago

Hi I compiled this program and tried to open the waydroid container on my raspberry pi 4 in openbox but I get an error:

olevenets@raspberrypi:~/build/cage/build $ ./cage waydroid
00:00:00.000 [backend/x11/backend.c:396] Creating X11 backend
00:00:00.003 [backend/x11/backend.c:612] Failed to query DRI3 DRM FD
00:00:00.003 [../cage.c:299] Unable to create the wlroots backend

Is there anything I can do?

emersion commented 5 months ago

Which xserver driver are you using?

olevenets2 commented 5 months ago

This is Mesa 23.2.1. My glxinfo log https://paste.ee/p/3aTkF

emersion commented 5 months ago

I mean the X.Org server drivers, not GL/Vulkan. These are typically called xf86-video-….

olevenets2 commented 5 months ago

Hmm, I don't know exactly what the package is called, but here's what it says in Xorg.log

olevenets@raspberrypi:~ $ cat /var/log/Xorg.0.log|grep -i driver
[    13.779]    X.Org Video Driver: 25.2
[    13.779]    X.Org XInput driver : 24.4
[    13.819]    loading driver: modesetting
[    13.819] (==) Matched modesetting as autoconfigured driver 0
[    13.819] (==) Matched fbdev as autoconfigured driver 1
[    13.819] (==) Assigned the driver to the xf86ConfigLayout
[    13.820] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    13.831]    Module class: X.Org Video Driver
[    13.831]    ABI class: X.Org Video Driver, version 25.2
[    13.831] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    13.833]    Module class: X.Org Video Driver
[    13.833]    ABI class: X.Org Video Driver, version 25.2
[    13.833] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    13.833] (II) FBDEV: driver for framebuffer: fbdev
[    13.882]    ABI class: X.Org Video Driver, version 25.2
[    15.251] (II) modeset(0): [DRI2]   DRI driver: vc4
[    15.251] (II) modeset(0): [DRI2]   VDPAU driver: vc4
[    15.427]    Module class: X.Org XInput Driver
[    15.427]    ABI class: X.Org XInput driver, version 24.4
[    15.427] (II) Using input driver 'libinput' for 'Barcode Reader '
[    15.534] (II) Using input driver 'libinput' for 'Barcode Reader  Mouse'
[    15.567] (II) No input driver specified, ignoring this device.
[    15.569] (II) Using input driver 'libinput' for 'Barcode Reader  System Control'
[    15.606] (II) Using input driver 'libinput' for 'Barcode Reader  Consumer Control'
[    15.629] (II) Using input driver 'libinput' for 'vc4-hdmi-0'
[    15.660] (II) No input driver specified, ignoring this device.
[    15.661] (II) Using input driver 'libinput' for 'vc4-hdmi-1'
[    15.684] (II) No input driver specified, ignoring this device.
[    15.697] (II) Using input driver 'libinput' for 'Barcode Reader  Consumer Control'
[    15.698] (II) Using input driver 'libinput' for 'vc4-hdmi-0'
[    15.698] (II) Using input driver 'libinput' for 'vc4-hdmi-1'
emersion commented 5 months ago

Right, thanks, this is the modesetting driver.

Hm, maybe that's because it's a split render/display node system…

olevenets2 commented 5 months ago

Will it be possible to count on a fix?

emersion commented 5 months ago

No, I don't have enough free time to work on a fix for this. Patches welcome.