Skip to content

Commit

Permalink
verify-kernel-boot-log: add more display information
Browse files Browse the repository at this point in the history
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 thesofproject/kconfig#91

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb committed May 1, 2024
1 parent 47af510 commit 962e060
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test-case/verify-kernel-boot-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 962e060

Please sign in to comment.