Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118820
b: refs/heads/master
c: 2dba1b5
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Renninger authored and Len Brown committed Nov 8, 2008
1 parent 3484565 commit 59fa25e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 540b8bb9c33935183ceb5bed466a42ad72b2af56
refs/heads/master: 2dba1b5d87e08a294da5cdfa4d32908000e9b085
29 changes: 19 additions & 10 deletions trunk/drivers/misc/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4932,16 +4932,25 @@ static int __init brightness_init(struct ibm_init_struct *iibm)
*/
b = tpacpi_check_std_acpi_brightness_support();
if (b > 0) {
if (thinkpad_id.vendor == PCI_VENDOR_ID_LENOVO) {
printk(TPACPI_NOTICE
"Lenovo BIOS switched to ACPI backlight "
"control mode\n");
}
if (brightness_enable > 1) {
printk(TPACPI_NOTICE
"standard ACPI backlight interface "
"available, not loading native one...\n");
return 1;

if (acpi_video_backlight_support()) {
if (brightness_enable > 1) {
printk(TPACPI_NOTICE
"Standard ACPI backlight interface "
"available, not loading native one.\n");
return 1;
} else if (brightness_enable == 1) {
printk(TPACPI_NOTICE
"Backlight control force enabled, even if standard "
"ACPI backlight interface is available\n");
}
} else {
if (brightness_enable > 1) {
printk(TPACPI_NOTICE
"Standard ACPI backlight interface not "
"available, thinkpad_acpi native "
"brightness control enabled\n");
}
}
}

Expand Down

0 comments on commit 59fa25e

Please sign in to comment.