All Projects → mikhail-m1 → illuminanced

mikhail-m1 / illuminanced

Licence: GPL-3.0 License
Ambient Light Sensor Daemon for Linux

Programming Languages

rust
11053 projects
shell
77523 projects

Projects that are alternatives of or similar to illuminanced

lifx-http-api
💡 Thin wrapper around the Lifx HTTP API (http://api.developer.lifx.com/)
Stars: ✭ 17 (-52.78%)
Mutual labels:  light
autosuspend
A daemon to automatically suspend and wake up a system
Stars: ✭ 52 (+44.44%)
Mutual labels:  daemon
ntUPSd
Network UPS Tools upsd Compatible Server for Windows
Stars: ✭ 17 (-52.78%)
Mutual labels:  daemon
libtor
Bundle and run Tor inside your own project
Stars: ✭ 60 (+66.67%)
Mutual labels:  daemon
hid-io-core
HID-IO Library and Daemon
Stars: ✭ 51 (+41.67%)
Mutual labels:  daemon
ferryd
Fast, safe and reliable transit for the delivery of software updates to users.
Stars: ✭ 43 (+19.44%)
Mutual labels:  daemon
GodlyTorch
[NOT MAINTAINED] An app that can control the intensity of the torch of your rooted android device.
Stars: ✭ 16 (-55.56%)
Mutual labels:  light
plenopticam
Light-field imaging application for plenoptic cameras
Stars: ✭ 111 (+208.33%)
Mutual labels:  light
nginx-jwt-module
NGINX module to check for a valid JWT.
Stars: ✭ 39 (+8.33%)
Mutual labels:  light
neutron
Neutron - Staking + Masternode Cryptocurrency
Stars: ✭ 31 (-13.89%)
Mutual labels:  daemon
InplaceEditBoxLib
WPF/MVVM control to implement a textbox on top of other elements like TreeViewItem or ListViewItem (use case: perform in place edit on top of a displayed text item)
Stars: ✭ 28 (-22.22%)
Mutual labels:  light
wigo
Wigo, aka "What Is Going On" is a light pull/push monitoring tool written in Golang.
Stars: ✭ 33 (-8.33%)
Mutual labels:  light
lightsout
🎲 Lights Out Game
Stars: ✭ 23 (-36.11%)
Mutual labels:  light
Lumos
😴 Smart Lighting for Better Sleep
Stars: ✭ 98 (+172.22%)
Mutual labels:  light
fluffy.js
🍱 Makes sure your content – no matter how big it is – will fit in any screen!
Stars: ✭ 47 (+30.56%)
Mutual labels:  light
powerplan
No description or website provided.
Stars: ✭ 27 (-25%)
Mutual labels:  daemon
bulldog
The http checker
Stars: ✭ 13 (-63.89%)
Mutual labels:  daemon
Raspberry-Pi-Clock
A quick and simple Raspberry Pi touchscreen clock with Philips hue, Tado, Dark Sky and Philips TV JointSpace API controls/data
Stars: ✭ 23 (-36.11%)
Mutual labels:  light
core d.js
Offload your heavy lifting to a daemon. Extracted from eslint_d.
Stars: ✭ 21 (-41.67%)
Mutual labels:  daemon
cmdr
POSIX-compliant command-line UI (CLI) parser and Hierarchical-configuration operations
Stars: ✭ 94 (+161.11%)
Mutual labels:  daemon

Ambient Light Sensor Daemon For Linux

It's user mode daemon for change brightness base on light sensor value, designed for Asus Zenbooks, but may be used for other vendors after some tune.

How to test befor install

Run from a terminal sudo watch cat /sys/bus/acpi/devices/ACPI0008\:00/iio\:device0/in_illuminance_raw and check that number is changing (try close the sensor or add more light). If the number is still the same it means the sensor driver doesn't work. If you see file not found error try to find correct path for in_illuminance_raw inside /sys/bus/acpi/devices/.

For ZBook 15 G6, and may be others, sensor path is /sys/bus/iio/devices/iio:device0/in_illuminance_raw. So try sudo watch cat /sys/bus/iio/devices/iio:device0/in_illuminance_raw and change the config if it works for you.

Supported laptops

Works on ASUS Zenbooks with build in driver acpi-als:

  • UX303UB
  • UX305LA
  • UX305FA
  • UX310UQ
  • UX330UA

On Dell Inspiron 13 7353, need to change driver path and brightness levels.

Some times works (base on responses)

  • UX303UA
  • UX305CA with als driver
  • UX430UQ Ubuntu with build in driver acpi-als, an extra ACPI call to enable the sensor (_SB.PCI1.LPCB.EC0.ALSC)
  • UX410UQ

Doesn't work on Zenbooks because of driver issue:

  • UX303LN
  • UX305UA
  • UX31A
  • UX32LN

Something wrong with Arch Linux may be related with syslog, a pull request is appreciated

Please fill a response form, it may helps other users

Keyboard back light is not adjust because my laptop doesn't have it. Want to help? Create an issue.

Install package (experimental)

Finally I found time to create deb package

To install and start run next commands after download:

sudo dpkg -i ~/Download/illuminanced_1.0-0.deb
sudo systemctl enable illuminanced.service
sudo systemctl start illuminanced.service

You can check status by running systemctl status illuminanced.service

Please open an issue if it doesn't work.

How to build & install

  • install Rust: curl https://sh.rustup.rs -sSf | sh
  • clone : git clone https://github.com/mikhail-m1/illuminanced.git
  • build: cd illuminanced; cargo build --release
  • install sudo ./install.sh

How to Adjust

  • open a config file /usr/local/etc/illuminanced.toml (Default)
  • choose how many light values do you need by [general].light_steps
  • set defined points count by [light].points_count
  • set each point by illuminance_<n> and light_<n> where illuminance from in_illuminance_raw (see below) and light in range [0..light_steps)

How it works

Reads illuminance from /sys/bus/acpi/devices/ACPI0008:00/iio:device0/in_illuminance_raw, apply Kalman like filter, set back light value base on defined points. Unfortunately I cannot find a way how get events from iio buffers, for acpi-als driver, so now it polls.

<Fn> + A

Switches three modes:

  • Auto adjust
  • Disabled
  • Max brightness (useful for movies, can be disabled by config file /usr/local/etc/illuminanced.toml)

Contribution

Any feedback are welcome

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].