Re: i915/kms/backlight-combo mode problem

From: Michael Chang
Date: Tue May 17 2011 - 03:56:16 EST

2011/5/16 Melchior FRANZ <melchior.franz@xxxxxxxxx>:

> I don't even know what an LBPC is, other than a variable named like that.
> So I'd need a hint for how to test that.

It resides at your vga adapter's pci configuration space, offset 0xf4.

You can know your LPBC value by:
$ lspci -xxx -s 00:02.0 | awk '/^f0:/ {print $6}'

And alter it's value via setpci (assuming set it to max)
$ setpci -s 00:02.0 F4.B=ff

I assume you've tried this .. as you report setpci works for you. :)

>From your new attached log, In booting phase your LPBC is set to 255
and actual brightness is maximum (255*2890=736950). I see no other
change after it until manual brightness change. This is a totally
reversed to your problem.

Could you help to get the LPBC value in the initial dark condition? If
it's not corresponds to 255, maybe something sneaks and changes it but
not logged.

[ 3.125522] [drm:is_backlight_combination_mode],
[ 3.125525] [drm:intel_panel_get_max_backlight], max backlight PWM = 736950
[ 3.125527] [drm:intel_panel_set_backlight], set backlight PWM = 736950
[ 3.125529] [drm:is_backlight_combination_mode],
[ 3.125531] [drm:is_backlight_combination_mode],
[ 3.125533] [drm:intel_panel_get_max_backlight], max backlight PWM = 736950
[ 3.125535] [drm:intel_panel_set_backlight], set backlight max = 736950
[ 3.125537] [drm:intel_panel_set_backlight], set backlight lbpc = 255
[ 3.125544] [drm:intel_panel_set_backlight], set backlight level = 2890

> Yes, that's the case. (Except that after closing the lid it's off again.)

Maybe this is another clue for root cause. Would it be convenient for
you to gather the log?

1. $ dmesg -c
2. Close the lid
3. Open the lid
4. $ dmesg > dmesg.lid

Thanks a lot,
Michael Chang
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at