Commit graph

5 commits

Author SHA1 Message Date
Theluga
4a4db6e2be
Update autobrightness.sh
Now it saves the path to the variable after detecting the correct path
2023-12-21 18:11:08 +00:00
steel99xl
07e9284ec4
minor update autobrightness.sh
The only possible issue I could see with the * in the iio device is if you have 2 sensors, also I'm not 100% sure if it has to check each iio device every time the value is called
2023-12-21 12:50:47 -05:00
Theluga
346577c270
Update autobrightness.sh
default sensitivity to use.
2023-12-19 17:04:06 +00:00
Theluga
39ff5f9d8b
Improved sensor detection and more
Removed nonsensical function, 
improved sensor detection with * : very important when you have multiple sensors that are changing device order when booting
improved user configurable variable on the top of scrip
detecting minimum illuminance to set minimum brightness inside the loop (now brightness key works)
2023-12-19 12:51:50 -03:00
Theluga
4e6c8ee256
fixing typo adding new script and service example
I figure out how to proper pull haha sorry for the confusion

The darker mode, when the illuminance is less than 1 i.e. 0, it will go to the target brightness that is 1. The target can be easily changed.

If the file AB.offset have 0 as value. Darker mode is activated and setting brightness will reset to target value 1 when illuminance is less than 1. if the file has value of 1, it will be the normal mode and the screen brightness can be adjusted until the illuminance sensor changes.

easier to change variables and places and chmod 666 /tmp/AB.offset for the user to change modes when script is running as root (systemd service) darker mode as default with normal mode done by typing "echo 1 > /tmp/AB.offset"

they are in autobrightness.sh
2023-12-17 14:17:55 +00:00