From: Gabriele Mazzotta <gabriele.mzt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Darren Hart <dvhart-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Cc: Brian Norris
<computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
libsmbios-devel-XtjxT7Vmt5ZskZv2Y/7f+AC/G2K4zDHf@public.gmane.org,
Srinivas_G_Gowda-8PEkshWhKlo@public.gmane.org,
Michael_E_Brown-8PEkshWhKlo@public.gmane.org,
pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
A.Sloman-dxBOTFGcEFw2EctHIo1CcQ@public.gmane.org
Subject: Re: [PATCH] Documentation: Add entry for dell-laptop sysfs interface
Date: Sat, 10 Jan 2015 14:08:11 +0100 [thread overview]
Message-ID: <2495157.bRb6NIzxPV@xps13> (raw)
In-Reply-To: <20150110065714.GB104814@vmdeb7>
On Friday 09 January 2015 22:57:14 Darren Hart wrote:
> On Wed, Dec 31, 2014 at 12:20:59PM +0100, Gabriele Mazzotta wrote:
> > On Tuesday 30 December 2014 21:31:49 Brian Norris wrote:
> > > Hi,
> > >
> > > On Wed, Dec 03, 2014 at 06:41:33PM +0100, Gabriele Mazzotta wrote:
> > > > Add the documentation for the new sysfs interface of dell-laptop
> > > > that allows to configure the keyboard illumination on Dell systems.
> > > >
> > > > Signed-off-by: Gabriele Mazzotta <gabriele.mzt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > > > Signed-off-by: Pali Rohár <pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > > > ---
> > > > .../ABI/testing/sysfs-platform-dell-laptop | 60 ++++++++++++++++++++++
> > > > 1 file changed, 60 insertions(+)
> > > > create mode 100644 Documentation/ABI/testing/sysfs-platform-dell-laptop
> > > >
> > > > diff --git a/Documentation/ABI/testing/sysfs-platform-dell-laptop b/Documentation/ABI/testing/sysfs-platform-dell-laptop
> > > > new file mode 100644
> > > > index 0000000..7969443
> > > > --- /dev/null
> > > > +++ b/Documentation/ABI/testing/sysfs-platform-dell-laptop
> > > > @@ -0,0 +1,60 @@
> > > > +What: /sys/class/leds/dell::kbd_backlight/als_setting
> > > > +Date: December 2014
> > > > +KernelVersion: 3.19
> > > > +Contact: Gabriele Mazzotta <gabriele.mzt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
> > > > + Pali Rohár <pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > > > +Description:
> > > > + This file allows to control the automatic keyboard
> > > > + illumination mode on some systems that have an ambient
> > > > + light sensor. Write 1 to this file to enable the auto
> > > > + mode, 0 to disable it.
> > > [...]
> > >
> > > This entry appears wrong, or at least incomplete. My system boots with a
> > > default value of 18, and the 'set' implementation accepts any value from
> > > 0 to 255.
> > >
> > > According to the comments in dell-laptop.c, the value actually means
> > > something different than on/off:
> > >
> > > cbArg3, byte0 Desired setting of ALS value that turns the light on or off.
> > >
> > > Admittedly, I'm not clear on what the intended interface is, as I've
> > > never had the ALS / keyboard backlight controls all working properly on
> > > my laptop in the first place, but I thought this would be the right
> > > place to ask about getting the documentation and driver in sync.
> >
> > Hi,
> >
> > You are perfectly right, the documentation is wrong and I'm sorry for
> > that. als_setting should allow you to define when the keyboard
> > backlight has to be turned on or off depending on the value reported
> > by the ambient light sensor.
> >
> > Please note that not everything that is in libsmbios [1] is implemented
> > in the kernel driver. Take a look at it, recently there have been few
> > changes related to the ALS settings. Probably they are not needed given
> > that you are able to set the threshold with the current kernel driver,
> > but you might find something interesting.
> >
> > I'll submit a patch to correct the documentation, thanks for reporting.
>
> Hi Gabriele,
>
> Have I missed a patch from you for this? I'd like to see this corrected in the
> 3.19 rc cycle.
>
> Thanks,
I'm sorry, I must have done something wrong when I sent the patch, the
CC list is not complete.
Thanks for the link Brian.
prev parent reply other threads:[~2015-01-10 13:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 17:41 [PATCH] Documentation: Add entry for dell-laptop sysfs interface Gabriele Mazzotta
2014-12-03 13:18 ` Darren Hart
[not found] ` <1417628493-29323-1-git-send-email-gabriele.mzt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-11 5:08 ` Darren Hart
2014-12-31 5:31 ` Brian Norris
2014-12-31 11:20 ` Gabriele Mazzotta
2015-01-02 4:25 ` Darren Hart
2015-01-10 6:57 ` Darren Hart
2015-01-10 8:21 ` Brian Norris
2015-01-10 13:08 ` Gabriele Mazzotta [this message]
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=2495157.bRb6NIzxPV@xps13 \
--to=gabriele.mzt-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=A.Sloman-dxBOTFGcEFw2EctHIo1CcQ@public.gmane.org \
--cc=Michael_E_Brown-8PEkshWhKlo@public.gmane.org \
--cc=Srinivas_G_Gowda-8PEkshWhKlo@public.gmane.org \
--cc=computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=dvhart-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=libsmbios-devel-XtjxT7Vmt5ZskZv2Y/7f+AC/G2K4zDHf@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org \
--cc=pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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