tvservice: command not found

tvservice command is a part of libraspberrypi-bin package which in turn contains various utilities for interacting with the Raspberry Pi’s VideoCore IV. The RPi video output can be configured using the tvservice application (/opt/vc/bin/tvservice). You should plug the HDMI monitor cable into the RPi and use the tvservice application to list the available modes on the connected CEA (typically televisions) or DMT (typically computer monitors) display:

$ tvservice --modes CEA
Group CEA has 0 modes:

$ tvservice --modes DMT
Group DMT has 13 modes:
           …
           mode 51: 1600x1200 @ 60Hz 4:3,   clock:162MHz progressive
           mode 58: 1680x1050 @ 60Hz 16:10, clock:146MHz progressive
  (prefer) mode 82: 1920x1080 @ 60Hz 16:9,  clock:148MHz progressive

$ tvservice --status
state 0x120006 [DVI DMT(82) RGB full 16:9], 1920x1080 @ 60.00Hz, progressive

If you encounter below error, while running the tvservice command:

tvservice: command not found

you may try installing the libraspberrypi-bin package as per below:

$ apt-get install libraspberrypi-bin

tvservice Command Examples

1. Disable HDMI:

$ tvservice -o

2. To disable HDMI at boot, edit /etc/rc.local and add:

/usr/bin/tvservice -o

3. To reenable HDMI from the command line:

$ tvservice -p

4. If you are not using the HDMI output, you can switch it off entirely:

$ tvservice --off
Powering off HDMI
Related Post