Display use 4 bits, not 3
PATCH 9/22 Display use 4 bits, not 3
In all new models, with DVI output, the display value is on 4 bits, not 3. It still experimental, but works perfectly on A6JC/A6T/F3JC !
--- asus_acpi.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/acpi/asus_acpi.c 2006-12-15 13:16:41.000000000 +0100 renamed from drivers/acpi/asus_acpi.c 2006-12-15 13:14:50.000000000 +0100 +0 -1
@@ -889,18 +889,22 @@ { int value = 0; - if (!read_acpi_int(hotk->handle, hotk->methods->display_get, &value,
NULL))
+ if (!read_acpi_int(hotk->handle, hotk->methods->display_get,
+ &value, NULL))
printk(KERN_WARNING
"Asus ACPI: Error reading display status\n");- value &= 0x07; /* needed for some models, shouldn't hurt
others */
+
+ value &= 0x0F; /* needed for some models, shouldn't hurt
others */
+
return sprintf(page, "%d\n", value);
}
/*
* Experimental support for display switching. As of now: 1 should activate
- * the LCD output, 2 should do for CRT, and 4 for TV-Out. Any combination
- * (bitwise) of these will suffice. I never actually tested 3 displays hooked up
- * simultaneously, so be warned. See the acpi4asus README for more info.
+ * the LCD output, 2 should do for CRT, 4 for TV-Out and 8 for DVI.
+ * Any combination (bitwise) of these will suffice. I never actually tested 4
+ * displays hooked up simultaneously, so be warned. See the acpi4asus README
+ * for more info.
*/
static int
proc_write_disp(struct file *file, const char __user * buffer,
Signature · 2 lines
CHARY 'Iksaif' Corentin http://xf.iksaif.net