hal/hald/linux2/probing probe-input.c,1.13,1.14

Richard Hughes hughsient at kemper.freedesktop.org
Wed Feb 22 16:41:35 PST 2006


Update of /cvs/hal/hal/hald/linux2/probing
In directory kemper:/tmp/cvs-serv9730/hald/linux2/probing

Modified Files:
	probe-input.c 
Log Message:
2006-02-23  Richard Hughes <richard at hughsie.com>
 * hald/linux2/probing/probe-input.c: Add the bustype for ADB keyboards so that the keyboard addon is lauched for my iBook clamshell. This means that the power button now emits ButtonPressed conditions and the machine thus works with gnome-power-manager.


Index: probe-input.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/probing/probe-input.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- probe-input.c	9 Feb 2006 16:32:24 -0000	1.13
+++ probe-input.c	23 Feb 2006 00:41:33 -0000	1.14
@@ -182,13 +182,14 @@
 		goto out;
 	}
 	physical_device = getenv ("HAL_PROP_INPUT_PHYSICAL_DEVICE");
+
+	dbg ("probe-input: id.bustype=%i", id.bustype);
 	if (physical_device == NULL) {
 		switch (id.bustype) {
 		case 17: /* TODO: x86 legacy port; use symbol instead of hardcoded constant */
 		case 21: /* BUS_HOST, not hotpluggable */
+		case 23: /* ADB on Apple computers */
 			break;
-
-			/* TODO: ADB on Apple computers */
 		default:
 			goto out;
 		}




More information about the hal-commit mailing list