Brightify is an OS-independent application that adjusts monitor brightness using the DDC/CI protocol and custom protocols for USB monitors, featuring a brightness sensor for automatic adjustments based on ambient light, and can be controlled via a taskbar icon.
Project description
This app allows you to set the brightness of your monitor(s). It is essentially a wrapper around the DDC/CI protocol, which is supported by most monitors. It also supports adding custom communication protocols to control the brightness of USB monitors. For this, you most likely need to reverse engineer the communication protocol of the monitor. In my experience, this provides a more stable experience than using the DDC/CI protocol. You can find an example implementation for the Gigabyte M27Q in here. The app is designed to be run in the background and can be controlled via a taskbar icon. It also supports a brightness sensor that can automatically adjust the brightness based on the ambient light.
Getting started
- Install brightify by running
pip install Brightify
. This package is regularly uploaded to PyPi. If you want to install the latest version, you can clone this repository from GitHub and install it withpip install -e .
in the root directory. - To start the app:
python -m brightify run
. You can exit either by right-clicking the icon in the taskbar and selecting "Exit" or by pressingCtrl+C
in the terminal. - To start the app at startup (or logon) and add a menu icon, run
python -m brightify add all
. To remove the both, runpython -m brightify remove all
.
Optional arguments
There are several other arguments you can pass to the app, see python -m brightify --help
for more information.
- To target add/remove only the startup run
python -m brightify add/remove startup
.- To add a task to the task scheduler on Windows, pass
--use-scheduler
. It will request elevated permissions.
- To add a task to the task scheduler on Windows, pass
- To add/remove only the menu icon run
python -m brightify add/remove menu-icon
. - By default, the terminal will be hidden, but you can change this by passing the
--force-console
argument to therun
oradd
action. - To disable animations, pass the
--no-animations
argument to therun
oradd
action.
Set up the brightness sensor
- Modify the SensorComm class to match your device and firmware
- Modify the code that is polling from the brightness sensor Device Firmware
- Modify platformio.ini and enter your board ( see supported boards)
- Run
pio run -t upload
in the terminal to upload the firmware to the board. If everything is working, the Auto Checkbox for each supported Monitor should now be clickable
Remarks
- Currently, only the Windows task bar icon is supported, the main part of this app is OS independent.
- Feel free to create a pull request and add your own USB Monitor
- Note that a USB Monitor will replace a DDC/CI Monitor with the same name. If you want to use both, you need to change the name of your USB Monitor implementation. In case a monitor is found but does not send its name, we cannot distinguish between DDC/CI and USB Monitors. In this case, both will be added.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file brightify-0.1.10.tar.gz
.
File metadata
- Download URL: brightify-0.1.10.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac2f4d109c3f2b3208a1f1f1ef07d23793503346abda95874a3c85df0cd4ddb0 |
|
MD5 | 27a75d44d824f9a081fa7b714c7f3a64 |
|
BLAKE2b-256 | 65203b43ca07656440745fabc2d3b785878938c6524273bfe42a56025ed38828 |
File details
Details for the file Brightify-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: Brightify-0.1.10-py3-none-any.whl
- Upload date:
- Size: 46.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675e04c61127784a3add62a6bf04ae953aabdc5c5a70b0e558df1437eb7c71ae |
|
MD5 | 87b6560a6d4b49dfef8abfd1de8f571f |
|
BLAKE2b-256 | b549e65aeab70ae527aea3ccb321679842d967d8beddfced16f51ddc2fd2ccee |