Git Product home page Git Product logo

gnome-display-brightness-ddcutil's Introduction

Display Brightness Slider for Gnome Shell

screenshot

Setup ddcutil

  1. install ddcutil

  2. Manually load kernel module i2c-dev

sudo modprobe i2c-dev
  1. Verify that your monitor supports brightness control
ddcutil capabilities | grep "Feature: 10"
  1. udev rule for giving group i2c RW permission on the /dev/i2c devices
sudo cp /usr/share/ddcutil/data/45-ddcutil-i2c.rules /etc/udev/rules.d
  1. Create i2c group and add yourself
sudo groupadd --system i2c

sudo usermod $USER -aG i2c
  1. load i2c-dev automatically
sudo touch /etc/modules-load.d/i2c.conf

sudo sh -c 'echo "i2c-dev" >> /etc/modules-load.d/i2c.conf'
  1. Reboot for changes to take effect
sudo reboot

This tool uses ddcutil as backend, so first make sure that your user can use use following shell commands without root or sudo.

ddcutil getvcp 10 to check the brightness of a monitor and

ddcutil setvcp 10 100 to set the brightness to 100

It automatically supports multiple displays detected by

ddcutil detect

Installation

Automatically from GNOME extensions

You can find this extension here

Manually from the source code

Clone this repo and in the repo's root directory run these shell commands

make build
make install

Issues

Screen hangs/locks on first startup

In my hardware for some reason when ddcutil detect is ran for the first time after a cold boot and then, when it checks for i2c busno=1, whole system locks for couple of seconds. As a workaround I changed this extension to read cached info from a file, when it exists.

ddcutil --brief detect > $XDG_CACHE_HOME/ddcutil_detect

Credits

This extension is developed and maintained by @daitj

Thanks to the following people for contributing via pull requests:

  • @oscfdezdz for adding new settings UI, keyboard shortcuts and ability to set icon location

Thanks to the following extensions for the inspiration

gnome-display-brightness-ddcutil's People

Contributors

1player avatar benimautner avatar daitj avatar jeremyckahn avatar nobuto-m avatar oscfdezdz avatar p-mng avatar ryanfitzsimon avatar twobiers avatar

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.