* proper framework for meter sink?
@ 2018-01-03 11:48 Oleksij Rempel
[not found] ` <649fa764-6598-8f05-90c0-e10a4d36b08f-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Oleksij Rempel @ 2018-01-03 11:48 UTC (permalink / raw)
To: linux-leds, Sakari Ailus, linux-iio, Hartmut Knaack,
Lars-Peter Clausen, Peter Meerwald-Stadler
Cc: Oleksij Rempel, Paul Fertser
[-- Attachment #1.1: Type: text/plain, Size: 817 bytes --]
Hallo all,
I wont to use existing LED triggers by setting multiple LEDs on trigger.
The triggers should use brightness value by different trigger intensity
and the driver should set different amount of LEDs depending on
brightness value.
With other words LED meter controller by kernel LED framework. It should
be possible to configure LED arrays by Device Tree.
Initially i was thinking about some kind of extended leds-gpio.c driver
which will convert brightness value to LED position. But one my friend
pointed me that metes exist in different configurations and it make no
sense to bind it to LED framework.
Do you have any ideas, suggestions, tips? I know there are lot of user
space based variants. On other hand kernel already have almost every
thing what I need.
--
Regards,
Oleksij
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: proper framework for meter sink?
[not found] ` <649fa764-6598-8f05-90c0-e10a4d36b08f-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>
@ 2018-01-03 12:23 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2018-01-03 12:23 UTC (permalink / raw)
To: Oleksij Rempel
Cc: linux-leds-u79uwXL29TY76Z2rM5mHXA, Sakari Ailus,
linux-iio-u79uwXL29TY76Z2rM5mHXA, Hartmut Knaack,
Lars-Peter Clausen, Peter Meerwald-Stadler, Oleksij Rempel,
Paul Fertser
[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]
Hi!
> I wont to use existing LED triggers by setting multiple LEDs on trigger.
> The triggers should use brightness value by different trigger intensity
> and the driver should set different amount of LEDs depending on
> brightness value.
Well... we don't really have "trigger intensities" inside the kernel.
Are you sure this is something kernel should do?
> With other words LED meter controller by kernel LED framework. It should
> be possible to configure LED arrays by Device Tree.
> Initially i was thinking about some kind of extended leds-gpio.c driver
> which will convert brightness value to LED position. But one my friend
> pointed me that metes exist in different configurations and it make no
> sense to bind it to LED framework.
>
> Do you have any ideas, suggestions, tips? I know there are lot of user
> space based variants. On other hand kernel already have almost every
> thing what I need.
We could have triggers like "on if value is above X", and then you
could use few of them to implement a meter.
But I guess this would be better done in userspace... Why not do it there?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-03 12:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03 11:48 proper framework for meter sink? Oleksij Rempel
[not found] ` <649fa764-6598-8f05-90c0-e10a4d36b08f-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>
2018-01-03 12:23 ` Pavel Machek
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).