aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-02-13 02:30:43 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-02-13 02:30:43 +0000
commitf67f8ffd430745c1c250c22498427a8f0e0d2ee0 (patch)
treeb12c54ed86c7d2da742a8206fdfef170af85314c
parent35dd1ef75c26340d6cf2936ca5c28e13941a9ded (diff)
downloadsrc-f67f8ffd430745c1c250c22498427a8f0e0d2ee0.tar.gz
src-f67f8ffd430745c1c250c22498427a8f0e0d2ee0.zip
Prefer correct and simpler backlight control methods for ASUS G2K laptop.
Notes
Notes: svn path=/head/; revision=203811
-rw-r--r--sys/dev/acpi_support/acpi_asus.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/sys/dev/acpi_support/acpi_asus.c b/sys/dev/acpi_support/acpi_asus.c
index 51ca6fa35458..f9b9389268a0 100644
--- a/sys/dev/acpi_support/acpi_asus.c
+++ b/sys/dev/acpi_support/acpi_asus.c
@@ -270,8 +270,8 @@ static struct acpi_asus_model acpi_asus_models[] = {
.wled_set = "WLED",
.brn_get = "GPLV",
.brn_set = "SPLV",
- .lcd_get = "\\_SB.PCI0.SBRG.EC0.RPIN",
- .lcd_set = "\\_SB.PCI0.SBRG.EC0._Q10",
+ .lcd_get = "GBTL",
+ .lcd_set = "SBTL",
.disp_get = "\\_SB.PCI0.PCE2.VGA.GETD",
.disp_set = "SDSP",
},
@@ -1134,26 +1134,7 @@ acpi_asus_sysctl_init(struct acpi_asus_softc *sc, int method)
return (FALSE);
case ACPI_ASUS_METHOD_LCD:
if (sc->model->lcd_get) {
- if (strncmp(sc->model->name, "G2K", 3) == 0) {
- ACPI_BUFFER Buf;
- ACPI_OBJECT Arg, Obj;
- ACPI_OBJECT_LIST Args;
-
- Arg.Type = ACPI_TYPE_INTEGER;
- Arg.Integer.Value = 0x11;
- Args.Count = 1;
- Args.Pointer = &Arg;
- Buf.Length = sizeof(Obj);
- Buf.Pointer = &Obj;
-
- status = AcpiEvaluateObject(sc->handle,
- sc->model->lcd_get, &Args, &Buf);
- if (ACPI_SUCCESS(status) &&
- Obj.Type == ACPI_TYPE_INTEGER) {
- sc->s_lcd = Obj.Integer.Value;
- return (TRUE);
- }
- } else if (strncmp(sc->model->name, "L3H", 3) == 0) {
+ if (strncmp(sc->model->name, "L3H", 3) == 0) {
ACPI_BUFFER Buf;
ACPI_OBJECT Arg[2], Obj;
ACPI_OBJECT_LIST Args;