Hi all, On Fri, May 15, 2009 at 09:30:41PM +0200, ext Mohamed Ikbel Boulabiar wrote: > I am really interested about that. > > But I want to know more about the device, its type, name, ... > The device isn't HID (Human Interface Device) ? If so, we should > rethink adding such thing but modify/use hid-input instead. > > Because, I have an accelerometer phidget device and it is HID. > Handling should be the same. Yeah, let's try to define the best way to expose accelerometers with linux kernel and avoid a sysfs hell. Better sooner than later. > On Fri, May 15, 2009 at 7:06 PM, Trilok Soni <soni.trilok@xxxxxxxxx> wrote: > > Hi Felipe, > > > > Adding linux-input and Jonathan, so not deleting any lines from this e-mail. > > > > On Fri, May 15, 2009 at 6:46 PM, Felipe Balbi <felipe.balbi@xxxxxxxxx> wrote: > >> Hi all, > >> > >> the following patch is just an idea to see how the community feels about > >> it. Considering accelerometer devices, you might have different use > >> cases for it while running different applications. You could be using it > >> for screen rotation in one case but when opening a game, you could use > >> it as a game controller by turning the device side-by-side. > > > > There was one proposal from Jonathan called Industrial IO patchset > > which tried to address these sensor devices. Please grep in your > > linux-kernel archieve. I believe there are accelerometer drivers under > > drivers/hwmon. The problem is that it doesn't really seem to me that all accelerometers will be doing hw monitoring. The ones used in laptops, for sure, trying to prevent the hd from drying during a fall. But imagine the accelerometers used in, say, wii-mote, or cellphones, or such stuff ? Say we wanna use the accelerometer for both screen rotation and gaming, that device isn't doing hw monitoring and still we _do_ want to set different thresholds and irq requests/types for different use cases, right ? I'll grep around the Industrial IO patchset if that's supposed to a 'sensor fw' sorta thing. Hope it does report the devices as input devices. I'm pretty sure we're gonna fall into similar issues when dealing with magnetometers, for instance, what's the best way to expose those device with current linux frameworks ? It's not really user input data... Well, let's see where this discussion takes us. Willing to hear from Jonatha, Dmitry and all of you guys -- balbi -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html