Skip to content

Commit b03cac2

Browse files
committed
raspinfo: warn for legacy video requiring non-default userland package
1 parent 00393b2 commit b03cac2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

raspinfo/raspinfo

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,14 @@ display_info_drm() {
8787

8888
display_info_legacy() {
8989
# Legacy mode
90-
echo "Running Legacy framebuffer"
90+
echo "Running Legacy framebuffer (unsupported)"
9191
echo
9292

93+
if ! command -v tvservice > /dev/null; then
94+
echo "Please install Legacy userland package (tvservice)"
95+
return 1
96+
fi
97+
9398
for card in `seq 0 9`;
9499
do
95100
F="/dev/fb${card}"

0 commit comments

Comments
 (0)