• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Help! Probem using PIR Sensor on raspberry pi zero to turn on/off screen

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 5 Posters 6.5k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Mikgabo @NoNameRo
    last edited by Apr 1, 2018, 12:57 PM

    @NoNameRo Hi!

    Thanks for the reply :)
    I’ll give it a try later when the kids are sleeping.

    Cheers,
    Mike

    1 Reply Last reply Reply Quote 0
    • M Offline
      Mikgabo @NoNameRo
      last edited by Apr 1, 2018, 2:02 PM

      @NoNameRo

      Hi, So I placed this command sudo tvservice -o to turn offi in terminal and this is the result…any feedback?

      pi@MagicMirror:~ $ sudo tvservice -o to turn off
      [E] Unrecognized argument -- 'to'
      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          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
      

      FYI this is how i’m trying to configure my PIR https://www.magicmirrorcentral.com/pir-sensor-raspberry-pi-magic-mirror/
      If you have a soluton that currently works on your Pi ZERO please pass it on.

      Thanks,
      Mike

      N 1 Reply Last reply Apr 1, 2018, 3:34 PM Reply Quote 0
      • N Offline
        NoNameRo @Mikgabo
        last edited by Apr 1, 2018, 3:34 PM

        @Mikgabo
        To test if it works, you should enter it correctly

        to turn off the screen

        sudo tvservice -o
        or
        vcgencmd display_power 0
        

        to turn on the screen

        sudo tvservice -p
        or
        vcgencmd display_power 1
        

        please follow the instructions under 2.2 Using PIR-Script, then your PIR will work too

        M 2 Replies Last reply Apr 1, 2018, 3:56 PM Reply Quote 0
        • M Offline
          Mikgabo @NoNameRo
          last edited by Apr 1, 2018, 3:56 PM

          @NoNameRo Thanks! I’ll give it a try.

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mikgabo @NoNameRo
            last edited by Apr 1, 2018, 6:16 PM

            @NoNameRo

            Thanks SOO much!!! Got er working now. I really appreciate your help in the matter!!!

            Cheers,
            Mike

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            2 / 2
            • First post
              11/15
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy