From 8edf87fc636de25746c153bb3bf778e6e6ce6df3 Mon Sep 17 00:00:00 2001 From: Danny Kukawka Date: Mon, 14 Jun 2010 12:05:36 +0200 Subject: detect also serial wacom tablets with pnp-id > WACf009 Detect also machines with serial wacom tablets and pnp-id > WACf009 as e.g. WACf010 as TabletPCs. --- hald/linux/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hald/linux/device.c b/hald/linux/device.c index aafad71e..ea5f50fa 100644 --- a/hald/linux/device.c +++ b/hald/linux/device.c @@ -2218,7 +2218,7 @@ 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, "WACf00", 6) || !strcmp(pnp_id, "FUJ02e5") || + if( !strncmp(pnp_id, "WACf0", 5) || !strcmp(pnp_id, "FUJ02e5") || !strcmp(pnp_id, "FUJ02e6") || !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 || -- cgit v1.2.3