Re: odevice_ipaq, machine IDs and button init

From: Erik Hovland <erik_at_hovland.org>
Date: Thu, 8 Feb 2007 11:05:48 -0800

On Fri, Feb 09, 2007 at 01:04:12AM +1300, Paul Eggleton wrote:
> Hi there,
>
> I have found out why I am seeing so many extra buttons in the Button settings
> application on my iPAQs (h3850 & h3970). If you take a look in
> odevice_ipaq.cpp you can see in init() it checks to see if the button model
> ANDed with the device model = the device model, which would be just fine if
> the none of the device models were binary subsets of eachother - except they
> are. When tested in this way, a button defined as being for eg.
> Model_iPAQ_H22xx (0x10007) will be active on Model_iPAQ_H31xx (0x10001),
> Model_iPAQ_H36xx (0x10002), and Model_iPAQ_H38xx (0x10004). This has probably
> been happening for a while but it has started to become more of a problem as
> support for new iPAQs has been added recently.
>
> It seems to me we either need to renumber all of the devices so that only one
> bit in the model mask is set (0x10001, 0x10002, 0x10004, 0x10008...), or we
> come up with another way of associating buttons with multiple models.
>
> Any comments?

This close to a next release I like the bit field idea fine.

The work that Paul proposes is quite invasive and involves the help of
port people. Since Paul has largely been driving the port folk over at
kernel-discuss, I think we can consider him the point person on further
work.

I would prefer to have toolkit support for hardware detection, which
means it would be a great idea to incorporate this with Qt4. But that is
largely pie-in-the-sky thinking. Lorn is welcome to prove me wrong.

E

-- 
Erik Hovland
mail: erik_at_hovland.org
web: http://hovland.org/
PGP/GPG public key available on request
Received on Thu Feb 08 2007 - 14:05:51 EST

This archive was generated by hypermail 2.2.0 : Thu Feb 08 2007 - 14:06:09 EST