From d3cdadc47168b1bc657a391903f176489f736b24 Mon Sep 17 00:00:00 2001 From: Danny Kukawka Date: Mon, 14 Jun 2010 12:12:07 +0200 Subject: detect also serial tablets with pnp-id FUJ02e7/FUJ02e9 Detect also machines with serial (wacom?) tablets and pnp-id FUJ02e7/FUJ02e9 as TabletPCs. Reduce detection of Wacom PNP-id to 'WACf' to prevent future changes. --- hald/linux/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hald/linux/device.c b/hald/linux/device.c index ea5f50fa..ef58daa2 100644 --- a/hald/linux/device.c +++ b/hald/linux/device.c @@ -2218,8 +2218,8 @@ pnp_add (const gchar *sysfs_path, const gchar *device_file, HalDevice *parent_de hal_device_property_set_string (d, "info.product", pnp_description); } pnp_id = hal_device_property_get_string (d, "pnp.id"); - if( !strncmp(pnp_id, "WACf0", 5) || !strcmp(pnp_id, "FUJ02e5") || - !strcmp(pnp_id, "FUJ02e6") || !strcmp(pnp_id, "FPI2004")) { + if( !strncmp(pnp_id, "WACf", 4) || !strcmp(pnp_id, "FUJ02e5") || !strcmp(pnp_id, "FUJ02e6") || + !strcmp(pnp_id, "FUJ02e7") || !strcmp(pnp_id, "FUJ02e9") || !strcmp(pnp_id, "FPI2004") ||) { /* a internal serial tablet --> this should be a tablet pc */ if ((computer = hal_device_store_find (hald_get_gdl (), "/org/freedesktop/Hal/devices/computer")) != NULL || (computer = hal_device_store_find (hald_get_tdl (), "/org/freedesktop/Hal/devices/computer")) != NULL) { -- cgit v1.2.3