ACPI "special" button device, and Toshiba specific bits
Richard Hughes
hughsient at gmail.com
Thu Dec 1 06:06:10 PST 2005
On Tue, 2005-11-29 at 20:05 +0000, Richard Hughes wrote:
> udi = '/org/freedesktop/Hal/devices/acpi_uinput'
> info.udi = '/org/freedesktop/Hal/devices/acpi_uinput' (string)
> info.addons = {'hald-addon-acpi-buttons-toshiba'} (string list)
> linux.hotplug_type = 4 (0x4) (int)
> info.capabilities = {'virtualinput'} (string list)
> info.category = 'virtualinput' (string)
> info.product = 'Virtual Input Device' (string)
> info.parent = '/org/freedesktop/Hal/devices/computer' (string)
> linux.acpi_type = 4 (0x4) (int)
> linux.acpi_path = '/dev/uinput' (string)
Ignore this bit, I'm now using the standard "button" capability, and
setting button.type=virtual.
Also,
+
> + device_property_atomic_update_begin ();
> + /* only set up device new if really needed */
> + if (!hal_device_has_capability (d, "virtualinput")){
> + hal_device_property_set_string (d, "info.product",
> "Virtual Input Device");
> + hal_device_property_set_string (d, "info.category",
> "virtualinput");
> + hal_device_add_capability (d, "virtualinput");
> + }
> + return TRUE;
Oops, this requires the missing device_property_atomic_update_end ();
Richard.
More information about the hal
mailing list