TVSERVICE(1)

πŸ“¦ version 0-unstable-2024-12, in nixos 26.05, nixpkgs unstable

πŸ’– 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 be PAL or NSTC, and the aspect can be 4:3, 14:9, or 16:9. The optional "P" parameter can be used to specify progressive mode. πŸ“Ί
  • -d, --dumpid β€” takes filename and saves the current EDID to that filename. You can then use edid-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. The group option can be one of CEA, DMT, CEA_3D_SBS, CEA_3D_TB, CEA_3D_FP, or CEA_3D_FS; mode is one of the modes returned from the --modes option. Finally, drive can be HDMI or DVI. πŸ”Œ
  • -j, --json β€” when used in combination with the --modes option, displays the mode information in JSON format. 🧾
  • -l, --list β€” lists all attached displays and their display ID. πŸ–₯️
  • -m, --modes β€” takes group and shows a list of display modes available in the specified group, which can be either CEA or DMT. πŸ“‹
  • -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 the vcgencmd(1) display_power option, 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 β€” uses 59.94Hz (NTSC frequency) rather than 60Hz for HDMI mode. 🎚️
  • -v, --device β€” takes id and specifies the ID of the device to use; see the output of --list for available IDs. πŸ†”

πŸ¦‹ SEE ALSO πŸ¦‹

vcgencmd(1), edid-decode(1)

Full documentation at [SOURCE]. πŸ“š

🌈 REFERENCES 🌈


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