Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2012 08:30:32 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-acpi@freebsd.org
Cc:        simplicissimus <hans-wurst19@web.de>
Subject:   Re: ACPI for Asus Notebook N50Vc
Message-ID:  <201202220830.32110.jhb@freebsd.org>
In-Reply-To: <1329871417389-5503811.post@n5.nabble.com>
References:  <1328719807459-5467015.post@n5.nabble.com> <201202211357.13783.jhb@freebsd.org> <1329871417389-5503811.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, February 21, 2012 7:43:37 pm simplicissimus wrote:
> Thanks again for your time and the patch; unfortunately it gives me an error
> message:
> 
> http://paste.pocoo.org/show/554781/
> 
> This is my modified acpi_asus.c :
> 
> http://paste.pocoo.org/show/554783/
> 
> I hope I got the changes to the file right.
> 
> Regards
> Simplicissimus

Oops, try this:

Index: acpi_asus.c
===================================================================
--- acpi_asus.c	(revision 231983)
+++ acpi_asus.c	(working copy)
@@ -379,6 +379,18 @@ static struct acpi_asus_model acpi_asus_models[] =
 		.disp_set	= "SDSP"
 	},
 	{
+		.name		= "N50Vc",
+		.bled_set       = "BLED",
+		.wled_set	= "WLED",
+		.brn_get	= "GPLV",
+		.brn_set	= "SPLV",
+#if 0
+		.lcd_set	= "\\_SB.PCI0.SBRG.EC0._Q10",
+#endif
+		.disp_get	= "\\_SB.PCI0.P0P1.VGA.GETD",
+		.disp_set	= "SDSP"
+	},
+	{
 		.name		= "S1x",
 		.mled_set	= "MLED",
 		.wled_set	= "WLED",
@@ -509,6 +521,9 @@ static struct {
 
 ACPI_SERIAL_DECL(asus, "ACPI ASUS extras");
 
+static int acpi_asus_wapf = 1;
+TUNABLE_INT("hw.acpi.asus.wapf", &acpi_asus_wapf);
+
 /* Function prototypes */
 static int	acpi_asus_probe(device_t dev);
 static int	acpi_asus_attach(device_t dev);
@@ -735,6 +750,9 @@ acpi_asus_attach(device_t dev)
 	sc->sysctl_tree = SYSCTL_ADD_NODE(&sc->sysctl_ctx,
 	    SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree),
 	    OID_AUTO, "asus", CTLFLAG_RD, 0, "");
+	SYSCTL_ADD_INT(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree),
+	    OID_AUTO, "wapf", CTLFLAG_RD, &acpi_asus_wapf, 0,
+	    "Argument to pass WAPF method during initialization");
 
 	/* Hook up nodes */
 	for (int i = 0; acpi_asus_sysctls[i].name != NULL; i++) {
@@ -804,6 +822,9 @@ acpi_asus_attach(device_t dev)
 	/* Activate hotkeys */
 	AcpiEvaluateObject(sc->handle, "BSTS", NULL, NULL);
 
+	/* Configure wlan key. */
+	acpi_SetInteger(sc->handle, "WAPF", acpi_asus_wapf);
+
 	/* Handle notifies */
 	if (sc->model->n_func == NULL)
 		sc->model->n_func = acpi_asus_notify;

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202220830.32110.jhb>