From 358b5e860b7133f6ce1321f2169252559fa265d0 Mon Sep 17 00:00:00 2001 From: macmpi Date: Sun, 22 Oct 2023 19:02:14 +0200 Subject: [PATCH] raspinfo: warn for legacy video requiring non-default userland package --- raspinfo/raspinfo | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/raspinfo/raspinfo b/raspinfo/raspinfo index 3a15a85..e6c95b2 100755 --- a/raspinfo/raspinfo +++ b/raspinfo/raspinfo @@ -87,7 +87,7 @@ display_info_drm() { display_info_legacy() { # Legacy mode - echo "Running Legacy framebuffer" + echo "Running Legacy framebuffer (unsupported)" echo for card in `seq 0 9`; @@ -100,6 +100,11 @@ display_info_legacy() { fi done + if ! command -v tvservice > /dev/null; then + echo "Please install Legacy userland package (tvservice)" + return 1 + fi + disps=`tvservice -l | awk '/Display Number/{print substr($3,1,1)}'` tmp=$(mktemp)