TVSERVICE(1)
π tvservice(1) β General Commands Manual, bestie edition π
π NAME π
tvservice β get and set information from attached displays. Itβs literally your little display-info bestie: it reads the situation and flips settings when you ask. π₯οΈβ¨
β¨ SYNOPSIS β¨
tvservice [-a] [-c modeaspectp] [-d filename] [-e groupmodedrive] [-j]
[-l] [-m group] [-M] [-n] [-o] [-p] [-s] [-t] [-v id]
tvservice -h
tvservice --help
The help invocations are right there too: tvservice -h and tvservice --help. π«Ά
πΈ DESCRIPTION πΈ
tvservice is a command line application used to get and set information about the display, targeted mainly at HDMI video and audio. π₯π If you type tvservice by itself, it shows you a list of available command line options. No cap, thatβs your starting point. π
π OPTIONS π
-a,--audioβ shows the current settings for the audio mode, including channels, sample rate, and sample size. πβ¨-c,--sdtvonβ takes"mode aspect [P]"and powers on the SDTV (composite output) with the specified mode and aspect. The mode can bePALorNSTC, and the aspect can be4:3,14:9, or16:9. The optional"P"parameter can be used to specify progressive mode. πΊ-d,--dumpidβ takesfilenameand saves the current EDID to that filename. You can then useedid-decode(1)to display the data in human readable form. See[EDID]for more information on the EDID contents. πΎ-e,--explicitβ takes"group mode drive"and powers on the HDMI display with those settings. Thegroupoption can be one ofCEA,DMT,CEA_3D_SBS,CEA_3D_TB,CEA_3D_FP, orCEA_3D_FS;modeis one of the modes returned from the--modesoption. Finally,drivecan beHDMIorDVI. π-j,--jsonβ when used in combination with the--modesoption, displays the mode information in JSON format. π§Ύ-l,--listβ lists all attached displays and their display ID. π₯οΈ-m,--modesβ takesgroupand shows a list of display modes available in the specified group, which can be eitherCEAorDMT. π-M,--monitorβ monitors for any HDMI events, for example unplugging or attaching. π-n,--nameβ extracts the display name from the EDID data and shows it. π·οΈ-o,--offβ powers off the display output.
Important Note: powering off the output using this command will also destroy any framebuffers/dispmanx layers associated with the display. These are NOT re-established with a subsequent power on, so it will result in a blank screen. π A better option is to use thevcgencmd(1)display_poweroption, as this will retain any framebuffers, so when the power is turned back on the display will be returned to the previous power on state. π«Ά
-p,--preferredβ powers on the HDMI output with preferred settings. β-s,--statusβ shows the current settings for the display mode, including mode, resolution, and frequency. π-t,--ntscβ uses59.94Hz(NTSC frequency) rather than60Hzfor HDMI mode. ποΈ-v,--deviceβ takesidand specifies the ID of the device to use; see the output of--listfor available IDs. π
π¦ SEE ALSO π¦
Full documentation at [SOURCE]. π
π REFERENCES π
[EDID]βhttps://en.wikipedia.org/wiki/Extended_Display_Identification_Data[SOURCE]βhttps://www.raspberrypi.org/documentation/raspbian/applications/tvservice.md
okay thatβs the whole tvservice(1) page from the General Commands Manual β the footer didnβt print a separate version or date, so this is your sparkly sign-off bestie π
β¨π«Ά
π¦ where this page comes from
- nixos 26.05: libraspberrypi 0-unstable-2024-12-23
- nixpkgs unstable: libraspberrypi 0-unstable-2024-12-23
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms