Abdullah ibn Nadjo
6180bb3f5c
Logging of clamps, saves and restores
пре 7 година
Abdullah ibn Nadjo
f288657500
Rewrite light_execute for readability and avoiding unnecessary oper.
пре 7 година
Abdullah ibn Nadjo
6860e111a5
Cache max brightness data from automatic controller detection
пре 7 година
Abdullah ibn Nadjo
9fda8acac0
Improve light folder checking readability
пре 7 година
Abdullah ibn Nadjo
ccff2b57cd
Improve overall logging
пре 7 година
Abdullah ibn Nadjo
55fe7a9eaf
Don't check unsigned int about negative values
пре 7 година
Abdullah ibn Nadjo
9f9d6ae447
Fix wrong behavior of 'light_controllerAccessible'
This function was:
- Reading values from the controller
- Checking write permission even when we just want reading values
- Checking the mincap file instead of the actual controller
The last one is also true for other functions using
'light_getBrightness'.
This commit fixes that.
пре 7 година
Abdullah ibn Nadjo
01e73a2d3d
Fix unclosed DIR when targeting keyboard
пре 7 година
Abdullah ibn Nadjo
accee29c18
Don't check '/etc/light' folder when unnecessary
пре 7 година
Abdullah ibn Nadjo
6aea2b15bf
Improve 'if' readability
пре 7 година
Abdullah ibn Nadjo
2f14acb12e
Avoid redondant checking
пре 7 година
Abdullah ibn Nadjo
3b2835b626
Check if controller is accessible before getting value
пре 7 година
Abdullah ibn Nadjo
9f12ff92a2
Avoid checking for write permission if just getting value
пре 7 година
Sebastian Müller
f0da610cf1
Add -k flag for keyboard backlight support
пре 8 година
Fredrik Haikarainen
77e89d1d34
Fixes #5
пре 10 година
Fredrik Haikarainen
24f6a72cdd
Do not explicitly cast void pointers from malloc
пре 10 година
Fredrik Haikarainen
8dfe104b74
Added save/restore functionality
пре 10 година
Fredrik Haikarainen
a8746f9171
Fixed missing break
пре 10 година
Fredrik Haikarainen
b60192102d
Added operationmode to list controllers (-L)
пре 10 година
Fredrik Haikarainen
cbb147b4e7
Made sure /etc directories exists
пре 10 година
Fredrik Haikarainen
057bb40d04
Fix #1
пре 10 година
Fredrik Haikarainen
adf0861847
Full rewrite (0.9)
пре 10 година