MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    MMM-PIR-Senor shut off usb port(s)

    Development
    2
    2
    1334
    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.
    • S
      shgmongohh last edited by

      Hello,

      I think it would be nice, if the usb port is shut down, when the monitor turns of. I have some speakers on my MM via usb and they make some noise. When it is still in the night you can hear it.
      It it possible to cut of the energy supply to one or two usb ports?

      Sebastian

      1 Reply Last reply Reply Quote 0
      • J
        jc21 last edited by

        From the quick googling I’ve done, it may be possible to disable/enable raspberry pi usb power with commands:

        Disable

        echo 0x0 > /sys/devices/platform/bcm2708_usb/buspower
        

        Enable

        echo 0x1 > /sys/devices/platform/bcm2708_usb/buspower
        

        However I haven’t tested. I’d recommend writing a new module that handles this and listens for the USER_PRESENCE event notification that the Pir module triggers.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy