kern/90607: [PATCH] Support for ASUS A4D laptop

Wojciech A. Koszek dunstan at
Sun Dec 18 11:10:20 PST 2005

>Number:         90607
>Category:       kern
>Synopsis:       [PATCH] Support for ASUS A4D laptop
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 18 19:10:02 GMT 2005
>Originator:     Wojciech A. Koszek
>Release:        FreeBSD 7.0-CURRENT i386
System: FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sun Dec 18 01:31:49 CET 2005 dunstan at i386


Support for my ASUS A4D. I couldn't find right parameters for video output.
Other come from debugged ACPI (with reporting turned on). At current stage,
I have no problems with either brightness increasing/descreasing, (using
Fn+(F5,F6) makes needed changes to hw.acpi.asus.lcd_brightness), or turning
message LED on/off.

After uncommenting these two, currently commented lines (values fetch from
output of ACPI debugging together with recognizing function of the key with
help of it's icon), I have expirienced following problems: loading kernel
module or traversing sysctl(9) tree disables LCD display, and turning its on
means hitting keys mentioned above several times. Also video_output just
after module loading seems a little bit odd:

root at laptop:(/usr/src/sys/modules/acpi/acpi_asus)# sysctl hw.acpi.asus
hw.acpi.asus.lcd_brightness: 15
hw.acpi.asus.video_output: 52

Switching from 0 to 7 give me nothing.


My proposal is to leave these lines commented and wait for someone with
enough time to play with it. Unfortunately, I have to give my laptop back.
If I have some possibility, I'll try to make further investigation.

--- asus_a4d.0.patch begins here ---
(c) 2005 <Wojciech A. Koszek dunstan^>

Patch against FreeBSD 7.0-CURRENT, kern.osreldate: 700008.

diff -upr /usr/src/sys/dev/acpi_support/acpi_asus.c src/sys/dev/acpi_support/acpi_asus.c
--- /usr/src/sys/dev/acpi_support/acpi_asus.c	Sun Sep 11 20:39:00 2005
+++ src/sys/dev/acpi_support/acpi_asus.c	Sun Dec 18 16:38:25 2005
@@ -287,7 +287,18 @@ static struct acpi_asus_model acpi_asus_
 		.disp_get	= "\\_SB.PCI0.P0P1.VGA.GETD",
 		.disp_set	= "SDSP"
+	{
+		.name		= "A4D",
+		.mled_set	= "MLED",
+		.brn_up		= "\\_SB_.PCI0.SBRG.EC0._Q0E",
+		.brn_dn		= "\\_SB_.PCI0.SBRG.EC0._Q0F",
+		.brn_get	= "GPLV",
+		.brn_set	= "SPLV",
+#if 0
+		.disp_get	= "\\_SB_.PCI0.SBRG.EC0._Q10",
+		.disp_set	= "\\_SB_.PCI0.SBRG.EC0._Q11"
+	},
 	{ .name = NULL }
--- asus_a4d.0.patch ends here ---


More information about the freebsd-bugs mailing list