Linux Input/HID development
 help / color / mirror / Atom feed
* question on LEDs on keyboards
@ 2008-10-14 13:20 Oliver Neukum
  2008-10-14 13:32 ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Neukum @ 2008-10-14 13:20 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input

Hi,

I found an error in the hid autosuspend patches. Keyboards can have
more than one LED. Is there a way to query the HID layer about active
LEDs?

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: question on LEDs on keyboards
  2008-10-14 13:20 question on LEDs on keyboards Oliver Neukum
@ 2008-10-14 13:32 ` Jiri Kosina
  2008-10-14 18:13   ` Oliver Neukum
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2008-10-14 13:32 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-input

On Tue, 14 Oct 2008, Oliver Neukum wrote:

> I found an error in the hid autosuspend patches. Keyboards can have more 
> than one LED. Is there a way to query the HID layer about active LEDs?

Hi Oliver,

you can either get the information from the underlying input device, or 
you can use hidinput_find_field() to find the fields of EV_LED type, and 
obtain the value from the offset that this function gives you.

Hope this helps,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: question on LEDs on keyboards
  2008-10-14 13:32 ` Jiri Kosina
@ 2008-10-14 18:13   ` Oliver Neukum
  2008-10-16  0:06     ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Neukum @ 2008-10-14 18:13 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input

Am Dienstag, 14. Oktober 2008 15:32:41 schrieb Jiri Kosina:
> On Tue, 14 Oct 2008, Oliver Neukum wrote:
> 
> > I found an error in the hid autosuspend patches. Keyboards can have more 
> > than one LED. Is there a way to query the HID layer about active LEDs?
> 
> Hi Oliver,
> 
> you can either get the information from the underlying input device, or 
> you can use hidinput_find_field() to find the fields of EV_LED type, and 
> obtain the value from the offset that this function gives you.

What is the prefered way of doing that? There seems to be no hid_get_field().

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: question on LEDs on keyboards
  2008-10-14 18:13   ` Oliver Neukum
@ 2008-10-16  0:06     ` Jiri Kosina
  0 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2008-10-16  0:06 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-input

On Tue, 14 Oct 2008, Oliver Neukum wrote:

> > > I found an error in the hid autosuspend patches. Keyboards can have more 
> > > than one LED. Is there a way to query the HID layer about active LEDs?
> > you can either get the information from the underlying input device, or 
> > you can use hidinput_find_field() to find the fields of EV_LED type, and 
> > obtain the value from the offset that this function gives you.
> What is the prefered way of doing that? There seems to be no hid_get_field().

Yes, there is no such function yet. If you need it in autosuspend patch 
and implement it, I'll happily merge it.

Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-16  0:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 13:20 question on LEDs on keyboards Oliver Neukum
2008-10-14 13:32 ` Jiri Kosina
2008-10-14 18:13   ` Oliver Neukum
2008-10-16  0:06     ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox