Here's a patch which just flips the interpretation of that value over;This works - the backlight stays on, and can be switched off with Fn-F6.
does this work?
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 04d79fd..43faa9d 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -207,6 +207,7 @@ u32 intel_panel_get_backlight(struct drm_device *dev)
u8 lbpc;
pci_read_config_byte(dev->pdev, PCI_LBPC,&lbpc);
+ lbpc = 0xff - lbpc;
val *= lbpc;
}
}
@@ -238,7 +239,7 @@ static void intel_panel_actually_set_backlight(struct drm_device *dev, u32 level
lbpc = level * 0xfe / max + 1;
level /= lbpc;
- pci_write_config_byte(dev->pdev, PCI_LBPC, lbpc);
+ pci_write_config_byte(dev->pdev, PCI_LBPC, 0xff - lbpc);
}
tmp = I915_READ(BLC_PWM_CTL);