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
- Why tvservice Stops Working
- Old Command vs What to Use Now
- Fix the Picture Using the Desktop Menu
- Symptoms and Fixes
- Check the TV and Cable First
- Set a Safe Mode in the Config File
- Turning the TV Signal Off and On
- Update Raspberry Pi OS
- Summary of the Fix
- Still Not Working?
- Related Topics
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:
- Type
cat /etc/os-release - Press Enter
- 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 job | Try this instead |
|---|---|
| See current resolution | Screen Configuration, or xrandr (X11) or wlr-randr (Wayland) |
| List TV modes | kmsprint or modetest (may need installing) |
| Change resolution | Screen Configuration or the same randr tools |
| Turn HDMI off/on | Screen 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.
- Click the Raspberry icon at the top left.
- Choose Preferences.
- Click Screen Configuration.
- Open the Screens menu and pick HDMI-1 (or your HDMI port).
- Choose Resolution and select one the TV supports, such as 1920×1080.
- Click Apply, then keep the change if the picture looks right.
Menu names can differ slightly between OS versions.
Symptoms and Fixes
| Symptom | Likely fix |
|---|---|
| tvservice: command not found | Use Screen Configuration or the newer commands above |
| TV says “No signal” | Check the cable, HDMI port and TV input |
| Picture cut off at the edges | Set the TV’s picture size to “Just Scan,” “Screen Fit” or similar |
| Wrong or blurry resolution | Pick the TV’s native resolution in Screen Configuration |
| Black screen after boot | Try 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 version | Config 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.
- Open Terminal.
- Type
sudo apt updateand press Enter. - Type
sudo apt full-upgradeand press Enter. - 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.
Related Topics
- 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.