From owner-freebsd-usb@FreeBSD.ORG Sun Apr 25 07:53:54 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D5AD106564A; Sun, 25 Apr 2010 07:53:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id AB2928FC1A; Sun, 25 Apr 2010 07:53:53 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=U_MU_I5IuZAA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=dgXh8oVzwpvudbOIPKQA:9 a=5HSeDVOzjbAQta0HXQbpAeYPM3kA:4 a=wPNLvfGTeEIA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1383367463; Sun, 25 Apr 2010 09:53:51 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 25 Apr 2010 09:51:19 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201004250951.19561.hselasky@c2i.net> Cc: rpaulo@freebsd.org, Peter =?iso-8859-1?q?Ankerst=E5l?= Subject: Re: Keyboard problem with new MacBook Pro. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2010 07:53:54 -0000 On Sunday 25 April 2010 09:30:12 Peter Ankerst=E5l wrote: > Hi, >=20 > I have the newly released macbook pro 13" (7,1). (swedish keyboard) And it > seems that I have some problem with the USB-keyboard driver. The keyboard > seems to work more or less in the boot meny, I can type and so on. But > when the system is booted the keyboard dosent work. It seems like ctrl is > constantly pressed or something like that. Nothing that I've done gives = me > normal characters on screen. Its the FreeBSD 7.3 amd64 version i have > installed btw. (8.0 or 9.0 freeezes during boot due to some acpi-problem > http://wiki.freebsd.org/AppleMacbook#head-083ebc072fcd20e07a74a11565fc41= af > b2ca099b) >=20 > I have got the keyboard to partially work when using the fixit cd. If I > choose US UNIX keymap first and then switch to some other keymap, say US > ISO och Swedish ISO it works to type but shift, ctrl and so on doesnt > work. Hi, In 8-stable and 9-current, we have made several patches in the USB keyboard= =20 area for Apple Keyboards, like supporting the eject key, swapping keys, etc. Regaring the boot issue with Mac, I think it can be solved by adding a quir= k=20 in the kernel: amd64/machdep.c: if (strncmp(sysenv, "MacBook1,1", 10) =3D= =3D 0 || amd64/machdep.c: strncmp(sysenv, "MacBook3,1", 10) =3D= =3D 0 || amd64/machdep.c: strncmp(sysenv, "MacBookPro1,1", 13) = =3D=3D 0=20 || amd64/machdep.c: strncmp(sysenv, "MacBookPro1,2", 13) = =3D=3D 0=20 || amd64/machdep.c: strncmp(sysenv, "MacBookPro3,1", 13) = =3D=3D 0=20 || amd64/pmap.c: if (strncmp(sysenv, "MacBook5,1", 10) =3D= =3D 0 || amd64/pmap.c: strncmp(sysenv, "MacBookPro5,5", 13) = =3D=3D 0=20 || Similar for i386. Could you print out your sysenv during boot and try adding your MacBook to = the=20 quirk list? =2D-HPS