Skip to main content

Screen backlight adjustment

Project description

Pypi Package Licence

plight allows screen backlight adjustment.

Install

To install plight:

pip install plight

or clone the repo and:

python setup.py install

You must allow users in the video group to change the brightness, a udev rule such as the following can be used:

/etc/udev/rules.d/backlight.rules

ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

where acpi_video0 must be replaced by the right directory. Then add user to video group:

gpasswd -a user video

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

plight-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file plight-0.0.1.tar.gz.

File metadata

  • Download URL: plight-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for plight-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5ec73d143b4404f6b9f4515f6b60c86d0042bbd05db5feafbb646f6f59a22dbe
MD5 0d789c8350f3a605a0ebd7ebabc2d21a
BLAKE2b-256 2347f682d6b357ce50395dd6411913b3a61618940169504513183de7ff1af377

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