Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Franscobec opened this issue Jul 24, 2024 · 7 comments

Comments

@Franscobec
Copy link

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
Copy link
Owner

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
Copy link
Author

Franscobec commented Jul 24, 2024

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
Copy link

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"

@ratijas
Copy link

ratijas commented Nov 27, 2024

The way it "does not work" is… the binary just exits with a failure code without any hints or explanations.

@mikhail-m1
Copy link
Owner

the only solution I can think of is to write a scrip which will check all known paths for the sensor and create config, I will try to find time to implement it, but if someone want to do it that would be great.

@ratijas
Copy link

ratijas commented Nov 27, 2024

IMHO some predefined configs for known laptop models would do for now. That plus some error reporting to systemd journal instead of having to debug the logs (isn't that as easy as just printing to stdout/stderr?)

@WAPEETY
Copy link

WAPEETY commented Dec 22, 2024

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.

If you want I made a small guide here: https://github.com/WAPEETY/Arch-Framework16?tab=readme-ov-file#3-ambient-light-sensor I don't know if the config is completely correct but seems to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants