-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mb/system76: Add custom backlight levels for Intel GMA
Add custom backlight levels for all models except: - addw1 - bonw14: Does not use the iGPU Change-Id: Ibea37f19acca0d718211fc41706019a92a240c70 Signed-off-by: Tim Crawford <[email protected]>
- Loading branch information
Showing
23 changed files
with
273 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
|
||
Scope (\_SB) { | ||
#include "sleep.asl" | ||
Scope (PCI0) { | ||
#include "backlight.asl" | ||
} | ||
} | ||
|
||
Scope (\_GPE) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
|
||
Scope (\_SB) { | ||
#include "sleep.asl" | ||
Scope (PCI0) { | ||
#include "backlight.asl" | ||
} | ||
} | ||
|
||
Scope (\_GPE) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
Scope (\_SB) | ||
{ | ||
#include "sleep.asl" | ||
Scope (PCI0) { | ||
#include "backlight.asl" | ||
} | ||
} | ||
|
||
Scope (\_GPE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
|
||
Scope (\_SB) { | ||
#include "sleep.asl" | ||
Scope (PCI0) { | ||
#include "backlight.asl" | ||
} | ||
} | ||
|
||
Scope (\_GPE) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,7 @@ | |
|
||
Scope (\_SB) { | ||
#include "sleep.asl" | ||
Scope (PCI0) { | ||
#include "backlight.asl" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,7 @@ | |
|
||
Scope (\_SB) { | ||
#include "sleep.asl" | ||
Scope (PCI0) { | ||
#include "backlight.asl" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <drivers/intel/gma/acpi/gma.asl> | ||
|
||
Scope (GFX0) | ||
{ | ||
Name (BRIG, Package (22) { | ||
40, /* default AC */ | ||
40, /* default Battery */ | ||
5, | ||
10, | ||
15, | ||
20, | ||
25, | ||
30, | ||
35, | ||
40, | ||
45, | ||
50, | ||
55, | ||
60, | ||
65, | ||
70, | ||
75, | ||
80, | ||
85, | ||
90, | ||
95, | ||
100 | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
|
||
Scope (\_SB) { | ||
#include "sleep.asl" | ||
Scope (PCI0) { | ||
#include "backlight.asl" | ||
} | ||
} | ||
|
||
Scope (\_GPE) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters