Bug 128634

Summary: [patch] fix acpi_asus(4) in asus a6f laptop
Product: Base System Reporter: Marcin Nowak <marcin.nowak>
Component: kernAssignee: freebsd-acpi (Nobody) <acpi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Marcin Nowak 2008-11-06 08:30:05 UTC
Hi

Some time ago I have reported request for acpi support my asus a6f
laptop, and I got the patch from someone on this mailing-list. Patch
(*.diff file) works fine so, why isn't in official cvs repo yet? :)

Patch in attachment

Fix: Patch attached with submission follows:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-11-06 11:25:29 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-acpi

Over to maintainer(s).
Comment 2 Rui Paulo freebsd_committer freebsd_triage 2008-11-07 13:53:14 UTC
State Changed
From-To: open->feedback

This patch includes Eee PC support, which has been committed already. 
Can you send a patch that applies cleanly to HEAD? 

Thanks.
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-04-04 18:01:42 UTC
Author: attilio
Date: Sat Apr  4 17:01:32 2009
New Revision: 190695
URL: http://svn.freebsd.org/changeset/base/190695

Log:
  - Add the support for the Asus A3F and A3E device
  - Fix style for A3N and for a comment
  
  Submitted by:	Akira Funahashi <funa@funa.org>
  Tested by:	Marcin Nowak <marcin.nowak@simplusnet.pl>,
  		Diego Sardina <diego.sardina@gmx.com>
  PR:		kern/128634

Modified:
  head/sys/dev/acpi_support/acpi_asus.c

Modified: head/sys/dev/acpi_support/acpi_asus.c
==============================================================================
--- head/sys/dev/acpi_support/acpi_asus.c	Sat Apr  4 16:03:28 2009	(r190694)
+++ head/sys/dev/acpi_support/acpi_asus.c	Sat Apr  4 17:01:32 2009	(r190695)
@@ -176,16 +176,39 @@ static struct acpi_asus_model acpi_asus_
 		.disp_set	= "SDSP"
 	},
 	{
+		.name           = "A3E",
+		.mled_set       = "MLED",
+		.wled_set       = "WLED",
+		.lcd_get        = "\\_SB.PCI0.SBRG.EC0.RPIN(0x67)",
+		.lcd_set        = "\\_SB.PCI0.SBRG.EC0._Q10",
+		.brn_get        = "GPLV",
+		.brn_set        = "SPLV",
+		.disp_get       = "\\_SB.PCI0.P0P2.VGA.GETD",
+		.disp_set       = "SDSP"
+	},
+	{
+		.name           = "A3F",
+		.mled_set       = "MLED",
+		.wled_set       = "WLED",
+		.bled_set       = "BLED",
+		.lcd_get        = "\\_SB.PCI0.SBRG.EC0.RPIN(0x11)",
+		.lcd_set        = "\\_SB.PCI0.SBRG.EC0._Q10",
+		.brn_get        = "GPLV",
+		.brn_set        = "SPLV",
+		.disp_get       = "\\SSTE",
+		.disp_set       = "SDSP"
+	},
+	{
 		.name           = "A3N",
 		.mled_set       = "MLED",
 		.bled_set       = "BLED",
 		.wled_set       = "WLED",
-		.lcd_get        = NULL,
+		.lcd_get        = "\\BKLT",
 		.lcd_set        = "\\_SB.PCI0.SBRG.EC0._Q10",
+		.brn_get        = "GPLV",
 		.brn_set        = "SPLV",
-		.brn_get        = "SDSP",
-		.disp_set       = "SDSP",
-		.disp_get       = "\\_SB.PCI0.P0P3.VGA.GETD"
+		.disp_get       = "\\_SB.PCI0.P0P3.VGA.GETD",
+		.disp_set       = "SDSP"
 	},
 	{
 		.name		= "A4D",
@@ -577,7 +600,7 @@ acpi_asus_probe(device_t dev)
 			return (0);
 		}
 
-		/* if EeePC */
+		/* EeePC */
 		if (strncmp("ASUS010", rstr, 7) == 0) {
 			sc->model = &acpi_eeepc_models[0];
 			device_set_desc(dev, "ASUS EeePC");
@@ -627,6 +650,9 @@ good:
 		else if (strncmp(model->name, "A2x", 3) == 0 &&
 		    strncmp(Obj->String.Pointer, "A2", 2) == 0)
 			goto good;
+		else if (strncmp(model->name, "A3F", 3) == 0 &&
+		    strncmp(Obj->String.Pointer, "A6F", 3) == 0)
+			goto good;
 		else if (strncmp(model->name, "D1x", 3) == 0 &&
 		    strncmp(Obj->String.Pointer, "D1", 2) == 0)
 			goto good;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 4 Jaakko Heinonen freebsd_committer freebsd_triage 2010-09-19 09:50:25 UTC
State Changed
From-To: feedback->patched

A patch has been committed in r190695.
Comment 5 Andriy Gapon freebsd_committer freebsd_triage 2010-12-05 15:22:38 UTC
Has the fix been MFC-ed?  Can the PR be closed now?
-- 
Andriy Gapon
Comment 6 Hiren Panchasara 2013-04-03 00:20:39 UTC
This has been MFCed.

Can we close this PR?

Thanks,
Hiren
Comment 7 Rui Paulo freebsd_committer freebsd_triage 2013-04-03 16:23:34 UTC
State Changed
From-To: patched->closed

Fixed a long time ago.