[Powerdevil] [Bug 448459] Logarithmic brightness scaling

2022-09-17 Thread Peter Newcomb
https://bugs.kde.org/show_bug.cgi?id=448459

--- Comment #8 from Peter Newcomb  ---
Yes, great news, Eric!  I've been using the patch I posted above since I posted
it, but got bogged down trying to set up a proper KDE build so that I could
submit a complete contribution.  Then I got too busy with other things.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 448459] [Usability] Logarithmic brightness scaling

2022-01-23 Thread Peter Newcomb
https://bugs.kde.org/show_bug.cgi?id=448459

--- Comment #4 from Peter Newcomb  ---
Sounds good.  I'll start looking into fully fleshing out the feature.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 448459] [Usability] Logarithmic brightness scaling

2022-01-23 Thread Peter Newcomb
https://bugs.kde.org/show_bug.cgi?id=448459

Peter Newcomb  changed:

   What|Removed |Added

 CC||petenewc...@gmail.com

--- Comment #2 from Peter Newcomb  ---
Created attachment 145804
  --> https://bugs.kde.org/attachment.cgi?id=145804&action=edit
nacent but functional logarithmic brightness hack

Hi Eric,

It turns out that I just implemented this for myself, though on 5.18.4.1.  I
thought I had searched for such a thing before, but failed to find this bug
before I started coding.  I think the code I have does the math and implements
the functionality properly (at least for my X13 Yoga OLED), but it's currently
an #ifdef hack rather than a proper configuration or heuristic switch.

The tricky thing turned out to be the need to segment the function into a
linear (identity) portion on the low-end and a logarithmic/exponential portion
on the high end, with a bit of interpolation to calculate percentages in
between.

Anyway, I've attached my patch as-is in case it's helpful, happy to discuss if
you're interested.  I'm also happy to help bring it up to snuff for a proper
contribution, but I recognize that you probably have your own implementation
well in hand already.  Either way, I'm looking forward to having the
functionality mainlined so I won't have to keep patching forever.  :-)

Thanks for taking this on!

-- 
You are receiving this mail because:
You are watching all bug changes.