Fix maxium backlight level restored issue
The origin check for bring back max value for '0' backlight level is ok for legacy or combo control method as '0' mostly doesn't act in ideal lowest level. But it breaks in using kernel control method which should provide a reasonable backlight range. This is tested fine on T61 with thinkpad_acpi module.
This commit is contained in:
parent
32e7d47925
commit
8d7cbab267
|
|
@ -400,7 +400,8 @@ i830SetLVDSPanelPower(xf86OutputPtr output, Bool on)
|
|||
* they'll always re-maximize the brightness.
|
||||
*/
|
||||
if (!(INREG(PP_CONTROL) & POWER_TARGET_ON) &&
|
||||
dev_priv->backlight_duty_cycle == 0)
|
||||
dev_priv->backlight_duty_cycle == 0 &&
|
||||
pI830->backlight_control_method < BCM_KERNEL)
|
||||
dev_priv->backlight_duty_cycle = dev_priv->backlight_max;
|
||||
|
||||
OUTREG(PP_CONTROL, INREG(PP_CONTROL) | POWER_TARGET_ON);
|
||||
|
|
|
|||
Loading…
Reference in New Issue