Skip to contentSkip to conversation

acpi4asus update: M6R display reading

PATCH New Karol Kozimor 1 participant 2 messages Apr 5, 2005 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 acpi4asus update: M6R display reading

Hi,
This patch corrects the node to read display settings on M6R laptops. This is small and tested, a 2.6.12 candidate.
Please apply, TIA

drivers/acpi/asus_acpi.c +1 -1
@@ -330,7 +330,7 @@
 		.brightness_set    = "SPLV",
 		.brightness_get    = "GPLV",
 		.display_set       = "SDSP",
-		.display_get       = "\\SSTE"
+		.display_get       = "\\_SB.PCI0.P0P1.VGA.GETD"
 	},
 
 
Signature · 9 lines
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/[email protected]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

A message that is not in the archive (sent off-list or not yet received): 20050405225551.GE21320-DETuoxkZsSqrDJvtcaxF/[email protected]

#2 lore raw

PATCH 2/2 acpi4asus update: fix param description

Hi,
This patch fixes inconsistent parameter descriptions and also deprecates the parameters themselves (I always wanted to kill this code but it has its users so it's safer to remove it later).

This is also a 2.6.12 candidate.
Please apply, TIA

drivers/acpi/asus_acpi.c +4 -2
@@ -79,9 +79,9 @@ MODULE_LICENSE("GPL");
 static uid_t asus_uid;
 static gid_t asus_gid;
 module_param(asus_uid, uint, 0);
-MODULE_PARM_DESC(uid, "UID for entries in /proc/acpi/asus.\n");
+MODULE_PARM_DESC(asus_uid, "UID for entries in /proc/acpi/asus.\n");
 module_param(asus_gid, uint, 0);
-MODULE_PARM_DESC(gid, "GID for entries in /proc/acpi/asus.\n");
+MODULE_PARM_DESC(asus_gid, "GID for entries in /proc/acpi/asus.\n");
 
 
 /* For each model, all features implemented, 
@@ -862,6 +862,8 @@ static int __init asus_hotk_add_fs(struc
 		mode = S_IFREG | S_IRUGO | S_IWUGO;
 	} else {
 		mode = S_IFREG | S_IRUSR | S_IRGRP | S_IWUSR | S_IWGRP;
+		printk(KERN_WARNING "  asus_uid and asus_gid parameters are "
+		       "deprecated, use chown and chmod instead!\n");
 	}
 
 	acpi_device_dir(device) = asus_proc_dir;
Signature · 9 lines
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/[email protected]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click