Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

[Enhancement] Replace tvservice with vcgencmd #25

Open
anmith opened this issue Mar 15, 2017 · 3 comments
Open

[Enhancement] Replace tvservice with vcgencmd #25

anmith opened this issue Mar 15, 2017 · 3 comments

Comments

@anmith
Copy link

anmith commented Mar 15, 2017

Hi,
as tvservice always needs the virtual console thing, how about replacing it with vcgencmd?

/opt/vc/bin/vcgencmd display_power 0

turns off display power while

/opt/vc/bin/vcgencmd display_power 1

turns the power back again.

Detailed info: http://www.elinux.org/RPI_vcgencmd_usage

@eckonator
Copy link

eckonator commented Apr 5, 2018

Hi @anmith,
i think you're right. Here is my working vcgencmd-Replacment:

https://pastebin.com/5n8zqL5a

Just copy&paste this into this file:
/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js
and replace the whole existing code there.

Maybe it helps someone and hope it finds a way into the master branch of this module @paviro?

@Simon089
Copy link

Simon089 commented Apr 9, 2018

Hi,

I wanted to create a PR with some changes I made for resetting the timer when someone is still standing in front of the mirror. I will include the vcgencmd, too.
So hopefully this finds its way to into the master branch.

Edit: There it is: #42

@ubertao
Copy link

ubertao commented Jun 28, 2018

PR #42 works great for me.

chvt refuses to run without sudo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants