Date: Sun, 18 Dec 2005 19:03:24 GMT From: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/90607: [PATCH] Support for ASUS A4D laptop Message-ID: <200512181903.jBIJ3OSk081210@freebsd.czest.pl> Resent-Message-ID: <200512181910.jBIJA2EJ055222@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 90607 >Category: kern >Synopsis: [PATCH] Support for ASUS A4D laptop >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 18 19:10:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Wojciech A. Koszek >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD laptop.freebsd.czest.pl 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sun Dec 18 01:31:49 CET 2005 dunstan@laptop.freebsd.czest.pl:/usr/obj/usr/src/sys/LAPTOP i386 >Description: 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@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. >How-To-Repeat: >Fix: 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. http://freebsd.czest.pl/dunstan/FreeBSD/asus_a4d.0.patch --- asus_a4d.0.patch begins here --- (c) 2005 <Wojciech A. Koszek dunstan^freebsd.czest.pl> 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" +#endif + }, { .name = NULL } }; --- asus_a4d.0.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512181903.jBIJ3OSk081210>