Skip to content

Commit

Permalink
raspinfo: warn for legacy video requiring non-default userland package
Browse files Browse the repository at this point in the history
  • Loading branch information
macmpi committed Oct 22, 2023
1 parent 00393b2 commit 358b5e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion raspinfo/raspinfo
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand All @@ -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)
Expand Down

0 comments on commit 358b5e8

Please sign in to comment.