From 79733cd76714c249399d3458dbc5cf7e2f7c36f6 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 26 Apr 2024 16:51:54 -0700 Subject: [PATCH] verify-kernel-boot-log: add more display information Searching for "(dis)connected" in i915_display_info shows useful connector info. Also show /sys/class/drm/ and /sys/kernel/debug/dri/0/, this will be useful for DRM_XE, see https://github.com/thesofproject/kconfig/pull/91 Signed-off-by: Marc Herbert --- test-case/verify-kernel-boot-log.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test-case/verify-kernel-boot-log.sh b/test-case/verify-kernel-boot-log.sh index a5e0be18..fb792d3e 100755 --- a/test-case/verify-kernel-boot-log.sh +++ b/test-case/verify-kernel-boot-log.sh @@ -119,11 +119,20 @@ show_daemons_session_display() # See https://github.com/thesofproject/sof-test/discussions/964 # and https://github.com/thesofproject/linux/issues/4861 (set -x + # This is very hit-and-miss, it notably fails when the $XAUTHORITY file is placed in + # a session-specific, /run/user/ tmpfs that cannot be seen over ssh (or from any + # other session). Sometimes this shows XWAYLAND. + # As of April 2024 there does not seem to be any Wayland equivalent for `xrandr` DISPLAY=:0 xrandr --listmonitors DISPLAY=:1024 xrandr --listmonitors + + ls -l /sys/class/drm/ + set +x # can't use set -x because of the crazy "sudo()" in hijack.sh + sudo ls -C /sys/kernel/debug/dri/0/ ) printf '\n' - sudo grep -B3 -A1 -i -e connected -e enabled -e active -e audio \ + # DRM_XE keeps using i915 code for display, so this will hopefully keep working. + sudo grep -B3 -A1 -i -e connected -e enabled -e active -e audio -e connected \ /sys/kernel/debug/dri/0/i915_display_info printf '\n'