Re: asmc suspend/resume

From: Lundberg, Johannes <johannes_at_brilliantservice.co.jp>
Date: Thu, 28 Apr 2016 18:11:48 -0700
Just found some errors in dmesg I can add.

Fan safe speed:
asmc0: asmc_key_read for key F0Sf failed 10 times, giving up

Motion sensor:
asmc0: asmc_key_read for key MOCN failed 10 times, giving up
asmc0: asmc_key_read for key MO_X failed 10 times, giving up
asmc0: asmc_key_read for key MO_Y failed 10 times, giving up
asmc0: asmc_key_read for key MO_Z failed 10 times, giving up



On Thu, Apr 28, 2016 at 5:48 PM, Lundberg, Johannes <
johannes_at_brilliantservice.co.jp> wrote:

> Hi
>
> I've added MacbookAir5,1 to asmc and will send a patch soon. Just wanted
> to ask for some advice first.
>
> Copying the configuration from MBA3 I get the following:
>
> SMS seems to be not supported. kldload takes minutes to complete and gives
> weird values. I just disable that for now.
>
> FAN seems to function normally except "safespeed" is very large number
> compared to maxspeed.
>
> TEMP also seems correct but can not really confirm what sensors are on in
> the machine.
>
> Light.right is always zero.
> Light.left seems to work normally.
>
> Light.control works fine except:
> The keyboard backlight is turned off when resuming from suspend (S3). The
> sysctl reports the last set value but it needs to be set again after
> resume. Are there suspend / resume functions like probe/attach etc that are
> called that I can implement or how do kernel modules handle suspend/resume?
>
> Output:
>
> dev.asmc.0.light.control: 0
> dev.asmc.0.light.right: 0
> dev.asmc.0.light.left: 1
> dev.asmc.0.temp.TC0P: 47
> dev.asmc.0.temp.TC0E: 51
> dev.asmc.0.temp.TC0D: 52
> dev.asmc.0.temp.TB2T: 32
> dev.asmc.0.temp.TB1T: 34
> dev.asmc.0.temp.enclosure: 34
> dev.asmc.0.fan.0.targetspeed: 2000
> dev.asmc.0.fan.0.maxspeed: 6500
> dev.asmc.0.fan.0.minspeed: 2000
> dev.asmc.0.fan.0.safespeed: 16383
> dev.asmc.0.fan.0.speed: 2002
> dev.asmc.0.fan.0.id: Exhaust
> dev.asmc.0.%parent: acpi0
> dev.asmc.0.%pnpinfo: _HID=APP0001 _UID=0
> dev.asmc.0.%location: handle=\_SB_.PCI0.LPCB.SMC_
> dev.asmc.0.%driver: asmc
> dev.asmc.0.%desc: Apple SMC MacBook Air 11" (Mid 2012)
> dev.asmc.%parent:
>
>
> One more thing,
> dmidecode can't find any SMBIOS or DMI entries so I have to add
> smbios.system.product="MacBookAir5,1"
> to /boot/loader.conf. Is this normal?
>
> Thanks!
>
> Johannes
>
>

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
Received on Thu Apr 28 2016 - 23:12:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:04 UTC