hal/hald/linux2 acpi.c,1.49,1.50
Richard Hughes
hughsient at kemper.freedesktop.org
Thu Apr 27 14:47:36 PDT 2006
Update of /cvs/hal/hal/hald/linux2
In directory kemper:/tmp/cvs-serv14628/hald/linux2
Modified Files:
acpi.c
Log Message:
2006-04-27 Richard Hughes <richard at hughsie.com>
Patch from Bastien Nocera <hadess at hadess.net>:
* hald/linux2/acpi.c: (acpi_synthesize_sonypi_display): Check that we don't support brightness change through ACPI with the presence of /proc/acpi/sony/brightness for type3 VAIOs.
Index: acpi.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/acpi.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- acpi.c 26 Apr 2006 22:27:43 -0000 1.49
+++ acpi.c 27 Apr 2006 21:47:34 -0000 1.50
@@ -938,6 +938,11 @@
HAL_INFO (("Processing sonypi display"));
+ /* Check that we don't support brightness change through ACPI,
+ * for type3 VAIOs */
+ if (g_file_test ("/proc/acpi/sony/brightness", G_FILE_TEST_EXISTS))
+ return;
+
/* Find the sonypi device, this doesn't work
* if the sonypi device doesn't have an IRQ, sorry */
for (i = 0; i < G_N_ELEMENTS (sonypi_irq_list); i++) {
More information about the hal-commit
mailing list