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 Apr 26, 2024
1 parent 731b48e commit 70e4083
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 # should get rid our crazy "sudo" in hijack.sh
sudo ls /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 70e4083

Please sign in to comment.