mboskamp / MMM-PIR

This MagicMirror module monitors a PIR sensor and turns on/off your display. You can even run custom scripts and control it via Telegram.
16 stars 6 forks source link

Turn on display #4

Open ostfilinchen opened 6 years ago

ostfilinchen commented 6 years ago

Hi, if the Display turns off and then it should turned on, the Display is black.

So can you Change the Default Display on and off files to this:

on: /usr/bin/vcgencmd display_power 1

off: /usr/bin/vcgencmd display_power 0

Thanks Daniel

mboskamp commented 6 years ago

Hi, as tvservice works fine for my setup I would like to keep that script. However we can add an option to use vcgencmd instead. I am thinking something like a displayMethod property that you can set in your config. I am pretty busy at the moment, but I will look into this as soon as I find the time. If you like you can implement the changes yourself and start a PR.

Cheers Miklas

Kugelfang666 commented 5 years ago

I manually modified the displayOff.sh and displayON.sh from

tvservice -o to

vcgencmd display_power 0

so the module works with the full KMS OpenGL driver. it works quite nice