All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Rodolfo Giometti <giometti@enneenne.com>
Cc: linux-kernel@vger.kernel.org, Richard Purdie <rpurdie@rpsys.net>
Subject: Re: [PATCH V3] led: Backlight trigger for led subsystem
Date: Tue, 7 Oct 2008 20:58:46 +0200	[thread overview]
Message-ID: <20081007185846.GA6604@elf.ucw.cz> (raw)
In-Reply-To: <20081007152032.GH13035@tekkaman>

On Tue 2008-10-07 17:20:32, Rodolfo Giometti wrote:
> On Tue, Oct 07, 2008 at 03:54:20PM +0200, Pavel Machek wrote:
> > Hi!
> > 
> > > This patch set adds a new led trigger which emulates the backlight
> > > behaviour: the leds are turned off and on each time the display blanks
> > > and unblacks.
> > > 
> > > Since backlights are usually implemented with leds this patch set is
> > > useful for those drivers whose manage leds controller used as
> > > backlight controller.
> > > 
> > > The driver simply registers itself into the led subsystem and then the
> > > user may get backlight emulation by setting the "backlight"
> > > trigger. Moreover a driver, which usually manages more than one led,
> > > can use some leds as "led" and the others as "backlights" at user
> > > request.
> > 
> > We already have backlight subsystem, it can also handle display
> > brightness. Why not use that?
> 
> Just to use a led as "led" or as "backlight" at user request. You can
> do it by using:
> 
>    echo none > /sys/class/leds/lcd/trigger
>    echo backlight > /sys/class/leds/lcd/trigger
> 
> and the led will work accordingly.
> 
> Also a led used as "backlight" is just a normal led (you can set the
> brightness as a normal led) but it switchs off automatically when the
> LCD blanks.

Ok, what is it good for? So I have backlight, charging led and hdd led
on my zaurus. Now I can set charging led to indicate backlight... but
why is it useful?
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2008-10-07 18:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07 10:10 [PATCH V3] led: Backlight trigger for led subsystem Rodolfo Giometti
2008-10-07 10:10 ` [PATCH 1/1] led: add a backlight emulation trigger Rodolfo Giometti
2008-10-13  8:28   ` Richard Purdie
2008-10-07 13:54 ` [PATCH V3] led: Backlight trigger for led subsystem Pavel Machek
2008-10-07 15:20   ` Rodolfo Giometti
2008-10-07 18:58     ` Pavel Machek [this message]
2008-10-07 19:21       ` Rodolfo Giometti
2008-10-07 19:56         ` Pavel Machek
2008-10-07 20:19           ` Rodolfo Giometti
2008-10-07 20:39             ` Mark Brown
2008-10-07 21:19               ` Pavel Machek
2008-10-07 21:32                 ` Rodolfo Giometti
2008-10-07 21:11           ` Henrique de Moraes Holschuh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081007185846.GA6604@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=giometti@enneenne.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpurdie@rpsys.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.