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

RFE: Non-linear scaling #3

Open
Gigadoc2 opened this issue Feb 25, 2020 · 2 comments
Open

RFE: Non-linear scaling #3

Gigadoc2 opened this issue Feb 25, 2020 · 2 comments

Comments

@Gigadoc2
Copy link

As an idea for the far future, it might be nice to have a non-linear scale option. Ideally this should be handled by the video driver, but alas, many of them just expose raw integers into sysfs.

If you want to carry this complexity, blight could add certain non-linear scales useful to correct certain types of displays. Those scales could then be submitted by users with affected displays, and only applied when explicitly specified as an argument.

@rpigott
Copy link
Owner

rpigott commented Mar 18, 2020

I've added several value formats recently after seeing how some others handle their backlights. Not sure if any of them are like what you are interested in, but the new man page describes all the new stuff.

blight could add certain non-linear scales useful to correct certain types of displays.

Do you have anything specific in mind? I've got a few more command ideas and I've been thinking about rewriting this project in C, so it might be nice to get the cli slightly more nailed down before that.

@Gigadoc2
Copy link
Author

Gigadoc2 commented Mar 20, 2020

So, my idea was to be able to specify some kind of custom curve, to map percentage values to actual integers. However, I don't really know how to specify such a curve, except for having blight parse some complex mathematical equations to calculate the value, so that is probably not a good idea.

I tried out your new value formats (thanks a lot!) and found that neither linear nor geometric values seem to do what I want for my display: It seems to behave mostly linear, but then in the lower levels there is a stark drop in brightness at some point.
So, inspired by your stepped values, I have a different Idea than curves: Let the user specify a list of device values, and then allow them to step through them. That way, I can still control how many steps there are and can have a completely arbitrary mapping for even the weirdest of displays.
Of course, that is also complicated, it might even require blight to read a new config file...

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

2 participants