Re: [Intel-gfx] [PATCH v4] drm/i915: Set brightness maximum to a fixed value 100.

2015-11-11 Thread Shih-Yuan Lee (FourDollars)
On Wed, Nov 11, 2015 at 02:05:57PM +0200, Jani Nikula wrote: > On Wed, 11 Nov 2015, "Shih-Yuan Lee (FourDollars)" > wrote: > > Take Dell XPS 13 (2015) as an example. The vbt min 10 out of [0..255]. > > The PWM max is 937 so the corresponding PWM min is 37 (10*937/256). > > This commit makes the s

Re: [Intel-gfx] [PATCH v4] drm/i915: Set brightness maximum to a fixed value 100.

2015-11-11 Thread Jani Nikula
On Wed, 11 Nov 2015, "Shih-Yuan Lee (FourDollars)" wrote: > Take Dell XPS 13 (2015) as an example. The vbt min 10 out of [0..255]. > The PWM max is 937 so the corresponding PWM min is 37 (10*937/256). > This commit makes the sysfs brightness 1 map to the PWM brightness 37 > and 100 map to the PWM

[Intel-gfx] [PATCH v4] drm/i915: Set brightness maximum to a fixed value 100.

2015-11-10 Thread Shih-Yuan Lee (FourDollars)
Take Dell XPS 13 (2015) as an example. The vbt min 10 out of [0..255]. The PWM max is 937 so the corresponding PWM min is 37 (10*937/256). This commit makes the sysfs brightness 1 map to the PWM brightness 37 and 100 map to the PWM brightness 937. Signed-off-by: Shih-Yuan Lee (FourDollars) --- d