Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp62874lqt; Thu, 18 Apr 2024 08:30:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXL5vO/u/9eInYn1wEd98OVKp5SvxcPsWfC4ucfwboikPkst6Mnnp4yFw3DWcsoYkRR8o+LQzCRExicIRn2ifUweCutCUNR/IX1B55xKw== X-Google-Smtp-Source: AGHT+IH1BUtcvUp/7uhFU+rQHBJeYI5unb6HPoYDJkH7omvc4Sw9CMYfQcld24sFOdeorfbV157Q X-Received: by 2002:a17:90b:4a03:b0:2a2:5ec9:3754 with SMTP id kk3-20020a17090b4a0300b002a25ec93754mr2817260pjb.33.1713454206905; Thu, 18 Apr 2024 08:30:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713454206; cv=pass; d=google.com; s=arc-20160816; b=Vgn/ZPjZFJUC6JhXRoA/8cDKRWVbRtlaj20MnOoHg57h28jBYt6TCdV5GW0OVZNwWL FUiTPgmyDQd+yN8CGe9lQSZ3xIZvBQyEd8/RoSYbwZPOaVAm9qFSg2yiV2kcG/6F/lKk a7VZHqtG5sGly2qSQ0hW2I0ufesIIX/fgf8sFPDTPWnBsQV6ssbLezcIgN5mO/nOV+xV t2n/i4HMfvwC/5CWBBljY/2Xd4aq5LrKBPM6Y4guEvf/k8W/2t110XEeaJVw1IM+qxY9 bj6jMiwyWRaWeXf2Hrtq30G954CtY6j6lThv2pXymJ3JFw3duQxd2mM0XxzO1OkEDiz6 vL3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=aQQoH7LflTciH7e0F4vI+WfwHuxvK3k1tVEGjHwcmHA=; fh=qhg0lFHDI8WyLGhtq07CFtkNKyxZ4bc3dz57Wq4HADo=; b=AGUca2A6HQz6J8F/FyvU9UU7zgjRwKMTUMkxF981fO0SSIdylBsHwVLkOctBBhBeF2 KC72n6fXtbV2BjPSpW5XO9Nl+6f60sebM4GM55o9Z9qWBubiA69XEMD8hFbQiXwPXtii guS+bBBMmFK6mgI/F/5PG/kSMZwbju99VzbDh9UHGfyycc2p0AP1oOLyReBSdipVlV5i xs/jW2Dltjjzkbq9yqzkiuh5AhkdtLBCaIUOLxj9noZ7/RhViy0l4HbxbuUuGbGo9qyz TSxtzjAT3B0Y0lB4GkUzUDsDDho7pfY/fxcQo2tNRWw04gzHzYr8fTHvbCSuphKLTtMT oyqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm1 header.b=ikX82FKU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Ho7fNReu; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-150360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150360-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f5-20020a17090aa78500b002abe1800a99si1235372pjq.74.2024.04.18.08.30.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 08:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm1 header.b=ikX82FKU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Ho7fNReu; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-150360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150360-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5227EB26E77 for ; Thu, 18 Apr 2024 15:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D2EF16ABEA; Thu, 18 Apr 2024 15:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b="ikX82FKU"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Ho7fNReu" Received: from wfhigh3-smtp.messagingengine.com (wfhigh3-smtp.messagingengine.com [64.147.123.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E464E16ABC5; Thu, 18 Apr 2024 15:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.154 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713452558; cv=none; b=AkcNRA1+xJdaSQCey7r0zmXrMsVrHuHBmVlzktGmCBgtaO19Hd3mZMyyC0UP15ZM0y3KNvf9KcRS6PmMzLgjBpmgoDfCvCVEDnVSG5aaVArVPdeLxcGNtq61rSGM8I9uU7D9l6KQHhvyBdsWoSC1p/bC1e7GOUOFcDDPqpi/9uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713452558; c=relaxed/simple; bh=ai1wCw4NVe95U/2fm/uPXCfxYG5poD+IdWckJAOhn0c=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=PV7dp4YEd7UD0xIArsTlm3eQSAxcn8mpqhFo6wQVlwXYEEjSxdygPxkPTdYmaogkKNNOftihwF3EwXl2FJ+LvBpXKd/mW2l9sr+Rqr5OywsxARNhay6NvXGQJFHfs2giNmjdn92JX46271PjUyMrU4ozkCblRHrCg2gxycPquVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca; spf=pass smtp.mailfrom=squebb.ca; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b=ikX82FKU; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Ho7fNReu; arc=none smtp.client-ip=64.147.123.154 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=squebb.ca Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.west.internal (Postfix) with ESMTP id 2C5B71800131; Thu, 18 Apr 2024 11:02:31 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute3.internal (MEProxy); Thu, 18 Apr 2024 11:02:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1713452550; x=1713538950; bh=aQQoH7LflT ciH7e0F4vI+WfwHuxvK3k1tVEGjHwcmHA=; b=ikX82FKUzj3yfYC5Mih8AcVMWF 2Q+zJh+PrhjPoJQZLSk4Wl6g87u6Y5uTPVwfKeD935HCH1XZIk86gMsIPMolhg+R eaOnupPlOu93fGbuPftHe5WX8nXrBQRXlnEhkI7dcaOMyeSU3uyvJq0EkXRBFLSi i37hkr+HYSCPiZRytvfB8OEreWiKt5m5FnpIcVfrzpmQ2TjOo686Ga8xkyP6D+g9 F762t8ImLbYriBmNdupRNW4zdort15fPC8J2yb/XV9WuS4d78yubKDNlOPaRy2dH UpK1EcxyZ9Lb7/Z/uYd5ZqBwMmwcucaz3MdKv3zW/S0/kQCFpi8EWwx4IXsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713452550; x=1713538950; bh=aQQoH7LflTciH7e0F4vI+WfwHuxv K3k1tVEGjHwcmHA=; b=Ho7fNReu8u8dlrYykQ40ToyURRxKOErMZp2l5zJ2J2OU V7SQFAn+G82dx4sBiWyzPRDO9pi+Dod5M4we80Li60z6dwOMKw3Iw2r+4+OmLCS/ mcKVh83jOOgOZPZSaaFxhQvGlNojgmCrO+L3Y8m2azlhZ3R84K5MDdagEZoBNWSx kpXzImiVGCmsI1Hc4cKRdPVrI2jI0jBwgKTYcxAZf+sZSYEsINx5F0Hg7bG1sWf+ 2m4lZHt68LP9vtzpKQpk0lVeh3lE+7S4GOwVFzxmOklHuE5MSw3FTjsnGPcbaWRR pt31jJLa+m0ao4dQu2MNve/MBVdtr89KTpMLyNTqew== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudektddgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfofgr rhhkucfrvggrrhhsohhnfdcuoehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssg drtggrqeenucggtffrrghtthgvrhhnpeffteeljeeugfekveffvddvuddvleehhfdtveff teefudejfeetveeukeektedtleenucffohhmrghinhepthhhihhnkhifihhkihdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmphgv rghrshhonhdqlhgvnhhovhhosehsqhhuvggssgdrtggr X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 64C3EC60097; Thu, 18 Apr 2024 11:02:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <3494e664-ecfe-4eab-ac7f-32dee4a01ecb@app.fastmail.com> In-Reply-To: <472cf6b8-dbc2-4446-9c6e-aa3a257013c3@redhat.com> References: <20240417173124.9953-1-mpearson-lenovo@squebb.ca> <20240417173124.9953-2-mpearson-lenovo@squebb.ca> <98082080-0fcf-470f-afa5-76ec2bbffee7@redhat.com> <55ded7c3-fbc5-4fa5-8b63-da4d7aa4966c@redhat.com> <76d92fdc-ad0a-40a2-9e1b-d550f8e07267@redhat.com> <0917e5bc-a198-4aa8-812e-31434408e78d@app.fastmail.com> <472cf6b8-dbc2-4446-9c6e-aa3a257013c3@redhat.com> Date: Thu, 18 Apr 2024 11:03:22 -0400 From: "Mark Pearson" To: "Hans de Goede" Cc: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "Henrique de Moraes Holschuh" , ibm-acpi-devel@lists.sourceforge.net, "platform-driver-x86@vger.kernel.org" , linux-kernel@vger.kernel.org, "Nitin Joshi1" , "Vishnu Sankar" , "Peter Hutterer" , "Vishnu Sankar" Subject: Re: [PATCH v2 2/4] platform/x86: thinkpad_acpi: Support for trackpoint doubletap Content-Type: text/plain Hi Hans On Thu, Apr 18, 2024, at 10:42 AM, Hans de Goede wrote: > Hi, > > On 4/18/24 2:24 PM, Mark Pearson wrote: >> Hi Hans, >> >> On Thu, Apr 18, 2024, at 7:34 AM, Hans de Goede wrote: >>> Hi Mark, >>> >>> On 4/18/24 1:57 AM, Mark Pearson wrote: >>>> Hi Hans, >>>> >>>> On Wed, Apr 17, 2024, at 4:06 PM, Hans de Goede wrote: >>>>> Hi Mark, >>>>> >>>>> On 4/17/24 9:39 PM, Hans de Goede wrote: >>>>>> Hi Mark, >>>>>> >>>>>> Thank you for the new version of this series, overall this looks good, >>>>>> one small remark below. >>>>>> >>>>>> On 4/17/24 7:31 PM, Mark Pearson wrote: >>>>>>> Lenovo trackpoints are adding the ability to generate a doubletap event. >>>>>>> This handles the doubletap event and sends the KEY_PROG1 event to >>>>>>> userspace. >>>>>>> >>>>>>> Signed-off-by: Mark Pearson >>>>>>> Signed-off-by: Vishnu Sankar >>>>>>> --- >>>>>>> Changes in v2: >>>>>>> - Use KEY_PROG1 instead of KEY_DOUBLETAP as input maintainer doesn't >>>>>>> want new un-specific key codes added. >>>>>>> - Add doubletap to hotkey scan code table and use existing hotkey >>>>>>> functionality. >>>>>>> - Tested using evtest, and then gnome settings to configure a custom shortcut >>>>>>> to launch an application. >>>>>>> >>>>>>> drivers/platform/x86/thinkpad_acpi.c | 18 ++++++++++++++++++ >>>>>>> 1 file changed, 18 insertions(+) >>>>>>> >>>>>>> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c >>>>>>> index 3b48d893280f..6d04d45e8d45 100644 >>>>>>> --- a/drivers/platform/x86/thinkpad_acpi.c >>>>>>> +++ b/drivers/platform/x86/thinkpad_acpi.c >>>>>>> @@ -232,6 +232,9 @@ enum tpacpi_hkey_event_t { >>>>>>> >>>>>>> /* Misc */ >>>>>>> TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ >>>>>>> + >>>>>>> + /* Misc2 */ >>>>>>> + TP_HKEY_EV_TRACK_DOUBLETAP = 0x8036, /* trackpoint doubletap */ >>>>>>> }; >>>>>>> >>>>>>> /**************************************************************************** >>>>>>> @@ -1786,6 +1789,7 @@ enum { /* hot key scan codes (derived from ACPI DSDT) */ >>>>>>> TP_ACPI_HOTKEYSCAN_NOTIFICATION_CENTER, >>>>>>> TP_ACPI_HOTKEYSCAN_PICKUP_PHONE, >>>>>>> TP_ACPI_HOTKEYSCAN_HANGUP_PHONE, >>>>>> >>>>>> I understand why you've done this but I think this needs a comment, >>>>>> something like: >>>>>> >>>>>> /* >>>>>> * For TP_HKEY_EV_TRACK_DOUBLETAP, unlike the codes above which map to: >>>>>> * (hkey_event - 0x1300) + TP_ACPI_HOTKEYSCAN_EXTENDED_START, this is >>>>>> * hardcoded for TP_HKEY_EV_TRACK_DOUBLETAP handling. Therefor this must >>>>>> * always be the last entry (after any 0x1300-0x13ff entries). >>>>>> */ >>>>>> + TP_ACPI_HOTKEYSCAN_DOUBLETAP, >>>>> >>>>> Ugh, actually this will not work becuuse we want hotkeyscancodes to be stable >>>>> because these are userspace API since they can be remapped using hwdb so we >>>>> cannot have the hotkeyscancode changing when new 0x1300-0x13ff range entries >>>>> get added. >>>>> >>>>> So we need to either grow the table a lot and reserve a whole bunch of space >>>>> for future 0x13xx - 0x13ff codes or maybe something like this: >>>>> >>>>> diff --git a/drivers/platform/x86/thinkpad_acpi.c >>>>> b/drivers/platform/x86/thinkpad_acpi.c >>>>> index 771aaa7ae4cf..af3279889ecc 100644 >>>>> --- a/drivers/platform/x86/thinkpad_acpi.c >>>>> +++ b/drivers/platform/x86/thinkpad_acpi.c >>>>> @@ -1742,7 +1742,12 @@ enum { /* hot key scan codes (derived from ACPI >>>>> DSDT) */ >>>>> TP_ACPI_HOTKEYSCAN_VOLUMEDOWN, >>>>> TP_ACPI_HOTKEYSCAN_MUTE, >>>>> TP_ACPI_HOTKEYSCAN_THINKPAD, >>>>> - TP_ACPI_HOTKEYSCAN_UNK1, >>>>> + /* >>>>> + * Note this gets send both on 0x1019 and on >>>>> TP_HKEY_EV_TRACK_DOUBLETAP >>>>> + * hotkey-events. 0x1019 events have never been seen on any actual hw >>>>> + * and a scancode is needed for the special 0x8036 doubletap >>>>> hotkey-event. >>>>> + */ >>>>> + TP_ACPI_HOTKEYSCAN_DOUBLETAP, >>>>> TP_ACPI_HOTKEYSCAN_UNK2, >>>>> TP_ACPI_HOTKEYSCAN_UNK3, >>>>> TP_ACPI_HOTKEYSCAN_UNK4, >>>>> >>>>> or just hardcode KEY_PROG1 like your previous patch does, but I'm not >>>>> a fan of that because of loosing hwdb remapping functionality for this >>>>> "key" then. >>>>> >>>>> Note I'm open to other suggestions. >>>>> >>>> Oh...I hadn't thought of that impact. That's not great :( >>>> >>>> I have an idea, but want to prototype it to see if it works out or not. Will update once I've had a chance to play with it. >>> >>> Thinking more about this I just realized that the input subsystem >>> already has a mechanism for dealing with scancode ranges with >>> (big) holes in them in the form of linux/input/sparse-keymap.h . >>> >>> I think that what needs to be done is convert the existing code >>> to use sparse-keymap, keeping the mapping of the "MHKP" >>> returned hkey codes to internal TP_ACPI_HOTKEYSCAN_* values >>> for currently supported "MHKP" hkey codes for compatibility >>> and then for new codes just directly map them in the sparse map >>> aka the struct key_entry table. After converting the existing code >>> to use sparse-keymap, then for the new events we would simply add: >>> >>> >>> { KE_KEY, 0x131d, { KEY_VENDOR} }, /* Fn + N, system debug info */ >>> { KE_KEY, 0x8036, { KEY_PROG1 } }, /* Trackpoint doubletap */ >>> >>> entries to the table without needing to define intermediate >>> TP_ACPI_HOTKEYSCAN_* values for these. >>> >> >> Ah! I didn't know about sparse-keymap but it looks similar to what I was thinking and played with a bit last night. Agreed using existing infrastructure is better. >> >> Only things I'd flag is that: >> - It did look like it would be useful to identify keys that the driver handles (there aren't many but a few). Maybe one of the other key types can help handle that? >> - There are also some keys that use the tpacpi_input_send_key_masked that might need some special consideration. >> >>> I already have somewhat of a design for this in my head and I really >>> believe this is the way forward as it uses existing kernel infra >>> and it will avoid hitting this problem again when some other new >>> "MHKP" hkey codes show up. >>> >>> I plan to start working on implementing conversion of the existing >>> code to use sparse-keymap, which should result in a nice cleanup >>> after lunch and I hope to have something for you to test no later >>> then next Tuesday. >>> >> >> That would be amazing - do let me know if there is anything I can help with. Agreed this will help clean up a bunch of the keycode handling :) > > I noticed a small problem while working on this. The hwdb shipped with > systemd has: > > # thinkpad_acpi driver > evdev:name:ThinkPad Extra Buttons:dmi:bvn*:bvr*:bd*:svnIBM*:pn*:* > KEYBOARD_KEY_01=battery # Fn+F2 > KEYBOARD_KEY_02=screenlock # Fn+F3 > KEYBOARD_KEY_03=sleep # Fn+F4 > KEYBOARD_KEY_04=wlan # Fn+F5 > KEYBOARD_KEY_06=switchvideomode # Fn+F7 > KEYBOARD_KEY_07=zoom # Fn+F8 screen > expand > KEYBOARD_KEY_08=f24 # Fn+F9 undock > KEYBOARD_KEY_0b=suspend # Fn+F12 > KEYBOARD_KEY_0f=brightnessup # Fn+Home > KEYBOARD_KEY_10=brightnessdown # Fn+End > KEYBOARD_KEY_11=kbdillumtoggle # Fn+PgUp - > ThinkLight > KEYBOARD_KEY_13=zoom # Fn+Space > KEYBOARD_KEY_14=volumeup > KEYBOARD_KEY_15=volumedown > KEYBOARD_KEY_16=mute > KEYBOARD_KEY_17=prog1 # > ThinkPad/ThinkVantage button (high k > > Notice the last line, this last line maps the old thinkpad / > thinkvantage key: https://www.thinkwiki.org/wiki/ThinkPad_Button > which is define by the kernel as KEY_VENDOR to KEY_PROG1 to > use a keycode below 240 for X11 compatiblity which does not > handle higher keycodes. > > This means that in practice at least on older models > KEY_PROG1 is already taken and the thinkpad / thinkvantage key > does the same (open lenovo help center / sysinfo) as > what the new Fn + N key combo does. So it does makes sense > to map Fn + N to KEY_VENDOR so those align but given the existing > remapping of the thinkpad / thinkvantage key to PROG1 I think > it would be better to not use PROG1 for the doubletap. > > I guess we can just use PROG2 instead to avoid the overlap > with the remapped old ThinkPad / ThinkVantage buttons > (which are more like Fn + N then doubletap). > Interesting as there has never been a Linux version of Vantage (we've looked into it and want to take pieces of it, but most of what is in Vantage doesn't make a lot of sense for Linux). Using Prog2 sounds simple to me - no problems with that. Mark