Giter Site home page Giter Site logo

backlight-copy's Introduction

backlight-copy

This script will copy brightness settings from source device to destination device.

Copy process is required for me because I have two graphic cards. One is integrated intel and second is amd radeon. When xfce power manager decides on what device brightness should be set it uses first available (I think). For me it decides to use intel card which is not used for display.

I haven't found any working solution which will allow to select on destination device in xfce power manager. To make this work I decided to write simple bash script which will monitor for changes in intel_backlight (acpi_video1) and copy current brightness level to destination decided. So it will copy brightness level from intel card to amd card.

How to install

requirements

ionotify binary must be installed: sudo apt-get install

installation

copy backlight-copy to /usr/local/sbin copy backlight-copy.init.d to /etc/init.d directory and configure this script to be executed on boot.

sudo cp backlight-copy /usr/local/sbin
sudo cp backlight-copy.init.d /etc/init.d/backlight-copy
sudo update-rc.d backlight-copy defaults

and that's all now when you change brightness level using fn keys intel brightness settings will be copied to radeon card.

backlight-copy's People

Contributors

pchudzik avatar

Watchers

 avatar  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.