Skip to content

Instantly share code, notes, and snippets.

View iiiGerardoiii's full-sized avatar
💭
jdimsa

Gerardo iiiGerardoiii

💭
jdimsa
  • Monterrey, NL, México
View GitHub Profile
@iiiGerardoiii
iiiGerardoiii / monitor.py
Last active August 24, 2017 20:49 — forked from sinrig/monitor.py
Python script to turn off an HDMI-connected monitor on a Raspberry Pi
# This program monitors the screensaver and turns the monitor off
# when the screensaver blanks the screen, and back on again when
# the screensaver unblanks the screen.
# once you put this file in /home/pi/.local/bin/ type:
# sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
# and add this line:
# @python /home/pi/.local/bin/monitor.py
import sys # for exit()