Generic USB LED HID driver

Kirill Yatsenko kirill31051997f at gmail.com
Fri Jan 19 07:40:04 EST 2024


> > Hello Greg,
> >
> > Thanks for the suggestions!
> > Yes, it will be better to implement the communication from the
userspace.
> >
> > However, I was curious if the kernel implements some generic LED HID
> > interface already,
> > without the need to write custom code. Similarly, as it's done for
example
> > for the HID multitouch,
> > where the device only needs to report the correct report descriptor.

> I do not think there is a generic HID description yet, is there?  If so,
> the kernel should support it, otherwise it is all vendor-specific stuff
> that belongs in userspace.

Thanks again for your answer.
There is "LED Page" defined in HID Usage Tables. However, I can't find any
drivers that implement it.

But maybe I'm looking in the wrong direction.

Best regards,
Kirill Yatsenko



On Fri, 19 Jan 2024 at 13:07, Greg KH <greg at kroah.com> wrote:

> On Fri, Jan 19, 2024 at 12:45:52PM +0100, Kirill Yatsenko wrote:
> > Hello Greg,
> >
> > Thanks for the suggestions!
> > Yes, it will be better to implement the communication from the userspace.
> >
> > However, I was curious if the kernel implements some generic LED HID
> > interface already,
> > without the need to write custom code. Similarly, as it's done for
> example
> > for the HID multitouch,
> > where the device only needs to report the correct report descriptor.
>
> I do not think there is a generic HID description yet, is there?  If so,
> the kernel should support it, otherwise it is all vendor-specific stuff
> that belongs in userspace.
>
> thanks,
>
> greg k-h
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20240119/3fffe6a2/attachment.html>


More information about the Kernelnewbies mailing list