mikhail-m1 / illuminanced

Ambient Light Sensor Daemon for Linux
GNU General Public License v3.0
60 stars 19 forks source link

Default config does not work on Framework 16 and documentation is too lacking to help #18

Open Franscobec opened 3 months ago

Franscobec commented 3 months ago

Hi, I just want to mention that the default config does not work on the Framework 16 because the backlight files are incorrect. While the info page provides the correct sensor to look for, I feel like some extra documentation would be appreciated by many.

I have made a thread on Framework forums about the correct config to be used with the 16 and potentially the AMD FW13 (cannot verify though as I do not own a 13).

The configuration needed for customization is also very vague and would need more clarification since as of right now, the only way to customize it is to do alot of trial and error. But that has already been mentionned I think in #12.

mikhail-m1 commented 3 months ago

Hi, I am not sure how I can help, I don't have any Framework laptop, and cannot create config for it. But would glad to add the config to the repository if someone created it.

Franscobec commented 3 months ago

Hi, I am not sure how I can help, I don't have any Framework laptop, and cannot create config for it. But would glad to add the config to the repository if someone created it.

I have created a working config for the Framework 16. This configuration might also work with machines equipped with AMD iGPUs:

### Lines changed in /etc/illuminanced.toml: max_backlight_file = "/sys/class/backlight/amdgpu_bl2/max_brightness" backlight_file = "/sys/class/backlight/amdgpu_bl2/brightness" illuminance_file = "/sys/bus/iio/devices/iio:device0/in_illuminance_raw"

This config might work with the Framework 13 (AMD) since it shares the same light sensor but I have no way to test for sure.

greglaurent commented 2 months ago

I have the Framework 13 AMD version. Tested and running with slightly different paths to the backlight files.

max_backlight_file = "/sys/class/backlight/amdgpu_bl1/max_brightness"
backlight_file = "/sys/class/backlight/amdgpu_bl1/brightness"
illuminance_file = "/sys/bus/iio/devices/iio:device0/in_illuminance_raw"