From owner-freebsd-current@freebsd.org Fri Apr 29 20:02:45 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 B006EB21ECF for ; Fri, 29 Apr 2016 20:02:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 914281CA4; Fri, 29 Apr 2016 20:02:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A7EE9B987; Fri, 29 Apr 2016 16:02:44 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Cc: "Lundberg, Johannes" , rpaulo@freebsd.org Subject: Re: asmc suspend/resume Date: Fri, 29 Apr 2016 12:42:15 -0700 Message-ID: <4881754.mnNf1atcJE@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 29 Apr 2016 16:02:44 -0400 (EDT) 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 20:02:45 -0000 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 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? 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=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? Are you booting via UEFI? -- John Baldwin