problems with HAL and input devices

Daniel Stone daniel.stone at nokia.com
Thu Jul 26 11:33:08 PDT 2007


On Thu, Jul 26, 2007 at 07:10:45PM +0100, ext Richard Hughes wrote:
> On Thu, 2007-07-26 at 14:07 -0400, David Zeuthen wrote:
> > > I think we also need the attached patch - it seems to fix it for me
> > but
> > > stopping the prober being run for raw input devices.
> > 
> > Can you explain why this patch is needed? Thanks.
> 
> Well, the input device is recognized as a switch, so the prober is run
> to check if it is a switch. It returns false, as it isn't a switch, and
> the device is removed (due to the prober fail).
> 
> We know any input device is not a switch and so we don't have to run the
> prober. If the prober isn't run, then it doesn't fail, and the device is
> not removed.

Hmm, this sounds like it's still going to be problematic.  Why do you
need to fail if it's not a switch?  Sounds like returning success if you
either: a) detect it's not a switch, or b) successfully set up the
switch, is the way to go here.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20070726/85e6a82f/attachment.pgp 


More information about the hal mailing list