Skip to content

Commit

Permalink
mb/system76: Use default GMA brightness levels
Browse files Browse the repository at this point in the history
This reverts commit 1f81af5 ("mb/system76: Add custom backlight
levels for Intel GMA").

Defaulting to 40% can make the screen hard to read as System76's
firmware setup uses white text on a gray background.

Change-Id: I13ab3797319c4db6e800737a3f4e4344e3b588f3
Signed-off-by: Tim Crawford <[email protected]>
  • Loading branch information
crawfxrd committed Sep 17, 2024
1 parent 7c024f8 commit 6f94d9a
Show file tree
Hide file tree
Showing 30 changed files with 10 additions and 329 deletions.
31 changes: 0 additions & 31 deletions src/mainboard/system76/adl/acpi/backlight.asl

This file was deleted.

2 changes: 0 additions & 2 deletions src/mainboard/system76/adl/acpi/mainboard.asl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
Scope (\_SB) {
#include "sleep.asl"
Scope (PCI0) {
#include "backlight.asl"

#if CONFIG(DRIVERS_GFX_NVIDIA)
Scope (PEG2) {
#include <drivers/gfx/nvidia/acpi/tigerlake.asl>
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/adl/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DefinitionBlock(
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/alderlake/acpi/southbridge.asl>
#include <soc/intel/alderlake/acpi/tcss.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
31 changes: 0 additions & 31 deletions src/mainboard/system76/cml-u/acpi/backlight.asl

This file was deleted.

3 changes: 0 additions & 3 deletions src/mainboard/system76/cml-u/acpi/mainboard.asl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

Scope (\_SB) {
#include "sleep.asl"
Scope (PCI0) {
#include "backlight.asl"
}
}

Scope (\_GPE) {
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/cml-u/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DefinitionBlock(
{
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/cannonlake/acpi/southbridge.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
31 changes: 0 additions & 31 deletions src/mainboard/system76/gaze15/acpi/backlight.asl

This file was deleted.

1 change: 0 additions & 1 deletion src/mainboard/system76/gaze15/acpi/mainboard.asl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Scope (\_SB) {
#include "sleep.asl"
Scope (PCI0) {
#include "backlight.asl"
Device (PEGP) {
Name (_ADR, CONFIG_DRIVERS_GFX_NVIDIA_BRIDGE << 16)
#include <drivers/gfx/nvidia/acpi/coffeelake.asl>
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/gaze15/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ DefinitionBlock(
Device (\_SB.PCI0) {
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/cannonlake/acpi/southbridge.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
31 changes: 0 additions & 31 deletions src/mainboard/system76/kbl-u/acpi/backlight.asl

This file was deleted.

4 changes: 0 additions & 4 deletions src/mainboard/system76/kbl-u/acpi/mainboard.asl
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */

Scope (\_SB) {
Scope (PCI0) {
#include "backlight.asl"
}

#include "ac.asl"
#include "battery.asl"
#include "buttons.asl"
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/kbl-u/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DefinitionBlock(
{
#include <soc/intel/skylake/acpi/systemagent.asl>
#include <soc/intel/skylake/acpi/pch.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
31 changes: 0 additions & 31 deletions src/mainboard/system76/oryp5/acpi/backlight.asl

This file was deleted.

1 change: 0 additions & 1 deletion src/mainboard/system76/oryp5/acpi/mainboard.asl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Scope (\_SB)
{
#include "sleep.asl"
Scope (PCI0) {
#include "backlight.asl"
Device (PEGP) {
Name (_ADR, CONFIG_DRIVERS_GFX_NVIDIA_BRIDGE << 16)
#include <drivers/gfx/nvidia/acpi/coffeelake.asl>
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/oryp5/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DefinitionBlock(
{
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/cannonlake/acpi/southbridge.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
31 changes: 0 additions & 31 deletions src/mainboard/system76/oryp6/acpi/backlight.asl

This file was deleted.

1 change: 0 additions & 1 deletion src/mainboard/system76/oryp6/acpi/mainboard.asl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Scope (\_SB) {
#include "sleep.asl"
Scope (PCI0) {
#include "backlight.asl"
Device (PEGP) {
Name (_ADR, CONFIG_DRIVERS_GFX_NVIDIA_BRIDGE << 16)
#include <drivers/gfx/nvidia/acpi/coffeelake.asl>
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/oryp6/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ DefinitionBlock(
Device (\_SB.PCI0) {
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/cannonlake/acpi/southbridge.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
31 changes: 0 additions & 31 deletions src/mainboard/system76/rpl/acpi/backlight.asl

This file was deleted.

2 changes: 0 additions & 2 deletions src/mainboard/system76/rpl/acpi/mainboard.asl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
Scope (\_SB) {
#include "sleep.asl"
Scope (PCI0) {
#include "backlight.asl"

#if CONFIG(DRIVERS_GFX_NVIDIA)
#if CONFIG(SOC_INTEL_ALDERLAKE_PCH_P) || CONFIG(BOARD_SYSTEM76_BONW15) || CONFIG(BOARD_SYSTEM76_BONW15_B)
Scope (PEG2) {
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/rpl/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DefinitionBlock(
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/alderlake/acpi/southbridge.asl>
#include <soc/intel/alderlake/acpi/tcss.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
31 changes: 0 additions & 31 deletions src/mainboard/system76/tgl-h/acpi/backlight.asl

This file was deleted.

1 change: 0 additions & 1 deletion src/mainboard/system76/tgl-h/acpi/mainboard.asl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Scope (\_SB) {
#include "sleep.asl"
Scope (PCI0) {
#include "backlight.asl"
Scope (PEG1) {
#include <drivers/gfx/nvidia/acpi/tigerlake.asl>
}
Expand Down
1 change: 1 addition & 0 deletions src/mainboard/system76/tgl-h/dsdt.asl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DefinitionBlock(
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/tigerlake/acpi/southbridge.asl>
#include <soc/intel/tigerlake/acpi/tcss.asl>
#include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}

#include <southbridge/intel/common/acpi/sleepstates.asl>
Expand Down
Loading

0 comments on commit 6f94d9a

Please sign in to comment.