summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@web.de>2010-06-14 12:12:07 +0200
committerDanny Kukawka <danny.kukawka@web.de>2010-06-14 12:14:58 +0200
commitd3cdadc47168b1bc657a391903f176489f736b24 (patch)
tree20bde85ab7074dbe4919f17c8a53a9c045a8e05e
parent8edf87fc636de25746c153bb3bf778e6e6ce6df3 (diff)
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.
-rw-r--r--hald/linux/device.c4
1 files 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) {