All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Holler <holler@ahsoftware.de>
To: Corentin Chary <corentincj@iksaif.net>
Cc: platform-driver-x86@vger.kernel.org, Zhang Rui <rui.zhang@intel.com>
Subject: Re: samsung-laptop: light sensor?
Date: Mon, 10 Sep 2012 13:09:52 +0200	[thread overview]
Message-ID: <504DCA80.7040305@ahsoftware.de> (raw)
In-Reply-To: <CAHR064iz1BTP71FMVb_3vYpx0+Jg9v56oZqMfJnu7K__mFO4Ng@mail.gmail.com>

Am 10.09.2012 11:27, schrieb Corentin Chary:
> On Sun, Sep 9, 2012 at 8:31 PM, Alexander Holler <holler@ahsoftware.de> wrote:
>> Hello,
>>
>> I'm searching some information about how to read the values from the
>> light sensor found on some Samsung laptops.
>>
>> Does anyone have any information about how to access the light sensor?
>> If I would find such information, I would (try) to write a driver (or
>> enhance samsung-laptop), at least to read the values and maybe something
>> to adjust the keyboard- and/or the lcd-backlight (on startup and maybe
>> dynamically at runtime).
>>
>> Regards,
>>
>> Alexander
> 
> Hello Alexander,
> The light sensor can be used (on mine at least), but nobody had the
> time to write (rebase) the driver for it.
> Check these discussions:
> http://search.gmane.org/?query=ACPI+light+sensor&group=gmane.linux.acpi.devel
> 
> Basically, it's a standard ACPI light sensor, there was a driver for
> it, but it should use another subsystem, and nobody did the work so

Thanks a lot for that hint. I've just booted an 3.5.3:
----
laptopah ~ # cat /sys/class/als/acpi_als0/illuminance
3230
----

Only a few modifications on the 2 patches from Zhang Rui were necessary
to build the driver for the als-acpi-device.

> far :). I'll happy to review if you have the time to do that.

I will have a look at the threads for those 2 patches and will check if
I can modify those patches for a next try for inclusion into the
mainline kernel (in the next weeks, as I will find time, I'm new to the
acpi-stuff in the kernel).

Regards,

Alexander

  reply	other threads:[~2012-09-10 11:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09 19:31 samsung-laptop: light sensor? Alexander Holler
2012-09-10  9:27 ` Corentin Chary
2012-09-10 11:09   ` Alexander Holler [this message]
2012-09-10 12:49     ` Corentin Chary

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=504DCA80.7040305@ahsoftware.de \
    --to=holler@ahsoftware.de \
    --cc=corentincj@iksaif.net \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    /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.