User Tools

Site Tools


switchmonitoronoff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

switchmonitoronoff [25.10.2017 22:16] (current)
andreas created
Line 1: Line 1:
 +**----- Work in Progress -----** ​
  
 +vcgencmd display_power 0
 +vcgencmd display_power 1
 +
 +
 +
 +pi@Monitor-Pi:​~ $ /​opt/​vc/​bin/​tvservice --help
 +Usage: tvservice [OPTION]...
 +  -p, --preferred ​                  Power on HDMI with preferred settings
 +  -e, --explicit="​GROUP MODE DRIVE" Power on HDMI with explicit GROUP (CEA, DMT, CEA_3D_SBS, CEA_3D_TB, CEA_3D_FP, CEA_3D_FS)
 +                                      MODE (see --modes) and DRIVE (HDMI, DVI)
 +  -t, --ntsc ​                       Use NTSC frequency for HDMI mode (e.g. 59.94Hz rather than 60Hz)
 +  -c, --sdtvon="​MODE ASPECT [P]" ​   Power on SDTV with MODE (PAL or NTSC) and ASPECT (4:3 14:9 or 16:9) Add P for progressive
 +  -o, --off                         Power off the display
 +  -m, --modes=GROUP ​                Get supported modes for GROUP (CEA, DMT)
 +  -M, --monitor ​                    ​Monitor HDMI events
 +  -s, --status ​                     Get HDMI status
 +  -a, --audio ​                      Get supported audio information
 +  -d, --dumpedid <​filename> ​        Dump EDID information to file
 +  -j, --json ​                       Use JSON format for --modes output
 +  -n, --name ​                       Print the device ID from EDID
 +  -h, --help ​                       Print this information
 +
 +
 +Turn HDMI monitor off:
 +/​opt/​vc/​bin/​tvservice -o
 +
 +Turn HDMI Monitor on:
 +/​opt/​vc/​bin/​tvservice -p
 +
 +
 +Auf dem Raspberry Pi funktioniert letzteres Kommando aber nur bedingt: Der Monitor schaltet sich zwar ein, das Bild bleibt aber schwarz.
 +Abhilfe schafft nun ein Umschalten der virtuellen Konsole mit dem Kommando chvt. Raspbian verwendet für den Grafikmodus normalerweise die Konsole 7. Die kurzzeitige Aktivierung von Konsole 1 (Textmodus) und danach die Re-Aktivierung von Konsole 7 (Grafikmodus) führt dazu, dass am Monitor wieder der Inhalt des Grafiksystems zu sehen ist.
 +sudo chvt 1 && sudo chvt 7
 +https://​pi-buch.info/​hdmi-display-aus-und-wieder-einschalten/​
switchmonitoronoff.txt · Last modified: 25.10.2017 22:16 by andreas