Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1367191
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's |
| Date | 2016-03-30 15:10 +0200 |
| Message-ID | <rio2K-5RV-9@gated-at.bofh.it> (permalink) |
| References | <r80bo-6s3-25@gated-at.bofh.it> <rhYL2-4yM-33@gated-at.bofh.it> <ri8Km-35X-19@gated-at.bofh.it> <ri9Gq-3IQ-11@gated-at.bofh.it> <rijmr-2uB-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi! > >Ok, so: > > > >a) Do we want RGB leds to be handled by existing subsystem, or do we > >need separate layer on top of that? > > > >b) Does RGB make sense, or HSV? RGB is quite widely used in graphics, > >and it is what hardware implements. (But we'd need to do gamma > >correction). > > > >c) My hardware has "acceleration engine", LED is independend from > >CPU. That's rather big deal. Does yours? It seems to be quite common, > >at least in cellphones. > > > >Ideally, I'd like to have "triggers", but different ones. As in: if > >charging, do yellow " .xX" pattern. If fully charged, do green steady > >light. If message is waiting, do blue " x x" pattern. If none of > >above, do slow white blinking. (Plus priorities of events). But that's > >quite different from existing support...) > > Please note that HSV colour scheme allows to neatly project monochrome > brightness semantics on the RGB realm. I.e. you can have fixed > hue and saturation, and by changing the brightness component a perceived > colour intensity can be altered. I see HSV has some advantages. But we already have LEDs with multiple colors, and kernel already handles them: pavel@duo:~$ ls -1 /sys/class/leds/ tpacpi:green:batt tpacpi:orange:batt This is physically 2 leds but hidden under one indicator, so you got "off", "green", "orange" and "green+orange". Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-03-29 12:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Heiner Kallweit <hkallweit1@gmail.com> - 2016-03-29 22:50 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-03-29 23:50 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-03-30 00:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Heiner Kallweit <hkallweit1@gmail.com> - 2016-03-30 08:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-01 15:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-03-30 10:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-03-30 15:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Heiner Kallweit <hkallweit1@gmail.com> - 2016-03-30 16:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-03-31 10:20 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-01 16:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2016-04-01 21:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-01 23:20 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-01 15:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-04-01 15:30 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-01 16:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-04-01 16:30 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-01 17:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-01 15:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-03-30 10:00 +0200
csiph-web