From owner-freebsd-current@freebsd.org Fri Apr 29 21:39:31 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7C81B21A06 for ; Fri, 29 Apr 2016 21:39:31 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EC1A1EDA for ; Fri, 29 Apr 2016 21:39:31 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: by mail-vk0-x22a.google.com with SMTP id u23so6222486vkb.2 for ; Fri, 29 Apr 2016 14:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brilliantservice-co-jp.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4/V9YvXy72zxJF7YfbFbDoRzj9l3WyHH1C4+Avi7r+k=; b=dCt368JjnlW5SgNfZFwr5r6scQhI32rx+f7s2mXSBCuzZgaRYHczCwrzgzj/wmHsYl HskORadkSHv82RF90X3EKDIyY5JXTAMBe07ckHaBxA5c8NzIcbHstsQaB3lw4hcFl18Z bR4x9WOIRaKVcD2ZQUPJVvHr9avbfMjiFvONaGygLgkJROEdUa8cQADD8rXP5N351zPL 1TGr+OfmcgBx+BbGTurjH2R5RkkY+w1EdU+y2/gDFfTElGfzajBuIMZ4Q1AICbS7yukV 8llDYYU0hpatGayajCcnEvA4rMWqVszbud3XMpS5jafVzUErvI8xDYo7GnKCETlvlM2Z z3vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4/V9YvXy72zxJF7YfbFbDoRzj9l3WyHH1C4+Avi7r+k=; b=GDOIKL0/OFxUWCzeyphGK7UKUSXREASCUOXxtBVjyvEg8Or0JABvBkRhQpvVxpyXsS WRyXs0cw27++7a1Zarm8PNuzMOMPtRs9vxsk2cXe2SxrEmE188uGyQXSpejx8M9vtPqr 9HzpX+wvyTfn/2eIFgwbBeRUDgA5BuFfMvuEx58K9kX9bYNniJKd0/E9a/Yuj0WlDDGW PZ129NjWGN3ndNujCQBBy0sw/mpUJeHmHYM9aBurEjolYBfSRP4emjuRMkGLmpuqwLfm RF93QkIJE21JFITvPVGQ+EzMwdliK1ftu3QGFJCIQgyKBSnhsXhTozwvv36ckm2DzVaK 0nRg== X-Gm-Message-State: AOPr4FVvEXjRHVU4vd1rwacRTqrtfU8H57JrOWztnQuRsihNvN+hN284O8xJWww+bIbUM+JoIw/+UZUNh0p7/zyh5vd3ZMOWh0YWmyt4VcwM7nfeIXXzSVDmquYaMf5xvDvxzPEWGOVwlfBnkfNgIoYKoYQ= X-Received: by 10.159.38.48 with SMTP id 45mr14202296uag.7.1461965970561; Fri, 29 Apr 2016 14:39:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.0.103 with HTTP; Fri, 29 Apr 2016 14:39:16 -0700 (PDT) In-Reply-To: <4881754.mnNf1atcJE@ralph.baldwin.cx> References: <4881754.mnNf1atcJE@ralph.baldwin.cx> From: "Lundberg, Johannes" Date: Fri, 29 Apr 2016 14:39:16 -0700 Message-ID: Subject: Re: asmc suspend/resume To: John Baldwin Cc: FreeBSD Current , rpaulo@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2016 21:39:31 -0000 Thanks! Yes, it is UEFI. On Fri, Apr 29, 2016 at 12:42 PM, John Baldwin wrote: > On Thursday, April 28, 2016 05:48:51 PM Lundberg, Johannes wrote: > > Hi > > > > I've added MacbookAir5,1 to asmc and will send a patch soon. Just wante= d > 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). T= he > > 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? > > Yes, there is device_suspend and device_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=3DAPP0001 _UID=3D0 > > dev.asmc.0.%location: handle=3D\_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=3D"MacBookAir5,1" > > to /boot/loader.conf. Is this normal? > > Are you booting via UEFI? > > -- > John Baldwin > --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- 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.