Skip to main content

Simple script to turn off all monitors

Project description

monoff

When run via "python -m monoff", will turn off all monitors. Typing on the keyboard or moving the mouse should bring the monitors back. If your monitors auto-detect digital inputs, they should switch to another source if one is available. May be used to switch all monitors in one command in this manner as opposed to individually selecting sources on each monitor.

Should work for Windows, Linux, and Mac. Not tested for Mac.

Notes for different platforms

Windows:

Requires pywin32 (not installed automatically)
Uses pywin32 to broadcast an SC_MONITORPOWER
[https://docs.microsoft.com/en-us/windows/win32/menurc/wm-syscommand](Microsoft Documentation)

Linux:

Uses "xset dpms force off"

Mac (not tested):

Uses "pmset displaysleepnow"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monoff-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distributions

monoff-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

monoff-0.0.2-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file monoff-0.0.2.tar.gz.

File metadata

  • Download URL: monoff-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

File hashes

Hashes for monoff-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a74c533614fa630799380ba44bb82facd1658fbeb0b95b5f52a9f447952dece0
MD5 9c1ffc995ff7ce5628d29cde75b9fec6
BLAKE2b-256 2b7a80c84614170d34c794139bf90886f454f4ceda3fcf96155952a8c7bae5ef

See more details on using hashes here.

File details

Details for the file monoff-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: monoff-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

File hashes

Hashes for monoff-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99cf797748a26cf799c23094402348b137ee928e81954d7ac043a64e4ec5c418
MD5 11c8a43299d9d1581a9283f6748ac4dc
BLAKE2b-256 f60516c4dd2bac8210d0d912a3ba41ecb42b948617572557a6b0aad707c66d53

See more details on using hashes here.

File details

Details for the file monoff-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: monoff-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

File hashes

Hashes for monoff-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a140091b6186f2f7e4fef17dc7ce1ca33af85dbd19241cd1b34be6a00ae9192a
MD5 4d8a838663333f73b809e864429dd40a
BLAKE2b-256 f80d03f537e45fc230f05248e966439e862474ffce00688d4f9b6d151a4bad71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page