linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Building BarGraph with LED subsystem
@ 2012-03-16 15:24 simon
  2012-03-16 16:05 ` John Stoffel
  0 siblings, 1 reply; 8+ messages in thread
From: simon @ 2012-03-16 15:24 UTC (permalink / raw)
  To: linux-input; +Cc: linux-kernel

Hi all,
I have a couple of questions about the (user-land) use of the LED subsystem.

I recently offered a patch for controlling the LEDs of the G27 gaming
wheel, on which the LEDs are arranged in a bar-graph of 5 to show
simulation RPM. The suggestion was to use the LED subsystem, which this
patch implements.

http://www.spinics.net/lists/linux-input/msg19747.html

Thinking further about how to about how to control this I was wondering
whether a 'threshold' trigger would be useful. This would allow the use of
value (uint?) to be compare against a threshold and the LED turned on/off
automatically.

The main benefit of doing this as a 'trigger' is that we could 'link' (or
'sync') multiple LEDs to use the same value input, thus making the
user-land stuff trivial.

Concept - ledtrig-thres would provide the controls:
   threshold - value to compare against.
   value - incoming value, if >= threshold LED is lit, if < threshold LED
is dark.
   link - 'none' (standalone comparison), or the path to the value of
another LED's value to use (ie '/sys/leds/my_device::2/value')

Comments? Is this all too complex?


Also I have a question about the default permissions on the LED controls;
Is it possible to register LEDs so that users have write permission? At
present the controls are only accessible as root.

Many thanks,
Simon.



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

end of thread, other threads:[~2012-03-16 20:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16 15:24 Building BarGraph with LED subsystem simon
2012-03-16 16:05 ` John Stoffel
2012-03-16 16:26   ` simon
2012-03-16 16:57     ` John Stoffel
2012-03-16 16:38   ` simon
2012-03-16 16:54     ` John Stoffel
2012-03-16 17:35       ` simon
2012-03-16 20:06         ` John Stoffel

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).