* HID Custom Sensor driver in linux kernel
@ 2015-02-10 17:42 s.rawat
2015-02-10 22:20 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: s.rawat @ 2015-02-10 17:42 UTC (permalink / raw)
To: kernelnewbies
I am reading the HID sensor hub code on lxr
<http://lxr.free-electrons.com/source/drivers/hid/hid-sensor-hub.c> and
found that there is no driver code for hid custom sensor.Is this driver non
existent.Hid custom sensor is a custom sensor implemented in the device
firmware.
I have a sensor device to which i can talk in windows using hid dlls ,I can
even read custom fields of a custom sensor of a device through windows apis.
I want to do the same in linux.I can read the accelerometer, gyroscope and
magnetometer data through a c application
<https://github.com/pfps/yoga-laptop> in Linux.But I am unable to do so for
a custom sensors due to un-availability of the HID custom sensor
driver.Does it exist or exist by some other name?.
Rgds
S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150210/8a968c72/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* HID Custom Sensor driver in linux kernel
2015-02-10 17:42 HID Custom Sensor driver in linux kernel s.rawat
@ 2015-02-10 22:20 ` Greg KH
2015-02-11 11:18 ` s.rawat
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2015-02-10 22:20 UTC (permalink / raw)
To: kernelnewbies
On Tue, Feb 10, 2015 at 11:12:57PM +0530, s.rawat wrote:
> I am reading the HID sensor hub code on lxr??and found that there is no driver
> code for hid custom sensor.Is this driver non existent.Hid custom sensor is a
> custom sensor implemented in the device firmware.
> I have a sensor device to which i can talk in windows using hid dlls ,I can
> even read custom fields of a custom sensor of a device through windows apis.
> I want to do the same in linux.I can read the accelerometer, gyroscope and
> magnetometer data through a c application?in Linux.But I am unable to do so for
> a custom sensors due to un-availability of the HID custom sensor driver.Does it
> exist or exist by some other name?.
Have you looked in drivers/iio/common/hid-sensors? There are also other
specific hid sensor drivers in drivers/iio/ for those specific chipsets
that are just a bit different from the specification.
Hope this helps,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* HID Custom Sensor driver in linux kernel
2015-02-10 22:20 ` Greg KH
@ 2015-02-11 11:18 ` s.rawat
2015-02-12 2:04 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: s.rawat @ 2015-02-11 11:18 UTC (permalink / raw)
To: kernelnewbies
thanks for the hint.A quick grep of hid-custom* or custom* inside
Documentation/hid as well as drivers/iio/ doesn't yields anything related
to hid custom sensor driver.Manual search inside the folders recursively
also give the same result.I did this for kernel 3.18.x and 3.19.x.I
inspired to find the implementation of hid-custom sensor by looking at a
code in google : https://github.com/pfps/yoga-laptop .My intention is to
use the hid-custom driver to retrieve the custom values inside the custom
sensor fields .I built the above module for custom sensor but got some
failure in inserting the custom sensor module - " dmesg log "failed to
setup attributes"" : so looking for an update driver for
hid-custom-sensor.I may be re-looking the same driver again if it doesnt
have an updated version.
Rgds,
S
On Wed, Feb 11, 2015 at 3:50 AM, Greg KH <greg@kroah.com> wrote:
> On Tue, Feb 10, 2015 at 11:12:57PM +0530, s.rawat wrote:
> > I am reading the HID sensor hub code on lxr and found that there is no
> driver
> > code for hid custom sensor.Is this driver non existent.Hid custom sensor
> is a
> > custom sensor implemented in the device firmware.
> > I have a sensor device to which i can talk in windows using hid dlls ,I
> can
> > even read custom fields of a custom sensor of a device through windows
> apis.
> > I want to do the same in linux.I can read the accelerometer, gyroscope
> and
> > magnetometer data through a c application in Linux.But I am unable to do
> so for
> > a custom sensors due to un-availability of the HID custom sensor
> driver.Does it
> > exist or exist by some other name?.
>
> Have you looked in drivers/iio/common/hid-sensors? There are also other
> specific hid sensor drivers in drivers/iio/ for those specific chipsets
> that are just a bit different from the specification.
>
> Hope this helps,
>
> greg k-h
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150211/bad37e69/attachment-0001.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* HID Custom Sensor driver in linux kernel
2015-02-11 11:18 ` s.rawat
@ 2015-02-12 2:04 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2015-02-12 2:04 UTC (permalink / raw)
To: kernelnewbies
On Wed, Feb 11, 2015 at 04:48:44PM +0530, s.rawat wrote:
> thanks for the hint.A quick grep of hid-custom* or custom* inside Documentation
> /hid as well as drivers/iio/ doesn't yields anything related to hid custom
> sensor driver.Manual search inside the folders recursively also give the same
> result.I did this for kernel 3.18.x and 3.19.x.I inspired to find the
> implementation of hid-custom sensor by looking at a code in google :?https://
> github.com/pfps/yoga-laptop .My intention is to use the hid-custom driver to
> retrieve the custom values inside the custom sensor fields .I built the above
> module for custom sensor but got some failure in inserting the custom sensor
> module - "?dmesg log "failed to setup attributes""?: so looking for an update
> driver for hid-custom-sensor.I may be re-looking the same driver again if it
> doesnt have an updated version.
Try asking about this on the linux-iio mailing list, the developers
there should be able to help you out much better than we can as they are
responsible for the existing hid iio drivers.
hope this helps,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-12 2:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 17:42 HID Custom Sensor driver in linux kernel s.rawat
2015-02-10 22:20 ` Greg KH
2015-02-11 11:18 ` s.rawat
2015-02-12 2:04 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).