public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Len Brown <lenb@kernel.org>,
	ibm-acpi-devel@lists.sourceforge.net, linux-acpi@vger.kernel.org,
	Richard Purdie <rpurdie@rpsys.net>
Subject: Re: [PATCH 08/13] ACPI: thinkpad-acpi: add sysfs led class support for thinklight (v3.1)
Date: Fri, 11 Apr 2008 17:24:02 -0700	[thread overview]
Message-ID: <20080411172402.a863c6c7.randy.dunlap@oracle.com> (raw)
In-Reply-To: <1207799585-10112-9-git-send-email-hmh@hmh.eng.br>

On Thu, 10 Apr 2008 00:53:00 -0300 Henrique de Moraes Holschuh wrote:

> Add a sysfs led class interface to the thinklight (light subdriver).
> 
> Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> Cc: Richard Purdie <rpurdie@rpsys.net>
> ---
>  Documentation/laptops/thinkpad-acpi.txt |   25 +++++++++++---
>  drivers/misc/thinkpad_acpi.c            |   57 ++++++++++++++++++++++++++++++-
>  2 files changed, 76 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/laptops/thinkpad-acpi.txt b/Documentation/laptops/thinkpad-acpi.txt
> index 0f403ff..22c1ac4 100644
> --- a/Documentation/laptops/thinkpad-acpi.txt
> +++ b/Documentation/laptops/thinkpad-acpi.txt
> @@ -692,16 +692,31 @@ while others are still having problems. For more information:
>  
>  https://bugs.freedesktop.org/show_bug.cgi?id=2000
>  
> -ThinkLight control -- /proc/acpi/ibm/light
> -------------------------------------------
> +ThinkLight control
> +------------------
> +
> +procfs: /proc/acpi/ibm/light
> +sysfs attributes: as per led class, for the "tpacpi::thinklight" led
> +

Well, I would really prefer that we call LEDs "LED" instead of "led"
in user documentation.

> +procfs notes:
>  
> -The current status of the ThinkLight can be found in this file. A few
> -models which do not make the status available will show it as
> -"unknown". The available commands are:
> +The ThinkLight status can be read and set through the procfs interface.  A
> +few models which do not make the status available will show the ThinkLight
> +status as "unknown". The available commands are:
>  
>  	echo on  > /proc/acpi/ibm/light
>  	echo off > /proc/acpi/ibm/light
>  
> +sysfs notes:
> +
> +The ThinkLight sysfs interface is documented by the led class
> +documentation, in Documentation/leds-class.txt.  The ThinkLight led name
> +is "tpacpi::thinklight".
> +
> +Due to limitations in the sysfs led class, if the status of the thinklight
> +cannot be read or if it is unknown, thinkpad-acpi will report it as "off".
> +It is impossible to know if the status returned through sysfs is valid.
> +
>  Docking / undocking -- /proc/acpi/ibm/dock
>  ------------------------------------------


---
~Randy

  reply	other threads:[~2008-04-12  0:26 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10  3:52 [GIT PATCH] thinkpad-acpi queue for the 2.6.26 merge window Henrique de Moraes Holschuh
2008-04-10  3:52 ` [PATCH 03/13] ACPI: thinkpad-acpi: enhance box identification output Henrique de Moraes Holschuh
     [not found] ` <1207799585-10112-1-git-send-email-hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org>
2008-04-10  3:52   ` [PATCH 01/13] ACPI: thinkpad-acpi: BIOS backlight mode helper (v2) Henrique de Moraes Holschuh
2008-04-12  0:26     ` Randy Dunlap
2008-04-10  3:52   ` [PATCH 02/13] ACPI: thinkpad-acpi: warn once about weird hotkey masks Henrique de Moraes Holschuh
2008-04-10  3:52   ` [PATCH 04/13] ACPI: thinkpad-acpi: rate-limit CMOS/EC unsynced error messages Henrique de Moraes Holschuh
2008-04-10  3:52   ` [PATCH 05/13] ACPI: thinkpad-acpi: fix brightness dimming control bug Henrique de Moraes Holschuh
2008-04-10  3:52   ` [PATCH 06/13] ACPI: thinkpad-acpi: claim tpacpi as an official short handle Henrique de Moraes Holschuh
2008-04-12  0:21     ` Randy Dunlap
2008-04-10  3:52   ` [PATCH 07/13] ACPI: thinkpad-acpi: prepare light and LED for sysfs support Henrique de Moraes Holschuh
2008-04-10  3:53   ` [PATCH 09/13] ACPI: thinkpad-acpi: add sysfs led class support to thinkpad leds (v3.1) Henrique de Moraes Holschuh
2008-04-12  0:21     ` Randy Dunlap
2008-04-12 13:10       ` Henrique de Moraes Holschuh
2008-04-10  3:53   ` [PATCH 10/13] ACPI: thinkpad-acpi: fluff really minor fix Henrique de Moraes Holschuh
2008-04-10  3:53   ` [PATCH 13/13] ACPI: thinkpad-acpi: bump up version to 0.20 Henrique de Moraes Holschuh
2008-04-10  6:37   ` [GIT PATCH] thinkpad-acpi queue for the 2.6.26 merge window Len Brown
     [not found]     ` <200804100237.16177.lenb-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2008-04-10 12:34       ` Henrique de Moraes Holschuh
2008-04-10 17:23         ` Len Brown
2008-04-10 22:34           ` Richard Purdie
2008-04-12 13:54             ` Henrique de Moraes Holschuh
2008-04-22 20:02             ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
     [not found]               ` <20080422200223.GA25311-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2008-04-23 23:16                 ` Richard Purdie
2008-04-10  3:53 ` [PATCH 08/13] ACPI: thinkpad-acpi: add sysfs led class support for thinklight (v3.1) Henrique de Moraes Holschuh
2008-04-12  0:24   ` Randy Dunlap [this message]
2008-04-12 14:51     ` Henrique de Moraes Holschuh
2008-04-10  3:53 ` [PATCH 11/13] ACPI: thinkpad-acpi: use a private workqueue Henrique de Moraes Holschuh
2008-04-10  3:53 ` [PATCH 12/13] ACPI: thinkpad-acpi: fix selects in Kconfig 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=20080411172402.a863c6c7.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=hmh@hmh.eng.br \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox