Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. RPI-Monitor Adapter - display_power?

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    RPI-Monitor Adapter - display_power?

    This topic has been deleted. Only users with topic management privileges can see it.
    • metaxa
      metaxa last edited by

      Hallo!
      Wäre es möglich über "vcgencmd display_power 1" den aktuellen Status der HDMI Anschlüsse in einem DP zu erhalten? Sogar steuerbar??? 🙂
      Warum? Ich habe ein Touch in der Wand verbaut, das sich leider nicht über Blacklight ansteuern läßt. Mit einer Javacript Funktion schalte ich aktuell den HDMI Ausgang des RPI4 ab und ein.

      Meine Function:

      node_ssh = require('node-ssh');
      ssh = new node_ssh();
      ssh.connect({
        host: '192.168.xxx.xxx',
        username: 'pi',
        password: 'total_sicher'
      }).then(() => {
        ssh.execCommand("vcgencmd display_power 0"); # oder mit "1" ein
      })
      

      Quelle:
      display_power [0 | 1 | -1] [display]

      Show current display power state, or set the display power state. vcgencmd display_power 0 will turn off power to the current display. vcgencmd display_power 1 will turn on power to the display. If no parameter is set, this will display the current power state. The final parameter is an optional display ID, as returned by tvservice -l or from the table below, which allows a specific display to be turned on or off.

      vcgencmd display_power 0 7 will turn off power to display ID 7, which is HDMI 1 on a Raspberry Pi 4.
      Display ID
      Main LCD 0
      Secondary LCD 1
      HDMI 0 2
      Composite 3
      HDMI 1 7

      To determine if a specific display ID is on or off, use -1 as the first parameter.

      vcgencmd display_power -1 7 will return 0 if display ID 7 is off, 1 if display ID 7 is on, or -1 if display ID 7 is in an unknown state, for example undetected.

      Lieben Dank für Eure Meinung im Voraus!
      mxa

      oberfragger 1 Reply Last reply Reply Quote 0
      • oberfragger
        oberfragger @metaxa last edited by oberfragger

        @metaxa Hi,
        bist du weiter gekommen?

        Ich überlege gerade/ google:
        Meine Überlegung - MQTT
        Der RPI4 publisht den aktuellen Monitor state. Dann kann man via ioBroker ganz einfach den gewünschten Status reinschreiben. Wenn der Dann geändert wird (on/off) muss halt der RPI entsprechend vcgencmd display_power 1 bzw. 0 setzen.

        Sowas sollte doch machbar sein.

        Guck mal- gerade gefunden:
        https://www.thedigitalpictureframe.com/control-your-digital-picture-frame-with-home-assistents-wifi-presence-detection-and-mqtt/

        Das sieht wirklich nachdem aus,w as ich gesucht habe!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        853
        Online

        31.8k
        Users

        80.0k
        Topics

        1.3m
        Posts

        hdmi pi4 rpi2 touchscreen vcgencmd
        2
        2
        387
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo