Return-Path: Message-ID: <445CEF84.3050305@mail.utexas.edu> From: Philip Langdale MIME-Version: 1.0 To: Philip Langdale Cc: bluez-devel@lists.sourceforge.net References: <444A7675.7020505@mail.utexas.edu> <444A7810.4090607@mail.utexas.edu> In-Reply-To: <444A7810.4090607@mail.utexas.edu> Content-Type: text/plain; charset=ISO-8859-1 Subject: [Bluez-devel] Re: Experiences with mx-5000 bluetooth mouse+keyboard combo Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sat, 06 May 2006 11:48:36 -0700 Philip Langdale wrote: > Philip Langdale wrote: >> Hi all, >> >> I decided to get myself an mx-5000 set this week and I've been fiddling >> with it and while I've got it working well, I'm not quite there yet. I >> do want to report my initial findings however. >> >> 0) Everything works fine in HID mode. All the buttons on the mouse >> and keyboard work correctly at the input level as reported by evtest. >> >> >> 5) The keyboard is in a similar situation but I have not mapped out the >> broken usages yet, and even some of the multimedia keys that do work >> report different codes from HID mode. >> > > This is only partially true. There are some keys that don't generate > input events in either mode, and some keys that generate different codes > in HCI mode. So, there's two problems there. I did some more investigation today and came up with useful conclusions. 1) The initial attempt at mapping the usage code is correct, but a later step in the configuration mangles the codes so they end up incorrect. (incorrect is a relative term as long as your desktop environment/apps supports configurable keybindings - so it's not a deal breaker). This step is: while (usage->code <= max && test_and_set_bit(usage->code, bit)) { usage->code = find_next_zero_bit(bit, max + 1, usage->code); } in hidinput_configure_usage. eg: It mangles KEY_UNDO (131) into KEY_SENDFILE (145) which doesn't seem very useful. 2) Some of the keys that generated no input events are simply keys that hidinput_configure_usage doesn't know about. I added entries for them and now they work (some are mangled, some are not). 3) Much more interestingly, there are multiple keys that generate *no* meaningful events, even at the hcidump level. I assume that these can only be made to work by downloading programs to the keyboard (the mx-5000 and di novo are programmable but the interface is apparently unknown). --phil ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel