From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 14 13:09:19 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A45401065670; Sun, 14 Nov 2010 13:09:19 +0000 (UTC) (envelope-from g.veniamin@googlemail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 34DF88FC0C; Sun, 14 Nov 2010 13:09:17 +0000 (UTC) Received: by eyb7 with SMTP id 7so2562932eyb.13 for ; Sun, 14 Nov 2010 05:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=mMD4rOnT2lyCSFKPLB2RX1ezsSjaEZ62jahU2zL5lVc=; b=UBpDwYeuIlCAZ0W4AfNCcefPC+QvvZczYwCOi9NnLFsKtOPm7kpzitBqvG3WUk7aPx x5eiJSIY37UglLf4yV0RoPKKevPVdkAp3Ehbc4WO65FCUGbjQ4Ow38CKfY+tisOzIWoK G25h3758hC7iINHGUe0r19C7K9Q1BCtx3I7o4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=wBVhnmpiRS5ZRI9orJsf4iXcnimt0uhIcVI1mBQtmXQASaBPzqn+TnBdYsDJ5/jVhk XzRN/x+KETQDBEPvH7T1zZpIbxW9QgYCL970xa8GkjuQB/xTauWgcfpI7Mz4gWeqvuG3 RNzTCpbWxO7COCmLsMvP6Rx6AUzOV7ACT2kwM= Received: by 10.213.13.15 with SMTP id z15mr2312135ebz.30.1289740156563; Sun, 14 Nov 2010 05:09:16 -0800 (PST) Received: from zlobook.local (zlonet.ru [94.78.205.21]) by mx.google.com with ESMTPS id v51sm5463551eeh.22.2010.11.14.05.09.11 (version=SSLv3 cipher=RC4-MD5); Sun, 14 Nov 2010 05:09:14 -0800 (PST) Message-ID: <4CDFDF76.3080102@googlemail.com> Date: Sun, 14 Nov 2010 20:09:10 +0700 From: Veniamin Gvozdikov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; ru; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Hans Petter Selasky , jkim@FreeBSD.org, freebsd-current@freebsd.org, freebsd-hackers@freebsd.org References: <4CDD7922.1060105@googlemail.com> <201011122131.57554.hselasky@c2i.net> <4CDE8738.1040406@googlemail.com> <201011131345.43364.hselasky@c2i.net> In-Reply-To: <201011131345.43364.hselasky@c2i.net> Content-Type: multipart/mixed; boundary="------------040602000703070109000602" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: MacBookPro7,1 and FreeBSD 8.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 13:09:19 -0000 This is a multi-part message in MIME format. --------------040602000703070109000602 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi. I think that I can broke my laptop %) I same found information about MacBook in the files: sys/dev/asmc/asmc.c sys/dev/asmc/asmcvar.h sys/dev/usb/input/atp.c I attached acpi dumps from this is how to http://www.projectosx.com/forum/index.php?showtopic=359 > On Saturday 13 November 2010 13:40:24 Veniamin Gvozdikov wrote: >> Hello. >> I fund a few lines about the macbook but I have issue. >> >> if (strncmp(sysenv, "MacBook5,1", 10) == 0 || >> strncmp(sysenv, "MacBookPro5,5", 13) == 0 || >> strncmp(sysenv, "Macmini3,1", 10) == 0) >> strncmp(sysenv, "Macmini3,1", 10) == 0 || >> strncmp(sysenv, "iMac9,1", 7) == 0) >> >> I see for macbookpro5,5 value 13, where is can I found value for 7,1? > 13 is the length of the string exluding the terminating zero. > > --HPS > >> thank you! >> >>> This might be because your model is not listed in a quirk-table: >>> >>> grep -ri macbook /usr/src/sys/amd64 >>> >>> /usr/src/sys/amd64/amd64/machdep.c >>> >>> --HPS --------------040602000703070109000602--