Hi,
I cannot get my application to display anything, so i am trying to get some output on the device display.
kmscube errors out with
[Logs] [2024-10-15T08:52:36.914Z] [kmscube] failed to set mode: Permission denied
Dockerfile
FROM balenalib/genericx86-64-ext-debian:latest
RUN apt-get update && apt-get install -y \
kmscube \
libdrm2 \
libdrm-tests \
libgbm1 \
libegl1-mesa \
libgles2-mesa \
libgl1-mesa-dri \
libinput10 \
udev \
--no-install-recommends
RUN apt-get install -y \
x11-utils \
mesa-utils \
&& apt-get clean
WORKDIR /root
CMD ["kmscube"]
Docker compose:
version: "2"
services:
kmscube:
build: .
restart: always
privileged: true
environment:
UDEV: 1
devices:
- "/dev/dri:/dev/dri"
- "/dev/input:/dev/input"
Debugging output from host os:
root@d94785e:~# udevadm info /dev/dri/card0
P: /devices/pci0000:00/0000:00:02.0/drm/card0
N: dri/card0
L: 0
S: dri/by-path/pci-0000:00:02.0-card
E: DEVPATH=/devices/pci0000:00/0000:00:02.0/drm/card0
E: DEVNAME=/dev/dri/card0
E: DEVTYPE=drm_minor
E: MAJOR=226
E: MINOR=0
E: SUBSYSTEM=drm
E: USEC_INITIALIZED=5212994
E: ID_PATH=pci-0000:00:02.0
E: ID_PATH_TAG=pci-0000_00_02_0
E: ID_FOR_SEAT=drm-pci-0000_00_02_0
E: DEVLINKS=/dev/dri/by-path/pci-0000:00:02.0-card
E: TAGS=:seat:master-of-seat:uaccess:
E: CURRENT_TAGS=:seat:master-of-seat:uaccess:
root@d94785e:~# lsmod | grep i915
i915 3465216 4
drm_buddy 20480 1 i915
ttm 90112 1 i915
drm_display_helper 200704 1 i915
cec 61440 2 drm_display_helper,i915
drm_kms_helper 225280 2 drm_display_helper,i915
i2c_algo_bit 12288 2 igb,i915
video 69632 1 i915
drm 745472 7 drm_kms_helper,drm_display_helper,drm_buddy,i915,ttm
root@d94785e:~# dmesg | grep -i drm
[ 1.992384] ACPI: bus type drm_connector registered
[ 3.911626] i915 0000:00:02.0: [drm] Using Transparent Hugepages
[ 3.960301] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/icl_dmc_ver1_09.bin (v1.9)
[ 4.021750] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[ 4.026463] fbcon: i915drmfb (fb0) is primary device
[ 5.200135] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
root@d94785e:~# ls -al /dev/dri
total 0
drwxr-xr-x 3 root root 100 Oct 15 08:05 .
drwxr-xr-x 19 root root 4540 Oct 15 08:20 ..
drwxr-xr-x 2 root root 80 Oct 15 08:20 by-path
crw-rw---- 1 root video 226, 0 Oct 15 08:20 card0
crw-rw-rw- 1 root render 226, 128 Oct 15 08:20 renderD128