linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: linux-iio@vger.kernel.org
Cc: Mykola Dvornik <mykola.dvornik@gmail.com>,
	marxin.liska@gmail.com,
	Gabriele Mazzotta <gabriele.mzt@gmail.com>
Subject: Re: acpi-als on Dell XPS 13 9343
Date: Wed, 30 Dec 2015 10:50:11 +0100	[thread overview]
Message-ID: <201512301050.11178.marex@denx.de> (raw)
In-Reply-To: <1451468582.2348.0@smtp.gmail.com>

On Wednesday, December 30, 2015 at 10:43:02 AM, Mykola Dvornik wrote:
> Hi Marek,
> 
> Thanks for you prompt reply.
> 
> The DSDT describes _ALI method:
> 
> 	...
> Device (ALSD)
>     {
>         Name (_HID, "ACPI0008" /* Ambient Light Sensor Device */)  //
> _HID: Hardware ID
>         Method (_STA, 0, NotSerialized)  // _STA: Status
>         {
>             If ((ALSE == 0x02))
>             {
>                 Return (0x0B)
>             }
> 
>             Return (Zero)
>         }
> 
>         Method (_ALI, 0, NotSerialized)  // _ALI: Ambient Light
> Illuminance
>         {
>             Return (((LHIH << 0x08) | LLOW))
>         }
> 	...
> 
> acpidump also shows _ALI method.
> 
> But '/sys/bus/acpi/devices/ACPI0008:00' only contains:
> 
> hid
> modalias
> path
> power
> status
> subsystem
> uevent

OK, I don't have a machine with the ALS in it here, so I am CCing the list and
a few more interested parties.

> Regards,
> 
> Mykola
> 
> On Wed, Dec 30, 2015 at 9:52 AM, Marek Vasut <marex@denx.de> wrote:
> > On Wednesday, December 30, 2015 at 09:32:48 AM, Mykola Dvornik wrote:
> >>  Hi guys,
> >>  
> >>  I am writing to you because the acpi-als kernel module is not
> >> 
> >> detecting
> >> 
> >>  ALS on Dell XPS 13 9343.
> >>  
> >>  The (decompiled) DSDT of the laptop is attached to this email.
> >>  
> >>  The ACPI0008 is present in the system with 'cat modalias':
> >>  
> >>  acpi:ACPI0008:
> >>  
> >>  but exposes no iio-related stuff.
> >>  
> >>  I am running Fedora 23 with kernel-4.2.8.
> >>  
> >>  Would you be so kind to look into this issue?
> > 
> > Do you have the _ALI value in the ACPI0008 ? That's what's used to
> > read out
> > the illuminance and without it, the ALS driver won't report anything.
> > 
> > Best regards,
> > Marek Vasut

       reply	other threads:[~2015-12-30  9:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1451464368.2262.1@smtp.gmail.com>
     [not found] ` <201512300952.24700.marex@denx.de>
     [not found]   ` <1451468582.2348.0@smtp.gmail.com>
2015-12-30  9:50     ` Marek Vasut [this message]
2015-12-30 10:28       ` acpi-als on Dell XPS 13 9343 Gabriele Mazzotta
     [not found]         ` <1451473319.2316.0@smtp.gmail.com>
2015-12-30 11:07           ` Gabriele Mazzotta
2016-05-25 16:45         ` Pali Rohár

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=201512301050.11178.marex@denx.de \
    --to=marex@denx.de \
    --cc=gabriele.mzt@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=marxin.liska@gmail.com \
    --cc=mykola.dvornik@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).