sensors and hardware buttons - was Re: 4.7.0-rc2

Nicolas Huillard nicolas at huillard.net
Thu Jun 30 22:05:46 CEST 2016


Le jeudi 30 juin 2016 à 20:08 +0100, Paul Mansfield a écrit :
> On 30 June 2016 at 14:46, Nicolas Huillard <nicolas at huillard.net> wrote:
> >> have we ever seen other sensors/signals?
> >> * power button
> >
> > This is also a standard ACPI feature, and should be OK. I didn't check,
> > but soft power off wouldn't work without it.
> 
> I've not seen the soft power-off button work, have you? How do I enable it?

Sorry. I was sure it was working, but it doesn't...

> >> * volume up/down?
> >> * windows button
> >
> > These are apparently (SharksCove reference design) directly connected to
> > GPIO on the SoC, and should be described in ACPI tables. This is thus
> > very BayTrail-specific, and will probably work sooner or later.
> 
> maybe we can hack up something to read the pins directly?

I didn't find the GPI or pin number for those buttons anywhere in the
docs you found... There is a "Device (TBAD)" in the DSDT with Hardware
ID "Intel Baytrail SOC GPIO Controller", Compatible ID "Standard Button
Controller", DOS Device Name "Keyboard less system - 5 Button Array
Device", which sound like a good candidate. The 5 buttons could be power
+ home + sound up/down + lid. Too bad I don't understand a lot in this
DSDT...

> >> * temperature sensors?
> >
> > I didn't try lm_sensors, but I guess temperature sensors are also
> > BayTrail specific, and may not be described in the ACPI tables. There
> > may be sensors in the PMIC chip too (AXP288 if I remember correctly),
> > maybe available in some specific way.
> 
> I can't find a mention of axp288 in any kernel config file, could it
> be known by another name?

I may have found that indirectly somewhere, a long time ago. It also
appears in the SharksCove docs. I'm not sure it is involved though..

> > I just noticed my older kernels didn't enable many things in the "Device
> > drivers/GPIO support" config branch. There are many Intel things there.
> 
> I've been gradually turning on various devices in my configs in the vague hope.
> 
> The good news is that a friend who really understands linux device
> drivers has bought one, and I am hoping he can fix stuff!

There is also a cheap french one there if someone want to get involved :
http://www.ldlc-pro.com/fiche/PB00198724.html

By the way : 4.7.0rc5 x64 works great here, but the Wifi driver stops
responding after a while, with an error like "nobody cared for IRQ187"
then "disabling IRQ187". Only a shutdown (not clean) can make the
network responsive (I wasn't able to use the USB Ethernet after
re-plugging it). The whole machine was still working though; only the
network was down.

-- 
NH



More information about the click mailing list