Raspberry Pi tvservice Command Not Working: What to Use on Your TV Instead

Short answer: tvservice belongs to the older Raspberry Pi display system, and newer versions of Raspberry Pi OS use a different one.

That is why the command may be missing or may report nothing useful.

Use the Screen Configuration tool, or the newer commands in the table below, to set up your TV.

Table of Contents

What tvservice Was Used For

It was the Pi’s HDMI control tool. You typed it into the Terminal (the text window) to check and change the TV connection.

People used it for these jobs:

  • Checking which resolution the TV was using
  • Turning the HDMI signal off and on
  • Listing the video modes the TV supports
  • Forcing a mode when the picture was wrong

Why tvservice Stops Working

The Pi’s video software changed. Newer Raspberry Pi OS releases use the “KMS” display driver instead of the old firmware method that tvservice talked to.

The result depends on your Pi and OS version. You may see “command not found,” an error, or output that does not match what the TV is doing.

Check which version you have by opening Terminal and typing:

  1. Type cat /etc/os-release
  2. Press Enter
  3. Read the line starting with PRETTY_NAME

Old Command vs What to Use Now

Exact tool names depend on your OS version, so treat this table as a guide.

Old tvservice jobTry this instead
See current resolutionScreen Configuration, or xrandr (X11) or wlr-randr (Wayland)
List TV modeskmsprint or modetest (may need installing)
Change resolutionScreen Configuration or the same randr tools
Turn HDMI off/onScreen Configuration, or the randr tools with the output off/on options

Not every tool exists on every setup. If a command is not found, that usually means it is not installed or does not match your display system.

Fix the Picture Using the Desktop Menu

This is the easiest route and needs no typing. It works if you can see the Pi desktop on any screen.

  1. Click the Raspberry icon at the top left.
  2. Choose Preferences.
  3. Click Screen Configuration.
  4. Open the Screens menu and pick HDMI-1 (or your HDMI port).
  5. Choose Resolution and select one the TV supports, such as 1920×1080.
  6. Click Apply, then keep the change if the picture looks right.

Menu names can differ slightly between OS versions.

Symptoms and Fixes

SymptomLikely fix
tvservice: command not foundUse Screen Configuration or the newer commands above
TV says “No signal”Check the cable, HDMI port and TV input
Picture cut off at the edgesSet the TV’s picture size to “Just Scan,” “Screen Fit” or similar
Wrong or blurry resolutionPick the TV’s native resolution in Screen Configuration
Black screen after bootTry the other HDMI port and restart with the TV already on

Check the TV and Cable First

Many “tvservice” problems are really cable or input problems. Rule these out before changing settings.

  • Use the correct HDMI input on the TV
  • Try a different HDMI cable
  • Try another HDMI port on the TV
  • Turn the TV on before you power up the Pi
  • On a Pi 4 or Pi 5, plug into the HDMI port closest to the power connector first (HDMI 0)

Pi 4 and Pi 5 use small micro-HDMI ports, so check that your cable or adapter is firmly seated.

Set a Safe Mode in the Config File

If you only get a black screen, a config setting may help. This is a last-step fix, so make a backup copy of the file first.

The file location depends on your OS version.

OS versionConfig file
Bookworm and newer/boot/firmware/config.txt
Bullseye and older/boot/config.txt

You can also put the SD card in another computer and open config.txt from the boot drive.

Settings such as hdmi_safe=1 come from the older display system. Whether they have any effect on your setup is unconfirmed, so test and undo if nothing changes.

Turning the TV Signal Off and On

If you used tvservice to power the screen down, expect a different method now. The older -o and -p options may not behave the same way.

The simplest options are:

  • Use screen blanking in Preferences > Raspberry Pi Configuration > Display
  • Use the randr tools to switch the output off and on
  • Turn the TV off with its own remote

Results can vary by TV, since some sets keep showing “No signal” instead of sleeping.

Update Raspberry Pi OS

An update can fix display bugs. It will not bring tvservice back, but it may fix a bad resolution or blank screen.

  1. Open Terminal.
  2. Type sudo apt update and press Enter.
  3. Type sudo apt full-upgrade and press Enter.
  4. Restart the Pi when it finishes.

Keep the power connected during the update.

Summary of the Fix

tvservice is an older tool and does not suit current Raspberry Pi OS display setups.

Use Screen Configuration for resolution, check the cable and TV input, and try the newer commands if you need Terminal control.

Still Not Working?

Test the Pi on a different screen. If it works there, the problem is the TV, the port or the cable.

If it fails on every screen, re-write the SD card with a fresh copy of Raspberry Pi OS using Raspberry Pi Imager, then try again before changing any settings.

  • Raspberry Pi No HDMI Signal on TV: How to Fix It
  • How to Change Raspberry Pi Screen Resolution Without a Monitor
  • Raspberry Pi Screen Goes Black After a Few Minutes: What to Do
  • How to Fix Cut-Off Edges When Connecting a Computer to a TV
  • How to Check Your Raspberry Pi OS Version

Found this guide useful? Add The Droid Guy to your favorites on Google to see our guides more often in Google Search.

Leave a Reply

Your email address will not be published. Required fields are marked *