Giter Club home page Giter Club logo

turn-off-screen's Introduction

turn-off-screen Build Status

A simple utility written in Python to turn off your screen display.

Works on works on Linux, Windows and Mac OS.

###Download Executables### For Windows

For Linux

###Running source on Windows## You'll need the Python libraries that supports the Win32 API. You can download it from sourceforge here

###Next Step### I'd like to rewrite the turnoff.py in one line. Appreciate any Pull requests.

turn-off-screen's People

Contributors

arjun024 avatar hagrid67 avatar wikilicious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

turn-off-screen's Issues

Script Hangs in Windows 8.1

Thanks for the script.
I encountered an issue using it in Windows 8.1.
It works fine, however; the script hangs even after I wake my monitors again.
e.g.
SC_MONITORPOWER = 0xF170
win32gui.SendMessage(win32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND, SC_MONITORPOWER, 2)
print 'All done'

The Python window stays open even after I wake my monitors i.e. it never reaches the print 'All done' statement.

Add sleep for mac

!/usr/bin/python

import subprocess
subprocess.call('echo "tell application "Finder" to sleep" | osascript ', shell=True)

Doesnt really work

This library is equivalent to unplugging the hdmi cable and then plugging it right back in.

So, it works for a brief few seconds [ appears to be shutoff ] until the computer finds the hdmi signal again, and the monitor continues as nothing happened.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.