From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 02:13:11 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 9CA8D106564A for ; Sun, 14 Mar 2010 02:13:11 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (unknown [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 76A8D8FC13 for ; Sun, 14 Mar 2010 02:13:11 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o2E2D7Ka024316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 13 Mar 2010 18:13:07 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o2E2D7tq024315; Sat, 13 Mar 2010 18:13:07 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA07874; Sat, 13 Mar 10 18:01:01 PST Date: Sat, 13 Mar 2010 18:06:01 -0800 From: perryh@pluto.rain.com To: torfinn.ingolfsen@broadpark.no Message-Id: <4b9c4489./UfK+ON+Pg58oJ8B%perryh@pluto.rain.com> References: <20100313180706.0aeaab9f.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20100313180706.0aeaab9f.torfinn.ingolfsen@broadpark.no> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: usb to ps/2 adapter works in one machine, but not another? 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, 14 Mar 2010 02:13:11 -0000 Torfinn Ingolfsen wrote: > Many new machines / motherboards today comes with only one > ps/2 port. Well, the kvm switches I use still has ps/2 ports. > Therefore I use adapters that plug into a usb port and gives > me two ps/2 ports ... I generally only use one port on these > - for a mouse. There may be a simpler solution. The systems I've seen with only one ps/2 jack had both the keyboard and the mouse signals wired to the single jack. (Quick test: if it is wired this way it will work with either a keyboard or a mouse.) If that's how yours is set up you can get a Y adapter with one ps/2 plug and two ps/2 jacks, and not need to deal with USB keyboard or mouse support at all. From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 10:26:20 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 BA581106564A; Sun, 14 Mar 2010 10:26:20 +0000 (UTC) (envelope-from steven@uplinklabs.net) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id 79EC58FC17; Sun, 14 Mar 2010 10:26:19 +0000 (UTC) Received: by iwn15 with SMTP id 15so2510770iwn.7 for ; Sun, 14 Mar 2010 03:26:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.150.142 with SMTP id y14mr146482ibv.32.1268562379233; Sun, 14 Mar 2010 03:26:19 -0700 (PDT) In-Reply-To: References: <201003020759.o227xItm073609@www.freebsd.org> <201003030946.41209.hselasky@c2i.net> <4b8f54d0.wm8q7hQf7ps9EVCI%perryh@pluto.rain.com> Date: Sun, 14 Mar 2010 03:26:19 -0700 Message-ID: From: Steven Noonan To: perryh@pluto.rain.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 10:26:20 -0000 On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan wrot= e: > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan wr= ote: >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 wrote: >>> Steven Noonan wrote: >>>> Interestingly, my tilde key doesn't work either (though the key >>>> press is detected, no character shows when the key is pressed). >>> >>> Any chance it is configured as a "dead" key? =C2=A0If you press >>> tilde followed by n do you get an n with a tilde over it? >>> >> >> Nope. It simply does nothing in the console. >> >> But in X11, it does something very odd. Shift+Tilde Key gives me '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I don't >> even know what action. It's grabbing some arbitrary command in my >> .bash_history. It gave me the first item in my .bash_history the first >> time I tried it. Then I tried an arbitrary command ("echo"), and then >> Alt+Tilde gave me the second command in my .bash_history. Whaa? >> Any more ideas/news on this from anyone? The tilde key thing is especially irritating. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 10:30:05 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3CD0106564A for ; Sun, 14 Mar 2010 10:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 877908FC0A for ; Sun, 14 Mar 2010 10:30:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EAU44K018340 for ; Sun, 14 Mar 2010 10:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EAU40v018339; Sun, 14 Mar 2010 10:30:04 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 10:30:04 GMT Message-Id: <201003141030.o2EAU40v018339@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Steven Noonan Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steven Noonan List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 10:30:05 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Steven Noonan To: perryh@pluto.rain.com Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 03:26:19 -0700 On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan wrot= e: > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan wr= ote: >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 wrote: >>> Steven Noonan wrote: >>>> Interestingly, my tilde key doesn't work either (though the key >>>> press is detected, no character shows when the key is pressed). >>> >>> Any chance it is configured as a "dead" key? =C2=A0If you press >>> tilde followed by n do you get an n with a tilde over it? >>> >> >> Nope. It simply does nothing in the console. >> >> But in X11, it does something very odd. Shift+Tilde Key gives me '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I don't >> even know what action. It's grabbing some arbitrary command in my >> .bash_history. It gave me the first item in my .bash_history the first >> time I tried it. Then I tried an arbitrary command ("echo"), and then >> Alt+Tilde gave me the second command in my .bash_history. Whaa? >> Any more ideas/news on this from anyone? The tilde key thing is especially irritating. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 11:02:45 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 6646D1065674 for ; Sun, 14 Mar 2010 11:02:45 +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 BADDD8FC0A for ; Sun, 14 Mar 2010 11:02:44 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8-LOXV1aLNAA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=r_kkXxauAAAA:8 a=GKysJfYJAAAA:8 a=6I5d2MoRAAAA:8 a=VjUmsndnmNGmk0tlHgEA:9 a=D6pncs1WcnxMn9ijEEAA:7 a=yIg69xxylec0-bjdqdazGmc0v8cA:4 a=PUjeQqilurYA:10 a=1C6itdonJusA:10 a=SV7veod9ZcQA: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 1372145395; Sun, 14 Mar 2010 12:02:42 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Steven Noonan Date: Sun, 14 Mar 2010 12:01:03 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201003141030.o2EAU40v018339@freefall.freebsd.org> In-Reply-To: <201003141030.o2EAU40v018339@freefall.freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003141201.03617.hselasky@c2i.net> Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 11:02:45 -0000 On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > The following reply was made to PR usb/144414; it has been noted by GNATS. > > From: Steven Noonan > To: perryh@pluto.rain.com > Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > Date: Sun, 14 Mar 2010 03:26:19 -0700 > > On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > wrot= > > e: > > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > > wr= > > ote: > >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 wrote: > >>> Steven Noonan wrote: > >>>> Interestingly, my tilde key doesn't work either (though the key > >>>> press is detected, no character shows when the key is pressed). > >>> > >>> Any chance it is configured as a "dead" key? =C2=A0If you press > >>> tilde followed by n do you get an n with a tilde over it? > >> > >> Nope. It simply does nothing in the console. > >> > >> But in X11, it does something very odd. Shift+Tilde Key gives me '>', > >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I don't > >> even know what action. It's grabbing some arbitrary command in my > >> .bash_history. It gave me the first item in my .bash_history the first > >> time I tried it. Then I tried an arbitrary command ("echo"), and then > >> Alt+Tilde gave me the second command in my .bash_history. Whaa? > > Any more ideas/news on this from anyone? > > The tilde key thing is especially irritating. > static uint8_t ukbd_apple_swap(uint8_t keycode) { switch (keycode) { case 0x35: return 0x64; case 0x64: return 0x35; default: return keycode; } } Can you try to change the function above in ukbd.c to only return keycode? Any difference? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 13:22:34 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 57AAF106566B for ; Sun, 14 Mar 2010 13:22:34 +0000 (UTC) (envelope-from steven@uplinklabs.net) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id 2DAC08FC1A for ; Sun, 14 Mar 2010 13:22:33 +0000 (UTC) Received: by iwn15 with SMTP id 15so2569475iwn.7 for ; Sun, 14 Mar 2010 06:22:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.169.145 with SMTP id z17mr903415iby.83.1268572953237; Sun, 14 Mar 2010 06:22:33 -0700 (PDT) In-Reply-To: <201003141201.03617.hselasky@c2i.net> References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141201.03617.hselasky@c2i.net> Date: Sun, 14 Mar 2010 05:22:33 -0800 Message-ID: From: Steven Noonan To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 13:22:34 -0000 On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky wro= te: > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> The following reply was made to PR usb/144414; it has been noted by GNAT= S. >> >> From: Steven Noonan >> To: perryh@pluto.rain.com >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> =C2=A0wrot=3D >> >> =C2=A0e: >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> =C2=A0> wr=3D >> >> =C2=A0ote: >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, =3DC2=3DA0 wrote: >> =C2=A0>>> Steven Noonan wrote: >> =C2=A0>>>> Interestingly, my tilde key doesn't work either (though the k= ey >> =C2=A0>>>> press is detected, no character shows when the key is pressed= ). >> =C2=A0>>> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2=3DA0If you = press >> =C2=A0>>> tilde followed by n do you get an n with a tilde over it? >> =C2=A0>> >> =C2=A0>> Nope. It simply does nothing in the console. >> =C2=A0>> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde Key gives m= e '>', >> =C2=A0>> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I d= on't >> =C2=A0>> even know what action. It's grabbing some arbitrary command in = my >> =C2=A0>> .bash_history. It gave me the first item in my .bash_history th= e first >> =C2=A0>> time I tried it. Then I tried an arbitrary command ("echo"), an= d then >> =C2=A0>> Alt+Tilde gave me the second command in my .bash_history. Whaa? >> >> =C2=A0Any more ideas/news on this from anyone? >> >> =C2=A0The tilde key thing is especially irritating. >> > > static uint8_t > ukbd_apple_swap(uint8_t keycode) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; > =C2=A0 =C2=A0 =C2=A0 =C2=A0} > } > > Can you try to change the function above in ukbd.c to only return keycode= ? Any > difference? > Yep, commenting the two case lines brought my tilde key back. Any idea what the ukbd_apple_swap() function was _supposed_ to be doing? Also, there's only one thing left (input-wise) that I can't get to work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain that it's not a problem with Fn+Backspace failing to map to Delete, because my non-Mac i386 box has the same problem. Everything I read online keeps saying to muck with an .inputrc file (for bash, anyway), but I haven't been able to get it to work. Places I've looked have said to add this to .inputrc: "\e[3~": delete-char But this seems to have no effect (and I tried bind -f .inputrc in case my INPUTRC environment variable wasn't working). Is there something FreeBSD-specific I'm not seeing, or what? - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 13:50:11 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 B75CE106564A; Sun, 14 Mar 2010 13:50:11 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id E4F698FC1C; Sun, 14 Mar 2010 13:50:10 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8-LOXV1aLNAA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=r_kkXxauAAAA:8 a=GKysJfYJAAAA:8 a=6I5d2MoRAAAA:8 a=lyAB-HlcYtyAwPnugqEA:9 a=PaUFbMKjcgS-kQlhxmsA:7 a=ObZ4BidRfmNABDWIdyW2Sd3dXFIA:4 a=QEXdDO2ut3YA:10 a=9aOQ2cSd83gA:10 a=1C6itdonJusA:10 a=SV7veod9ZcQA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1347746769; Sun, 14 Mar 2010 14:50:08 +0100 From: Hans Petter Selasky To: Steven Noonan Date: Sun, 14 Mar 2010 14:48:30 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141201.03617.hselasky@c2i.net> 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003141448.30747.hselasky@c2i.net> Cc: Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 13:50:11 -0000 On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> The following reply was made to PR usb/144414; it has been noted by > >> GNATS. > >> > >> From: Steven Noonan > >> To: perryh@pluto.rain.com > >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> > >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> wrot= > >> > >> e: > >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> > wr= > >> > >> ote: > >> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> wrote: >>> Steven Noonan wrote: > >> >>>> Interestingly, my tilde key doesn't work either (though the key > >> >>>> press is detected, no character shows when the key is pressed). > >> >>> > >> >>> Any chance it is configured as a "dead" key? =C2=A0If you press > >> >>> tilde followed by n do you get an n with a tilde over it? > >> >> > >> >> Nope. It simply does nothing in the console. > >> >> > >> >> But in X11, it does something very odd. Shift+Tilde Key gives me > >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I > >> don't >> even know what action. It's grabbing some arbitrary command in > >> my >> .bash_history. It gave me the first item in my .bash_history the > >> first >> time I tried it. Then I tried an arbitrary command ("echo"), > >> and then >> Alt+Tilde gave me the second command in my .bash_history. > >> Whaa? > >> > >> Any more ideas/news on this from anyone? > >> > >> The tilde key thing is especially irritating. > > > > static uint8_t > > ukbd_apple_swap(uint8_t keycode) { > > switch (keycode) { > > case 0x35: return 0x64; > > case 0x64: return 0x35; > > default: return keycode; > > } > > } > > > > Can you try to change the function above in ukbd.c to only return > > keycode? Any difference? > > Yep, commenting the two case lines brought my tilde key back. Any idea > what the ukbd_apple_swap() function was _supposed_ to be doing? > > Also, there's only one thing left (input-wise) that I can't get to > work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > that it's not a problem with Fn+Backspace failing to map to Delete, > because my non-Mac i386 box has the same problem. > > Everything I read online keeps saying to muck with an .inputrc file > (for bash, anyway), but I haven't been able to get it to work. Places > I've looked have said to add this to .inputrc: > > "\e[3~": delete-char > > But this seems to have no effect (and I tried bind -f .inputrc in case > my INPUTRC environment variable wasn't working). Is there something > FreeBSD-specific I'm not seeing, or what? > > - Steven > Hi Steven, Can you talk this over with Christoph and send me a patch when you agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I suggest the following patch: ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - src/sys/dev/usb/input/ukbd.c ==== @@ -896,8 +896,7 @@ hid_input, 0, &sc->sc_loc_apple_fn, &flags, &temp_id)) { if (flags & HIO_VARIABLE) - sc->sc_flags |= UKBD_FLAG_APPLE_FN | - UKBD_FLAG_APPLE_SWAP; + sc->sc_flags |= UKBD_FLAG_APPLE_FN; DPRINTFN(1, "Found Apple FN-key\n"); apple_keys = 1; sc->sc_kbd_id = temp_id; The hardware that Christoph was using had an Eject-key, while yours didn't. I think the patch above will make both cases work. Christoph, do you have any comments? http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/sys/dev/usb/input/ukbd.c&REV=47 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:00:19 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1866A106566B for ; Sun, 14 Mar 2010 14:00:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E25B28FC1F for ; Sun, 14 Mar 2010 14:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EE0Iwu002864 for ; Sun, 14 Mar 2010 14:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EE0IX9002863; Sun, 14 Mar 2010 14:00:18 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 14:00:18 GMT Message-Id: <201003141400.o2EE0IX9002863@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 14:00:19 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Hans Petter Selasky To: Steven Noonan Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org, Christoph Langguth Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 14:48:30 +0100 On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> The following reply was made to PR usb/144414; it has been noted by > >> GNATS. > >> > >> From: Steven Noonan > >> To: perryh@pluto.rain.com > >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> > >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> wrot= > >> > >> e: > >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> > wr= > >> > >> ote: > >> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> wrote: >>> Steven Noonan wrote: > >> >>>> Interestingly, my tilde key doesn't work either (though the key > >> >>>> press is detected, no character shows when the key is pressed). > >> >>> > >> >>> Any chance it is configured as a "dead" key? =C2=A0If you press > >> >>> tilde followed by n do you get an n with a tilde over it? > >> >> > >> >> Nope. It simply does nothing in the console. > >> >> > >> >> But in X11, it does something very odd. Shift+Tilde Key gives me > >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I > >> don't >> even know what action. It's grabbing some arbitrary command in > >> my >> .bash_history. It gave me the first item in my .bash_history the > >> first >> time I tried it. Then I tried an arbitrary command ("echo"), > >> and then >> Alt+Tilde gave me the second command in my .bash_history. > >> Whaa? > >> > >> Any more ideas/news on this from anyone? > >> > >> The tilde key thing is especially irritating. > > > > static uint8_t > > ukbd_apple_swap(uint8_t keycode) { > > switch (keycode) { > > case 0x35: return 0x64; > > case 0x64: return 0x35; > > default: return keycode; > > } > > } > > > > Can you try to change the function above in ukbd.c to only return > > keycode? Any difference? > > Yep, commenting the two case lines brought my tilde key back. Any idea > what the ukbd_apple_swap() function was _supposed_ to be doing? > > Also, there's only one thing left (input-wise) that I can't get to > work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > that it's not a problem with Fn+Backspace failing to map to Delete, > because my non-Mac i386 box has the same problem. > > Everything I read online keeps saying to muck with an .inputrc file > (for bash, anyway), but I haven't been able to get it to work. Places > I've looked have said to add this to .inputrc: > > "\e[3~": delete-char > > But this seems to have no effect (and I tried bind -f .inputrc in case > my INPUTRC environment variable wasn't working). Is there something > FreeBSD-specific I'm not seeing, or what? > > - Steven > Hi Steven, Can you talk this over with Christoph and send me a patch when you agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I suggest the following patch: ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - src/sys/dev/usb/input/ukbd.c ==== @@ -896,8 +896,7 @@ hid_input, 0, &sc->sc_loc_apple_fn, &flags, &temp_id)) { if (flags & HIO_VARIABLE) - sc->sc_flags |= UKBD_FLAG_APPLE_FN | - UKBD_FLAG_APPLE_SWAP; + sc->sc_flags |= UKBD_FLAG_APPLE_FN; DPRINTFN(1, "Found Apple FN-key\n"); apple_keys = 1; sc->sc_kbd_id = temp_id; The hardware that Christoph was using had an Eject-key, while yours didn't. I think the patch above will make both cases work. Christoph, do you have any comments? http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/sys/dev/usb/input/ukbd.c&REV=47 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:01:40 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 752D2106564A; Sun, 14 Mar 2010 14:01:40 +0000 (UTC) (envelope-from steven@uplinklabs.net) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id 3AFA18FC0A; Sun, 14 Mar 2010 14:01:39 +0000 (UTC) Received: by iwn15 with SMTP id 15so2586024iwn.7 for ; Sun, 14 Mar 2010 07:01:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.174.19 with SMTP id r19mr124687ibz.15.1268575299417; Sun, 14 Mar 2010 07:01:39 -0700 (PDT) In-Reply-To: <201003141448.30747.hselasky@c2i.net> References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141201.03617.hselasky@c2i.net> <201003141448.30747.hselasky@c2i.net> Date: Sun, 14 Mar 2010 06:01:39 -0800 Message-ID: From: Steven Noonan To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 14:01:40 -0000 On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky wro= te: > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > wrote: >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> The following reply was made to PR usb/144414; it has been noted by >> >> GNATS. >> >> >> >> From: Steven Noonan >> >> To: perryh@pluto.rain.com >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> =C2=A0wrot=3D >> >> >> >> =C2=A0e: >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> > wr=3D >> >> >> >> =C2=A0ote: >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, =3DC2=3DA0 >> >> wrote: >>> Steven Noonan wrote: >> >> =C2=A0>>>> Interestingly, my tilde key doesn't work either (though th= e key >> >> =C2=A0>>>> press is detected, no character shows when the key is pres= sed). >> >> =C2=A0>>> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2=3DA0If y= ou press >> >> =C2=A0>>> tilde followed by n do you get an n with a tilde over it? >> >> =C2=A0>> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> =C2=A0>> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde Key give= s me >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I >> >> don't >> even know what action. It's grabbing some arbitrary command = in >> >> my >> .bash_history. It gave me the first item in my .bash_history th= e >> >> first >> time I tried it. Then I tried an arbitrary command ("echo"), >> >> and then >> Alt+Tilde gave me the second command in my .bash_history. >> >> Whaa? >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> > >> > static uint8_t >> > ukbd_apple_swap(uint8_t keycode) { >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> > } >> > >> > Can you try to change the function above in ukbd.c to only return >> > keycode? Any difference? >> >> Yep, commenting the two case lines brought my tilde key back. Any idea >> what the ukbd_apple_swap() function was _supposed_ to be doing? >> >> Also, there's only one thing left (input-wise) that I can't get to >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain >> that it's not a problem with Fn+Backspace failing to map to Delete, >> because my non-Mac i386 box has the same problem. >> >> Everything I read online keeps saying to muck with an .inputrc file >> (for bash, anyway), but I haven't been able to get it to work. Places >> I've looked have said to add this to .inputrc: >> >> "\e[3~": delete-char >> >> But this seems to have no effect (and I tried bind -f .inputrc in case >> my INPUTRC environment variable wasn't working). Is there something >> FreeBSD-specific I'm not seeing, or what? >> >> - Steven >> > > Hi Steven, > > Can you talk this over with Christoph and send me a patch when you agreed= ? > He's the one that made the Apple-SWAP key patch. Meanwhile I suggest the > following patch: > > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D > @@ -896,8 +896,7 @@ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0hid_= input, 0, &sc->sc_loc_apple_fn, &flags, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&tem= p_id)) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0if (flags & HIO_VARIABLE) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN | > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE_SWAP; > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0apple_keys =3D 1; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0sc->sc_kbd_id =3D temp_id; > > > The hardware that Christoph was using had an Eject-key, while yours didn'= t. I > think the patch above will make both cases work. > > Christoph, do you have any comments? > > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/usb/src/sy= s/dev/usb/input/ukbd.c&REV=3D47 > Not quite true, my keyboard _does_ have an Eject key. The code doesn't detect it though. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:10:05 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18DFB106564A for ; Sun, 14 Mar 2010 14:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E23768FC1A for ; Sun, 14 Mar 2010 14:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EEA4Mv010990 for ; Sun, 14 Mar 2010 14:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EEA43r010989; Sun, 14 Mar 2010 14:10:04 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 14:10:04 GMT Message-Id: <201003141410.o2EEA43r010989@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Steven Noonan Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steven Noonan List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 14:10:05 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Steven Noonan To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org, Christoph Langguth Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 06:01:39 -0800 On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky wro= te: > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > wrote: >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> The following reply was made to PR usb/144414; it has been noted by >> >> GNATS. >> >> >> >> From: Steven Noonan >> >> To: perryh@pluto.rain.com >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> =C2=A0wrot=3D >> >> >> >> =C2=A0e: >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> > wr=3D >> >> >> >> =C2=A0ote: >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, =3DC2=3DA0 >> >> wrote: >>> Steven Noonan wrote: >> >> =C2=A0>>>> Interestingly, my tilde key doesn't work either (though th= e key >> >> =C2=A0>>>> press is detected, no character shows when the key is pres= sed). >> >> =C2=A0>>> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2=3DA0If y= ou press >> >> =C2=A0>>> tilde followed by n do you get an n with a tilde over it? >> >> =C2=A0>> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> =C2=A0>> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde Key give= s me >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I >> >> don't >> even know what action. It's grabbing some arbitrary command = in >> >> my >> .bash_history. It gave me the first item in my .bash_history th= e >> >> first >> time I tried it. Then I tried an arbitrary command ("echo"), >> >> and then >> Alt+Tilde gave me the second command in my .bash_history. >> >> Whaa? >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> > >> > static uint8_t >> > ukbd_apple_swap(uint8_t keycode) { >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> > } >> > >> > Can you try to change the function above in ukbd.c to only return >> > keycode? Any difference? >> >> Yep, commenting the two case lines brought my tilde key back. Any idea >> what the ukbd_apple_swap() function was _supposed_ to be doing? >> >> Also, there's only one thing left (input-wise) that I can't get to >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain >> that it's not a problem with Fn+Backspace failing to map to Delete, >> because my non-Mac i386 box has the same problem. >> >> Everything I read online keeps saying to muck with an .inputrc file >> (for bash, anyway), but I haven't been able to get it to work. Places >> I've looked have said to add this to .inputrc: >> >> "\e[3~": delete-char >> >> But this seems to have no effect (and I tried bind -f .inputrc in case >> my INPUTRC environment variable wasn't working). Is there something >> FreeBSD-specific I'm not seeing, or what? >> >> - Steven >> > > Hi Steven, > > Can you talk this over with Christoph and send me a patch when you agreed= ? > He's the one that made the Apple-SWAP key patch. Meanwhile I suggest the > following patch: > > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D > @@ -896,8 +896,7 @@ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0hid_= input, 0, &sc->sc_loc_apple_fn, &flags, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&tem= p_id)) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0if (flags & HIO_VARIABLE) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN | > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE_SWAP; > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0apple_keys =3D 1; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0sc->sc_kbd_id =3D temp_id; > > > The hardware that Christoph was using had an Eject-key, while yours didn'= t. I > think the patch above will make both cases work. > > Christoph, do you have any comments? > > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/usb/src/sy= s/dev/usb/input/ukbd.c&REV=3D47 > Not quite true, my keyboard _does_ have an Eject key. The code doesn't detect it though. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:29:20 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 360C4106564A; Sun, 14 Mar 2010 14:29:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 595AF8FC14; Sun, 14 Mar 2010 14:29:16 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8-LOXV1aLNAA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=r_kkXxauAAAA:8 a=GKysJfYJAAAA:8 a=6I5d2MoRAAAA:8 a=RuP-5vQrMyf71-8f6NQA:9 a=91XB59Wcu1GVZbF_eGAA:7 a=dr5XtgWsd6xjpR-GnPsh4m_Y4r8A:4 a=QEXdDO2ut3YA:10 a=9aOQ2cSd83gA:10 a=1C6itdonJusA:10 a=SV7veod9ZcQA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1347751748; Sun, 14 Mar 2010 15:29:15 +0100 From: Hans Petter Selasky To: Steven Noonan Date: Sun, 14 Mar 2010 15:27:37 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141448.30747.hselasky@c2i.net> 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003141527.37644.hselasky@c2i.net> Cc: Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 14:29:20 -0000 On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > > > > wrote: > >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> The following reply was made to PR usb/144414; it has been noted by > >> >> GNATS. > >> >> > >> >> From: Steven Noonan > >> >> To: perryh@pluto.rain.com > >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> > >> >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> wrot= > >> >> > >> >> e: > >> >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> > wr= > >> >> > >> >> ote: > >> >> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> >> wrote: >>> Steven Noonan wrote: > >> >> >>>> Interestingly, my tilde key doesn't work either (though the key > >> >> >>>> press is detected, no character shows when the key is pressed). > >> >> >>> > >> >> >>> Any chance it is configured as a "dead" key? =C2=A0If you press > >> >> >>> tilde followed by n do you get an n with a tilde over it? > >> >> >> > >> >> >> Nope. It simply does nothing in the console. > >> >> >> > >> >> >> But in X11, it does something very odd. Shift+Tilde Key gives me > >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I > >> >> don't >> even know what action. It's grabbing some arbitrary command > >> >> in my >> .bash_history. It gave me the first item in my .bash_history > >> >> the first >> time I tried it. Then I tried an arbitrary command > >> >> ("echo"), and then >> Alt+Tilde gave me the second command in my > >> >> .bash_history. Whaa? > >> >> > >> >> Any more ideas/news on this from anyone? > >> >> > >> >> The tilde key thing is especially irritating. > >> > > >> > static uint8_t > >> > ukbd_apple_swap(uint8_t keycode) { > >> > switch (keycode) { > >> > case 0x35: return 0x64; > >> > case 0x64: return 0x35; > >> > default: return keycode; > >> > } > >> > } > >> > > >> > Can you try to change the function above in ukbd.c to only return > >> > keycode? Any difference? > >> > >> Yep, commenting the two case lines brought my tilde key back. Any idea > >> what the ukbd_apple_swap() function was _supposed_ to be doing? > >> > >> Also, there's only one thing left (input-wise) that I can't get to > >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > >> that it's not a problem with Fn+Backspace failing to map to Delete, > >> because my non-Mac i386 box has the same problem. > >> > >> Everything I read online keeps saying to muck with an .inputrc file > >> (for bash, anyway), but I haven't been able to get it to work. Places > >> I've looked have said to add this to .inputrc: > >> > >> "\e[3~": delete-char > >> > >> But this seems to have no effect (and I tried bind -f .inputrc in case > >> my INPUTRC environment variable wasn't working). Is there something > >> FreeBSD-specific I'm not seeing, or what? > >> > >> - Steven > > > > Hi Steven, > > > > Can you talk this over with Christoph and send me a patch when you > > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I > > suggest the following patch: > > > > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > > src/sys/dev/usb/input/ukbd.c ==== > > @@ -896,8 +896,7 @@ > > hid_input, 0, &sc->sc_loc_apple_fn, &flags, > > &temp_id)) { > > if (flags & HIO_VARIABLE) > > - sc->sc_flags |= UKBD_FLAG_APPLE_FN | > > - UKBD_FLAG_APPLE_SWAP; > > + sc->sc_flags |= UKBD_FLAG_APPLE_FN; > > DPRINTFN(1, "Found Apple FN-key\n"); > > apple_keys = 1; > > sc->sc_kbd_id = temp_id; > > > > > > The hardware that Christoph was using had an Eject-key, while yours > > didn't. I think the patch above will make both cases work. > > > > Christoph, do you have any comments? > > > > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/sys/ > >dev/usb/input/ukbd.c&REV=47 > > Not quite true, my keyboard _does_ have an Eject key. The code doesn't > detect it though. > > - Steven > Could you try to figure out what key-press number corresponds to the eject key? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:30:12 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFCEE1065674 for ; Sun, 14 Mar 2010 14:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5A0A8FC16 for ; Sun, 14 Mar 2010 14:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EEUCJh028680 for ; Sun, 14 Mar 2010 14:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EEUC69028675; Sun, 14 Mar 2010 14:30:12 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 14:30:12 GMT Message-Id: <201003141430.o2EEUC69028675@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 14:30:13 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Hans Petter Selasky To: Steven Noonan Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org, Christoph Langguth Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 15:27:37 +0100 On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > > > > wrote: > >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> The following reply was made to PR usb/144414; it has been noted by > >> >> GNATS. > >> >> > >> >> From: Steven Noonan > >> >> To: perryh@pluto.rain.com > >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> > >> >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> wrot= > >> >> > >> >> e: > >> >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> > wr= > >> >> > >> >> ote: > >> >> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> >> wrote: >>> Steven Noonan wrote: > >> >> >>>> Interestingly, my tilde key doesn't work either (though the key > >> >> >>>> press is detected, no character shows when the key is pressed). > >> >> >>> > >> >> >>> Any chance it is configured as a "dead" key? =C2=A0If you press > >> >> >>> tilde followed by n do you get an n with a tilde over it? > >> >> >> > >> >> >> Nope. It simply does nothing in the console. > >> >> >> > >> >> >> But in X11, it does something very odd. Shift+Tilde Key gives me > >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I > >> >> don't >> even know what action. It's grabbing some arbitrary command > >> >> in my >> .bash_history. It gave me the first item in my .bash_history > >> >> the first >> time I tried it. Then I tried an arbitrary command > >> >> ("echo"), and then >> Alt+Tilde gave me the second command in my > >> >> .bash_history. Whaa? > >> >> > >> >> Any more ideas/news on this from anyone? > >> >> > >> >> The tilde key thing is especially irritating. > >> > > >> > static uint8_t > >> > ukbd_apple_swap(uint8_t keycode) { > >> > switch (keycode) { > >> > case 0x35: return 0x64; > >> > case 0x64: return 0x35; > >> > default: return keycode; > >> > } > >> > } > >> > > >> > Can you try to change the function above in ukbd.c to only return > >> > keycode? Any difference? > >> > >> Yep, commenting the two case lines brought my tilde key back. Any idea > >> what the ukbd_apple_swap() function was _supposed_ to be doing? > >> > >> Also, there's only one thing left (input-wise) that I can't get to > >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > >> that it's not a problem with Fn+Backspace failing to map to Delete, > >> because my non-Mac i386 box has the same problem. > >> > >> Everything I read online keeps saying to muck with an .inputrc file > >> (for bash, anyway), but I haven't been able to get it to work. Places > >> I've looked have said to add this to .inputrc: > >> > >> "\e[3~": delete-char > >> > >> But this seems to have no effect (and I tried bind -f .inputrc in case > >> my INPUTRC environment variable wasn't working). Is there something > >> FreeBSD-specific I'm not seeing, or what? > >> > >> - Steven > > > > Hi Steven, > > > > Can you talk this over with Christoph and send me a patch when you > > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I > > suggest the following patch: > > > > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > > src/sys/dev/usb/input/ukbd.c ==== > > @@ -896,8 +896,7 @@ > > hid_input, 0, &sc->sc_loc_apple_fn, &flags, > > &temp_id)) { > > if (flags & HIO_VARIABLE) > > - sc->sc_flags |= UKBD_FLAG_APPLE_FN | > > - UKBD_FLAG_APPLE_SWAP; > > + sc->sc_flags |= UKBD_FLAG_APPLE_FN; > > DPRINTFN(1, "Found Apple FN-key\n"); > > apple_keys = 1; > > sc->sc_kbd_id = temp_id; > > > > > > The hardware that Christoph was using had an Eject-key, while yours > > didn't. I think the patch above will make both cases work. > > > > Christoph, do you have any comments? > > > > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/sys/ > >dev/usb/input/ukbd.c&REV=47 > > Not quite true, my keyboard _does_ have an Eject key. The code doesn't > detect it though. > > - Steven > Could you try to figure out what key-press number corresponds to the eject key? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:37:05 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 6CBEF106566C; Sun, 14 Mar 2010 14:37:05 +0000 (UTC) (envelope-from steven@uplinklabs.net) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id 3201B8FC18; Sun, 14 Mar 2010 14:37:04 +0000 (UTC) Received: by iwn15 with SMTP id 15so2601292iwn.7 for ; Sun, 14 Mar 2010 07:37:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.159.198 with SMTP id k6mr152105ibx.92.1268577424298; Sun, 14 Mar 2010 07:37:04 -0700 (PDT) In-Reply-To: <201003141527.37644.hselasky@c2i.net> References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141448.30747.hselasky@c2i.net> <201003141527.37644.hselasky@c2i.net> Date: Sun, 14 Mar 2010 06:37:04 -0800 Message-ID: From: Steven Noonan To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 14:37:05 -0000 On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wro= te: > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > wrote: >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky >> > >> > wrote: >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> >> The following reply was made to PR usb/144414; it has been noted b= y >> >> >> GNATS. >> >> >> >> >> >> From: Steven Noonan >> >> >> To: perryh@pluto.rain.com >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> >> wrot=3D >> >> >> >> >> >> =C2=A0e: >> >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> >> > wr=3D >> >> >> >> >> >> =C2=A0ote: >> >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, =3DC2=3DA0 >> >> >> wrote: >>> Steven Noonan wrote: >> >> >> =C2=A0>>>> Interestingly, my tilde key doesn't work either (though= the key >> >> >> =C2=A0>>>> press is detected, no character shows when the key is p= ressed). >> >> >> =C2=A0>>> >> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2=3DA0I= f you press >> >> >> =C2=A0>>> tilde followed by n do you get an n with a tilde over it= ? >> >> >> =C2=A0>> >> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> >> =C2=A0>> >> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde Key g= ives me >> >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What= ? I >> >> >> don't >> even know what action. It's grabbing some arbitrary comma= nd >> >> >> in my >> .bash_history. It gave me the first item in my .bash_hist= ory >> >> >> the first >> time I tried it. Then I tried an arbitrary command >> >> >> ("echo"), and then >> Alt+Tilde gave me the second command in my >> >> >> .bash_history. Whaa? >> >> >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> >> > >> >> > static uint8_t >> >> > ukbd_apple_swap(uint8_t keycode) { >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> >> > } >> >> > >> >> > Can you try to change the function above in ukbd.c to only return >> >> > keycode? Any difference? >> >> >> >> Yep, commenting the two case lines brought my tilde key back. Any ide= a >> >> what the ukbd_apple_swap() function was _supposed_ to be doing? >> >> >> >> Also, there's only one thing left (input-wise) that I can't get to >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain >> >> that it's not a problem with Fn+Backspace failing to map to Delete, >> >> because my non-Mac i386 box has the same problem. >> >> >> >> Everything I read online keeps saying to muck with an .inputrc file >> >> (for bash, anyway), but I haven't been able to get it to work. Places >> >> I've looked have said to add this to .inputrc: >> >> >> >> "\e[3~": delete-char >> >> >> >> But this seems to have no effect (and I tried bind -f .inputrc in cas= e >> >> my INPUTRC environment variable wasn't working). Is there something >> >> FreeBSD-specific I'm not seeing, or what? >> >> >> >> - Steven >> > >> > Hi Steven, >> > >> > Can you talk this over with Christoph and send me a patch when you >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I >> > suggest the following patch: >> > >> > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - >> > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D >> > @@ -896,8 +896,7 @@ >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0h= id_input, 0, &sc->sc_loc_apple_fn, &flags, >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&= temp_id)) { >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0if (flags & HIO_VARIABLE) >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN= | >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE_SWAP; >> > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN= ; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0apple_keys =3D 1; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0sc->sc_kbd_id =3D temp_id; >> > >> > >> > The hardware that Christoph was using had an Eject-key, while yours >> > didn't. I think the patch above will make both cases work. >> > >> > Christoph, do you have any comments? >> > >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/usb/src= /sys/ >> >dev/usb/input/ukbd.c&REV=3D47 >> >> Not quite true, my keyboard _does_ have an Eject key. The code doesn't >> detect it though. >> >> - Steven >> > > Could you try to figure out what key-press number corresponds to the ejec= t > key? > > --HPS > I'm not certain how to do so. It's somewhat of a chicken-and-the-egg problem: unless it detects that the key is there, I can't find it. Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is pressed. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:40:03 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDF81106566B for ; Sun, 14 Mar 2010 14:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B3D608FC21 for ; Sun, 14 Mar 2010 14:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EEe3bj037591 for ; Sun, 14 Mar 2010 14:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EEe3wa037581; Sun, 14 Mar 2010 14:40:03 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 14:40:03 GMT Message-Id: <201003141440.o2EEe3wa037581@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Steven Noonan Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steven Noonan List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 14:40:03 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Steven Noonan To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org, Christoph Langguth Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 06:37:04 -0800 On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wro= te: > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > wrote: >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky >> > >> > wrote: >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> >> The following reply was made to PR usb/144414; it has been noted b= y >> >> >> GNATS. >> >> >> >> >> >> From: Steven Noonan >> >> >> To: perryh@pluto.rain.com >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> >> wrot=3D >> >> >> >> >> >> =C2=A0e: >> >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> >> > wr=3D >> >> >> >> >> >> =C2=A0ote: >> >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, =3DC2=3DA0 >> >> >> wrote: >>> Steven Noonan wrote: >> >> >> =C2=A0>>>> Interestingly, my tilde key doesn't work either (though= the key >> >> >> =C2=A0>>>> press is detected, no character shows when the key is p= ressed). >> >> >> =C2=A0>>> >> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2=3DA0I= f you press >> >> >> =C2=A0>>> tilde followed by n do you get an n with a tilde over it= ? >> >> >> =C2=A0>> >> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> >> =C2=A0>> >> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde Key g= ives me >> >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What= ? I >> >> >> don't >> even know what action. It's grabbing some arbitrary comma= nd >> >> >> in my >> .bash_history. It gave me the first item in my .bash_hist= ory >> >> >> the first >> time I tried it. Then I tried an arbitrary command >> >> >> ("echo"), and then >> Alt+Tilde gave me the second command in my >> >> >> .bash_history. Whaa? >> >> >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> >> > >> >> > static uint8_t >> >> > ukbd_apple_swap(uint8_t keycode) { >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> >> > } >> >> > >> >> > Can you try to change the function above in ukbd.c to only return >> >> > keycode? Any difference? >> >> >> >> Yep, commenting the two case lines brought my tilde key back. Any ide= a >> >> what the ukbd_apple_swap() function was _supposed_ to be doing? >> >> >> >> Also, there's only one thing left (input-wise) that I can't get to >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain >> >> that it's not a problem with Fn+Backspace failing to map to Delete, >> >> because my non-Mac i386 box has the same problem. >> >> >> >> Everything I read online keeps saying to muck with an .inputrc file >> >> (for bash, anyway), but I haven't been able to get it to work. Places >> >> I've looked have said to add this to .inputrc: >> >> >> >> "\e[3~": delete-char >> >> >> >> But this seems to have no effect (and I tried bind -f .inputrc in cas= e >> >> my INPUTRC environment variable wasn't working). Is there something >> >> FreeBSD-specific I'm not seeing, or what? >> >> >> >> - Steven >> > >> > Hi Steven, >> > >> > Can you talk this over with Christoph and send me a patch when you >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I >> > suggest the following patch: >> > >> > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - >> > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D >> > @@ -896,8 +896,7 @@ >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0h= id_input, 0, &sc->sc_loc_apple_fn, &flags, >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&= temp_id)) { >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0if (flags & HIO_VARIABLE) >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN= | >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE_SWAP; >> > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE_FN= ; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0apple_keys =3D 1; >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0sc->sc_kbd_id =3D temp_id; >> > >> > >> > The hardware that Christoph was using had an Eject-key, while yours >> > didn't. I think the patch above will make both cases work. >> > >> > Christoph, do you have any comments? >> > >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/usb/src= /sys/ >> >dev/usb/input/ukbd.c&REV=3D47 >> >> Not quite true, my keyboard _does_ have an Eject key. The code doesn't >> detect it though. >> >> - Steven >> > > Could you try to figure out what key-press number corresponds to the ejec= t > key? > > --HPS > I'm not certain how to do so. It's somewhat of a chicken-and-the-egg problem: unless it detects that the key is there, I can't find it. Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is pressed. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:45:01 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 00AA0106566B; Sun, 14 Mar 2010 14:45:00 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.tele2.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 1052A8FC0A; Sun, 14 Mar 2010 14:44:59 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8-LOXV1aLNAA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=r_kkXxauAAAA:8 a=GKysJfYJAAAA:8 a=6I5d2MoRAAAA:8 a=H_ij3XgbZd1a1lMt2G4A:9 a=CznEJ2JUW83c9a3cfXYA:7 a=Yl2q9uDaFSzide2_CK7s19_S2G4A:4 a=QEXdDO2ut3YA:10 a=9aOQ2cSd83gA:10 a=1C6itdonJusA:10 a=SV7veod9ZcQA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 607071301; Sun, 14 Mar 2010 15:44:57 +0100 From: Hans Petter Selasky To: Steven Noonan Date: Sun, 14 Mar 2010 15:43:19 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141527.37644.hselasky@c2i.net> 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003141543.19166.hselasky@c2i.net> Cc: Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 14:45:01 -0000 On Sunday 14 March 2010 15:37:04 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > > > > wrote: > >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > >> >> > >> > > >> > wrote: > >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> >> The following reply was made to PR usb/144414; it has been noted > >> >> >> by GNATS. > >> >> >> > >> >> >> From: Steven Noonan > >> >> >> To: perryh@pluto.rain.com > >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> >> > >> >> >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> >> wrot= > >> >> >> > >> >> >> e: > >> >> >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> >> > wr= > >> >> >> > >> >> >> ote: > >> >> >> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> >> >> wrote: >>> Steven Noonan wrote: > >> >> >> >>>> Interestingly, my tilde key doesn't work either (though the > >> >> >> key >>>> press is detected, no character shows when the key is > >> >> >> pressed). >>> > >> >> >> >>> Any chance it is configured as a "dead" key? =C2=A0If you > >> >> >> press >>> tilde followed by n do you get an n with a tilde over > >> >> >> it? >> > >> >> >> >> Nope. It simply does nothing in the console. > >> >> >> >> > >> >> >> >> But in X11, it does something very odd. Shift+Tilde Key gives > >> >> >> me '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... > >> >> >> What? I don't >> even know what action. It's grabbing some > >> >> >> arbitrary command in my >> .bash_history. It gave me the first > >> >> >> item in my .bash_history the first >> time I tried it. Then I > >> >> >> tried an arbitrary command ("echo"), and then >> Alt+Tilde gave me > >> >> >> the second command in my .bash_history. Whaa? > >> >> >> > >> >> >> Any more ideas/news on this from anyone? > >> >> >> > >> >> >> The tilde key thing is especially irritating. > >> >> > > >> >> > static uint8_t > >> >> > ukbd_apple_swap(uint8_t keycode) { > >> >> > switch (keycode) { > >> >> > case 0x35: return 0x64; > >> >> > case 0x64: return 0x35; > >> >> > default: return keycode; > >> >> > } > >> >> > } > >> >> > > >> >> > Can you try to change the function above in ukbd.c to only return > >> >> > keycode? Any difference? > >> >> > >> >> Yep, commenting the two case lines brought my tilde key back. Any > >> >> idea what the ukbd_apple_swap() function was _supposed_ to be doing? > >> >> > >> >> Also, there's only one thing left (input-wise) that I can't get to > >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > >> >> that it's not a problem with Fn+Backspace failing to map to Delete, > >> >> because my non-Mac i386 box has the same problem. > >> >> > >> >> Everything I read online keeps saying to muck with an .inputrc file > >> >> (for bash, anyway), but I haven't been able to get it to work. Places > >> >> I've looked have said to add this to .inputrc: > >> >> > >> >> "\e[3~": delete-char > >> >> > >> >> But this seems to have no effect (and I tried bind -f .inputrc in > >> >> case my INPUTRC environment variable wasn't working). Is there > >> >> something FreeBSD-specific I'm not seeing, or what? > >> >> > >> >> - Steven > >> > > >> > Hi Steven, > >> > > >> > Can you talk this over with Christoph and send me a patch when you > >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I > >> > suggest the following patch: > >> > > >> > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > >> > src/sys/dev/usb/input/ukbd.c ==== > >> > @@ -896,8 +896,7 @@ > >> > hid_input, 0, &sc->sc_loc_apple_fn, &flags, > >> > &temp_id)) { > >> > if (flags & HIO_VARIABLE) > >> > - sc->sc_flags |= UKBD_FLAG_APPLE_FN | > >> > - UKBD_FLAG_APPLE_SWAP; > >> > + sc->sc_flags |= UKBD_FLAG_APPLE_FN; > >> > DPRINTFN(1, "Found Apple FN-key\n"); > >> > apple_keys = 1; > >> > sc->sc_kbd_id = temp_id; > >> > > >> > > >> > The hardware that Christoph was using had an Eject-key, while yours > >> > didn't. I think the patch above will make both cases work. > >> > > >> > Christoph, do you have any comments? > >> > > >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/s > >> >ys/ dev/usb/input/ukbd.c&REV=47 > >> > >> Not quite true, my keyboard _does_ have an Eject key. The code doesn't > >> detect it though. > >> > >> - Steven > > > > Could you try to figure out what key-press number corresponds to the > > eject key? > > > > --HPS > > I'm not certain how to do so. It's somewhat of a chicken-and-the-egg > problem: unless it detects that the key is there, I can't find it. > Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is > pressed. Then maybe we have to do some additional requests towards the hardware to "switch on" sending of those keys .... --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:46:07 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 9EE88106566B; Sun, 14 Mar 2010 14:46:07 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by mx1.freebsd.org (Postfix) with ESMTP id EEA5E8FC19; Sun, 14 Mar 2010 14:46:06 +0000 (UTC) Received: by ewy28 with SMTP id 28so486437ewy.13 for ; Sun, 14 Mar 2010 07:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Cd8F69hWFGg99HetGf6gdJ130Bvv9yrPreyerhrXE04=; b=iY1boX/saMF5zRbjTnBEcCA4+TjsmvZcTXeFPoROC/SYuzevfN/mPyDK/08MvU/1Mk 5LNKrFMZm9TjhntROb6jfYOdwEEdNFUPSUKYdw8Uu/5B2rezBXs/peysBE3Zw1a/dt7r gFRItTzgjvwEIT2oLx5jG2++9KBrbaa9i5R9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; b=v3iZyYD5Z24pLf1etEY6wX6jIswhYYW5Vy654w+KITs5oXx9Zhwe4acd5uY4zz62yd OXV7XuTt++Azdi3hJ5cRXGnhKzE28l3cyOM265MQaYTGMU2OHU1CZF7HGvKbzAEKCS3m 4SlUObji0Kh71Eatf51VRyLOKc7lzDC0wtvUQ= Received: by 10.213.100.4 with SMTP id w4mr1592598ebn.53.1268577965678; Sun, 14 Mar 2010 07:46:05 -0700 (PDT) Received: from localhost (81-233-38-26-no36.tbcn.telia.com [81.233.38.26]) by mx.google.com with ESMTPS id 16sm2061214ewy.3.2010.03.14.07.46.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Mar 2010 07:46:04 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1Nqp4t-0000xn-4T; Sun, 14 Mar 2010 15:46:03 +0100 Received: (from kaiw@localhost) by localhost.my.domain (8.14.3/8.14.3/Submit) id o2EEk1Z5003706; Sun, 14 Mar 2010 15:46:01 +0100 (CET) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaiw set sender to kaiwang27@gmail.com using -f Date: Sun, 14 Mar 2010 15:46:01 +0100 From: Kai Wang To: Steven Noonan Message-ID: <20100314144601.GA2534@viskning> References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141448.30747.hselasky@c2i.net> <201003141527.37644.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-gnats-submit@freebsd.org, Christoph Langguth , freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 14:46:07 -0000 On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: > On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > > wrote: > >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > >> > > >> > wrote: > >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> >> The following reply was made to PR usb/144414; it has been noted by > >> >> >> GNATS. > >> >> >> > >> >> >> From: Steven Noonan > >> >> >> To: perryh@pluto.rain.com > >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> >> > >> >> >>  On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> >> wrot= > >> >> >> > >> >> >>  e: > >> >> >>  > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> >> > wr= > >> >> >> > >> >> >>  ote: > >> >> >>  >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> >> >> wrote: >>> Steven Noonan wrote: > >> >> >>  >>>> Interestingly, my tilde key doesn't work either (though the key > >> >> >>  >>>> press is detected, no character shows when the key is pressed). > >> >> >>  >>> > >> >> >>  >>> Any chance it is configured as a "dead" key? =C2=A0If you press > >> >> >>  >>> tilde followed by n do you get an n with a tilde over it? > >> >> >>  >> > >> >> >>  >> Nope. It simply does nothing in the console. > >> >> >>  >> > >> >> >>  >> But in X11, it does something very odd. Shift+Tilde Key gives me > >> >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I > >> >> >> don't >> even know what action. It's grabbing some arbitrary command > >> >> >> in my >> .bash_history. It gave me the first item in my .bash_history > >> >> >> the first >> time I tried it. Then I tried an arbitrary command > >> >> >> ("echo"), and then >> Alt+Tilde gave me the second command in my > >> >> >> .bash_history. Whaa? > >> >> >> > >> >> >>  Any more ideas/news on this from anyone? > >> >> >> > >> >> >>  The tilde key thing is especially irritating. > >> >> > > >> >> > static uint8_t > >> >> > ukbd_apple_swap(uint8_t keycode) { > >> >> >        switch (keycode) { > >> >> >        case 0x35: return 0x64; > >> >> >        case 0x64: return 0x35; > >> >> >        default: return keycode; > >> >> >        } > >> >> > } > >> >> > > >> >> > Can you try to change the function above in ukbd.c to only return > >> >> > keycode? Any difference? > >> >> > >> >> Yep, commenting the two case lines brought my tilde key back. Any idea > >> >> what the ukbd_apple_swap() function was _supposed_ to be doing? > >> >> > >> >> Also, there's only one thing left (input-wise) that I can't get to > >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > >> >> that it's not a problem with Fn+Backspace failing to map to Delete, > >> >> because my non-Mac i386 box has the same problem. > >> >> > >> >> Everything I read online keeps saying to muck with an .inputrc file > >> >> (for bash, anyway), but I haven't been able to get it to work. Places > >> >> I've looked have said to add this to .inputrc: > >> >> > >> >> "\e[3~": delete-char > >> >> > >> >> But this seems to have no effect (and I tried bind -f .inputrc in case > >> >> my INPUTRC environment variable wasn't working). Is there something > >> >> FreeBSD-specific I'm not seeing, or what? > >> >> > >> >> - Steven > >> > > >> > Hi Steven, > >> > > >> > Can you talk this over with Christoph and send me a patch when you > >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I > >> > suggest the following patch: > >> > > >> > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > >> > src/sys/dev/usb/input/ukbd.c ==== > >> > @@ -896,8 +896,7 @@ > >> >                    hid_input, 0, &sc->sc_loc_apple_fn, &flags, > >> >                    &temp_id)) { > >> >                        if (flags & HIO_VARIABLE) > >> > -                               sc->sc_flags |= UKBD_FLAG_APPLE_FN | > >> > -                                   UKBD_FLAG_APPLE_SWAP; > >> > +                               sc->sc_flags |= UKBD_FLAG_APPLE_FN; > >> >                        DPRINTFN(1, "Found Apple FN-key\n"); > >> >                        apple_keys = 1; > >> >                        sc->sc_kbd_id = temp_id; > >> > > >> > > >> > The hardware that Christoph was using had an Eject-key, while yours > >> > didn't. I think the patch above will make both cases work. > >> > > >> > Christoph, do you have any comments? > >> > > >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/sys/ > >> >dev/usb/input/ukbd.c&REV=47 > >> > >> Not quite true, my keyboard _does_ have an Eject key. The code doesn't > >> detect it though. > >> > >> - Steven > >> > > > > Could you try to figure out what key-press number corresponds to the eject > > key? > > > > --HPS > > > > I'm not certain how to do so. It's somewhat of a chicken-and-the-egg > problem: unless it detects that the key is there, I can't find it. > Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is > pressed. It's very possible that your Eject key is in a separate interface and is handled by uhid(4) instead of ukbd(4). /Kai From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:49:38 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 86213106564A; Sun, 14 Mar 2010 14:49:38 +0000 (UTC) (envelope-from steven@uplinklabs.net) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id 498EF8FC12; Sun, 14 Mar 2010 14:49:37 +0000 (UTC) Received: by iwn15 with SMTP id 15so2607443iwn.7 for ; Sun, 14 Mar 2010 07:49:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.144.15 with SMTP id x15mr541680ibu.99.1268578177477; Sun, 14 Mar 2010 07:49:37 -0700 (PDT) In-Reply-To: <20100314144601.GA2534@viskning> References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <201003141448.30747.hselasky@c2i.net> <201003141527.37644.hselasky@c2i.net> <20100314144601.GA2534@viskning> Date: Sun, 14 Mar 2010 06:49:37 -0800 Message-ID: From: Steven Noonan To: Kai Wang Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-gnats-submit@freebsd.org, Christoph Langguth , freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 14:49:38 -0000 On Sun, Mar 14, 2010 at 6:46 AM, Kai Wang wrote: > On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky = wrote: >> > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: >> >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky >> > wrote: >> >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky >> >> > >> >> > wrote: >> >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> >> >> The following reply was made to PR usb/144414; it has been note= d by >> >> >> >> GNATS. >> >> >> >> >> >> >> >> From: Steven Noonan >> >> >> >> To: perryh@pluto.rain.com >> >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org >> >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly >> >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> >> >> wrot=3D >> >> >> >> >> >> >> >> =C2=A0e: >> >> >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> >> >> > wr=3D >> >> >> >> >> >> >> >> =C2=A0ote: >> >> >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, =3DC2=3DA0 >> >> >> >> wrote: >>> Steven Noonan wrote: >> >> >> >> =C2=A0>>>> Interestingly, my tilde key doesn't work either (tho= ugh the key >> >> >> >> =C2=A0>>>> press is detected, no character shows when the key i= s pressed). >> >> >> >> =C2=A0>>> >> >> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2=3D= A0If you press >> >> >> >> =C2=A0>>> tilde followed by n do you get an n with a tilde over= it? >> >> >> >> =C2=A0>> >> >> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> >> >> =C2=A0>> >> >> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde Ke= y gives me >> >> >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... W= hat? I >> >> >> >> don't >> even know what action. It's grabbing some arbitrary co= mmand >> >> >> >> in my >> .bash_history. It gave me the first item in my .bash_h= istory >> >> >> >> the first >> time I tried it. Then I tried an arbitrary command >> >> >> >> ("echo"), and then >> Alt+Tilde gave me the second command in m= y >> >> >> >> .bash_history. Whaa? >> >> >> >> >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> >> >> > >> >> >> > static uint8_t >> >> >> > ukbd_apple_swap(uint8_t keycode) { >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> >> >> > } >> >> >> > >> >> >> > Can you try to change the function above in ukbd.c to only retur= n >> >> >> > keycode? Any difference? >> >> >> >> >> >> Yep, commenting the two case lines brought my tilde key back. Any = idea >> >> >> what the ukbd_apple_swap() function was _supposed_ to be doing? >> >> >> >> >> >> Also, there's only one thing left (input-wise) that I can't get to >> >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certa= in >> >> >> that it's not a problem with Fn+Backspace failing to map to Delete= , >> >> >> because my non-Mac i386 box has the same problem. >> >> >> >> >> >> Everything I read online keeps saying to muck with an .inputrc fil= e >> >> >> (for bash, anyway), but I haven't been able to get it to work. Pla= ces >> >> >> I've looked have said to add this to .inputrc: >> >> >> >> >> >> "\e[3~": delete-char >> >> >> >> >> >> But this seems to have no effect (and I tried bind -f .inputrc in = case >> >> >> my INPUTRC environment variable wasn't working). Is there somethin= g >> >> >> FreeBSD-specific I'm not seeing, or what? >> >> >> >> >> >> - Steven >> >> > >> >> > Hi Steven, >> >> > >> >> > Can you talk this over with Christoph and send me a patch when you >> >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile = I >> >> > suggest the following patch: >> >> > >> >> > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - >> >> > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D >> >> > @@ -896,8 +896,7 @@ >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0hid_input, 0, &sc->sc_loc_apple_fn, &flags, >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0&temp_id)) { >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0if (flags & HIO_VARIABLE) >> >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE= _FN | >> >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE_SWA= P; >> >> > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE= _FN; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0apple_keys =3D 1; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0sc->sc_kbd_id =3D temp_id; >> >> > >> >> > >> >> > The hardware that Christoph was using had an Eject-key, while yours >> >> > didn't. I think the patch above will make both cases work. >> >> > >> >> > Christoph, do you have any comments? >> >> > >> >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/usb/= src/sys/ >> >> >dev/usb/input/ukbd.c&REV=3D47 >> >> >> >> Not quite true, my keyboard _does_ have an Eject key. The code doesn'= t >> >> detect it though. >> >> >> >> - Steven >> >> >> > >> > Could you try to figure out what key-press number corresponds to the e= ject >> > key? >> > >> > --HPS >> > >> >> I'm not certain how to do so. It's somewhat of a chicken-and-the-egg >> problem: unless it detects that the key is there, I can't find it. >> Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is >> pressed. > > It's very possible that your Eject key is in a separate interface and > is handled by uhid(4) instead of ukbd(4). > > /Kai > Enabling 'hw.usb.uhid.debug' doesn't print anything on an Eject keypress either, but that could just mean that uhid(4) doesn't have necessary DPRINTFs to show it. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:50:06 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2279A106564A for ; Sun, 14 Mar 2010 14:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 12D1B8FC13 for ; Sun, 14 Mar 2010 14:50:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EEo5rT045690 for ; Sun, 14 Mar 2010 14:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EEo5bb045689; Sun, 14 Mar 2010 14:50:05 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 14:50:05 GMT Message-Id: <201003141450.o2EEo5bb045689@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 14:50:06 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Hans Petter Selasky To: Steven Noonan Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org, Christoph Langguth Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 15:43:19 +0100 On Sunday 14 March 2010 15:37:04 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > > > > wrote: > >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > >> >> > >> > > >> > wrote: > >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> >> The following reply was made to PR usb/144414; it has been noted > >> >> >> by GNATS. > >> >> >> > >> >> >> From: Steven Noonan > >> >> >> To: perryh@pluto.rain.com > >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> >> > >> >> >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> >> wrot= > >> >> >> > >> >> >> e: > >> >> >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> >> > wr= > >> >> >> > >> >> >> ote: > >> >> >> >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> >> >> wrote: >>> Steven Noonan wrote: > >> >> >> >>>> Interestingly, my tilde key doesn't work either (though the > >> >> >> key >>>> press is detected, no character shows when the key is > >> >> >> pressed). >>> > >> >> >> >>> Any chance it is configured as a "dead" key? =C2=A0If you > >> >> >> press >>> tilde followed by n do you get an n with a tilde over > >> >> >> it? >> > >> >> >> >> Nope. It simply does nothing in the console. > >> >> >> >> > >> >> >> >> But in X11, it does something very odd. Shift+Tilde Key gives > >> >> >> me '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... > >> >> >> What? I don't >> even know what action. It's grabbing some > >> >> >> arbitrary command in my >> .bash_history. It gave me the first > >> >> >> item in my .bash_history the first >> time I tried it. Then I > >> >> >> tried an arbitrary command ("echo"), and then >> Alt+Tilde gave me > >> >> >> the second command in my .bash_history. Whaa? > >> >> >> > >> >> >> Any more ideas/news on this from anyone? > >> >> >> > >> >> >> The tilde key thing is especially irritating. > >> >> > > >> >> > static uint8_t > >> >> > ukbd_apple_swap(uint8_t keycode) { > >> >> > switch (keycode) { > >> >> > case 0x35: return 0x64; > >> >> > case 0x64: return 0x35; > >> >> > default: return keycode; > >> >> > } > >> >> > } > >> >> > > >> >> > Can you try to change the function above in ukbd.c to only return > >> >> > keycode? Any difference? > >> >> > >> >> Yep, commenting the two case lines brought my tilde key back. Any > >> >> idea what the ukbd_apple_swap() function was _supposed_ to be doing? > >> >> > >> >> Also, there's only one thing left (input-wise) that I can't get to > >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > >> >> that it's not a problem with Fn+Backspace failing to map to Delete, > >> >> because my non-Mac i386 box has the same problem. > >> >> > >> >> Everything I read online keeps saying to muck with an .inputrc file > >> >> (for bash, anyway), but I haven't been able to get it to work. Places > >> >> I've looked have said to add this to .inputrc: > >> >> > >> >> "\e[3~": delete-char > >> >> > >> >> But this seems to have no effect (and I tried bind -f .inputrc in > >> >> case my INPUTRC environment variable wasn't working). Is there > >> >> something FreeBSD-specific I'm not seeing, or what? > >> >> > >> >> - Steven > >> > > >> > Hi Steven, > >> > > >> > Can you talk this over with Christoph and send me a patch when you > >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I > >> > suggest the following patch: > >> > > >> > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > >> > src/sys/dev/usb/input/ukbd.c ==== > >> > @@ -896,8 +896,7 @@ > >> > hid_input, 0, &sc->sc_loc_apple_fn, &flags, > >> > &temp_id)) { > >> > if (flags & HIO_VARIABLE) > >> > - sc->sc_flags |= UKBD_FLAG_APPLE_FN | > >> > - UKBD_FLAG_APPLE_SWAP; > >> > + sc->sc_flags |= UKBD_FLAG_APPLE_FN; > >> > DPRINTFN(1, "Found Apple FN-key\n"); > >> > apple_keys = 1; > >> > sc->sc_kbd_id = temp_id; > >> > > >> > > >> > The hardware that Christoph was using had an Eject-key, while yours > >> > didn't. I think the patch above will make both cases work. > >> > > >> > Christoph, do you have any comments? > >> > > >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/s > >> >ys/ dev/usb/input/ukbd.c&REV=47 > >> > >> Not quite true, my keyboard _does_ have an Eject key. The code doesn't > >> detect it though. > >> > >> - Steven > > > > Could you try to figure out what key-press number corresponds to the > > eject key? > > > > --HPS > > I'm not certain how to do so. It's somewhat of a chicken-and-the-egg > problem: unless it detects that the key is there, I can't find it. > Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is > pressed. Then maybe we have to do some additional requests towards the hardware to "switch on" sending of those keys .... --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:50:08 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0793D1065674 for ; Sun, 14 Mar 2010 14:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EC5848FC16 for ; Sun, 14 Mar 2010 14:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EEo7mj045698 for ; Sun, 14 Mar 2010 14:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EEo7la045697; Sun, 14 Mar 2010 14:50:07 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 14:50:07 GMT Message-Id: <201003141450.o2EEo7la045697@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Kai Wang Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kai Wang List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 14:50:08 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Kai Wang To: Steven Noonan Cc: Hans Petter Selasky , Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 15:46:01 +0100 On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: > On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wrote: > > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > > wrote: > >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > >> > > >> > wrote: > >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> >> The following reply was made to PR usb/144414; it has been noted by > >> >> >> GNATS. > >> >> >> > >> >> >> From: Steven Noonan > >> >> >> To: perryh@pluto.rain.com > >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> >> > >> >> >>  On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> >> wrot= > >> >> >> > >> >> >>  e: > >> >> >>  > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> >> > wr= > >> >> >> > >> >> >>  ote: > >> >> >>  >> On Wed, Mar 3, 2010 at 10:36 PM, =C2=A0 > >> >> >> wrote: >>> Steven Noonan wrote: > >> >> >>  >>>> Interestingly, my tilde key doesn't work either (though the key > >> >> >>  >>>> press is detected, no character shows when the key is pressed). > >> >> >>  >>> > >> >> >>  >>> Any chance it is configured as a "dead" key? =C2=A0If you press > >> >> >>  >>> tilde followed by n do you get an n with a tilde over it? > >> >> >>  >> > >> >> >>  >> Nope. It simply does nothing in the console. > >> >> >>  >> > >> >> >>  >> But in X11, it does something very odd. Shift+Tilde Key gives me > >> >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... What? I > >> >> >> don't >> even know what action. It's grabbing some arbitrary command > >> >> >> in my >> .bash_history. It gave me the first item in my .bash_history > >> >> >> the first >> time I tried it. Then I tried an arbitrary command > >> >> >> ("echo"), and then >> Alt+Tilde gave me the second command in my > >> >> >> .bash_history. Whaa? > >> >> >> > >> >> >>  Any more ideas/news on this from anyone? > >> >> >> > >> >> >>  The tilde key thing is especially irritating. > >> >> > > >> >> > static uint8_t > >> >> > ukbd_apple_swap(uint8_t keycode) { > >> >> >        switch (keycode) { > >> >> >        case 0x35: return 0x64; > >> >> >        case 0x64: return 0x35; > >> >> >        default: return keycode; > >> >> >        } > >> >> > } > >> >> > > >> >> > Can you try to change the function above in ukbd.c to only return > >> >> > keycode? Any difference? > >> >> > >> >> Yep, commenting the two case lines brought my tilde key back. Any idea > >> >> what the ukbd_apple_swap() function was _supposed_ to be doing? > >> >> > >> >> Also, there's only one thing left (input-wise) that I can't get to > >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certain > >> >> that it's not a problem with Fn+Backspace failing to map to Delete, > >> >> because my non-Mac i386 box has the same problem. > >> >> > >> >> Everything I read online keeps saying to muck with an .inputrc file > >> >> (for bash, anyway), but I haven't been able to get it to work. Places > >> >> I've looked have said to add this to .inputrc: > >> >> > >> >> "\e[3~": delete-char > >> >> > >> >> But this seems to have no effect (and I tried bind -f .inputrc in case > >> >> my INPUTRC environment variable wasn't working). Is there something > >> >> FreeBSD-specific I'm not seeing, or what? > >> >> > >> >> - Steven > >> > > >> > Hi Steven, > >> > > >> > Can you talk this over with Christoph and send me a patch when you > >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile I > >> > suggest the following patch: > >> > > >> > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > >> > src/sys/dev/usb/input/ukbd.c ==== > >> > @@ -896,8 +896,7 @@ > >> >                    hid_input, 0, &sc->sc_loc_apple_fn, &flags, > >> >                    &temp_id)) { > >> >                        if (flags & HIO_VARIABLE) > >> > -                               sc->sc_flags |= UKBD_FLAG_APPLE_FN | > >> > -                                   UKBD_FLAG_APPLE_SWAP; > >> > +                               sc->sc_flags |= UKBD_FLAG_APPLE_FN; > >> >                        DPRINTFN(1, "Found Apple FN-key\n"); > >> >                        apple_keys = 1; > >> >                        sc->sc_kbd_id = temp_id; > >> > > >> > > >> > The hardware that Christoph was using had an Eject-key, while yours > >> > didn't. I think the patch above will make both cases work. > >> > > >> > Christoph, do you have any comments? > >> > > >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/src/sys/ > >> >dev/usb/input/ukbd.c&REV=47 > >> > >> Not quite true, my keyboard _does_ have an Eject key. The code doesn't > >> detect it though. > >> > >> - Steven > >> > > > > Could you try to figure out what key-press number corresponds to the eject > > key? > > > > --HPS > > > > I'm not certain how to do so. It's somewhat of a chicken-and-the-egg > problem: unless it detects that the key is there, I can't find it. > Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is > pressed. It's very possible that your Eject key is in a separate interface and is handled by uhid(4) instead of ukbd(4). /Kai From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 14:50:10 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B17B106564A for ; Sun, 14 Mar 2010 14:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EF9918FC17 for ; Sun, 14 Mar 2010 14:50:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EEo9ni045741 for ; Sun, 14 Mar 2010 14:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EEo9nW045740; Sun, 14 Mar 2010 14:50:09 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 14:50:09 GMT Message-Id: <201003141450.o2EEo9nW045740@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Steven Noonan Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steven Noonan List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 14:50:10 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Steven Noonan To: Kai Wang Cc: Hans Petter Selasky , Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 06:49:37 -0800 On Sun, Mar 14, 2010 at 6:46 AM, Kai Wang wrote: > On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky = wrote: >> > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: >> >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky >> > wrote: >> >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky >> >> > >> >> > wrote: >> >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> >> >> The following reply was made to PR usb/144414; it has been note= d by >> >> >> >> GNATS. >> >> >> >> >> >> >> >> From: Steven Noonan >> >> >> >> To: perryh@pluto.rain.com >> >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org >> >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly >> >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> >> >> wrot=3D >> >> >> >> >> >> >> >> =C2=A0e: >> >> >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> >> >> > wr=3D >> >> >> >> >> >> >> >> =C2=A0ote: >> >> >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, =3DC2=3DA0 >> >> >> >> wrote: >>> Steven Noonan wrote: >> >> >> >> =C2=A0>>>> Interestingly, my tilde key doesn't work either (tho= ugh the key >> >> >> >> =C2=A0>>>> press is detected, no character shows when the key i= s pressed). >> >> >> >> =C2=A0>>> >> >> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2=3D= A0If you press >> >> >> >> =C2=A0>>> tilde followed by n do you get an n with a tilde over= it? >> >> >> >> =C2=A0>> >> >> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> >> >> =C2=A0>> >> >> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde Ke= y gives me >> >> >> >> '>', >> and Tilde Key gives me '<'. And Alt+Tilde gives me... W= hat? I >> >> >> >> don't >> even know what action. It's grabbing some arbitrary co= mmand >> >> >> >> in my >> .bash_history. It gave me the first item in my .bash_h= istory >> >> >> >> the first >> time I tried it. Then I tried an arbitrary command >> >> >> >> ("echo"), and then >> Alt+Tilde gave me the second command in m= y >> >> >> >> .bash_history. Whaa? >> >> >> >> >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> >> >> > >> >> >> > static uint8_t >> >> >> > ukbd_apple_swap(uint8_t keycode) { >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> >> >> > } >> >> >> > >> >> >> > Can you try to change the function above in ukbd.c to only retur= n >> >> >> > keycode? Any difference? >> >> >> >> >> >> Yep, commenting the two case lines brought my tilde key back. Any = idea >> >> >> what the ukbd_apple_swap() function was _supposed_ to be doing? >> >> >> >> >> >> Also, there's only one thing left (input-wise) that I can't get to >> >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty certa= in >> >> >> that it's not a problem with Fn+Backspace failing to map to Delete= , >> >> >> because my non-Mac i386 box has the same problem. >> >> >> >> >> >> Everything I read online keeps saying to muck with an .inputrc fil= e >> >> >> (for bash, anyway), but I haven't been able to get it to work. Pla= ces >> >> >> I've looked have said to add this to .inputrc: >> >> >> >> >> >> "\e[3~": delete-char >> >> >> >> >> >> But this seems to have no effect (and I tried bind -f .inputrc in = case >> >> >> my INPUTRC environment variable wasn't working). Is there somethin= g >> >> >> FreeBSD-specific I'm not seeing, or what? >> >> >> >> >> >> - Steven >> >> > >> >> > Hi Steven, >> >> > >> >> > Can you talk this over with Christoph and send me a patch when you >> >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile = I >> >> > suggest the following patch: >> >> > >> >> > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - >> >> > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D >> >> > @@ -896,8 +896,7 @@ >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0hid_input, 0, &sc->sc_loc_apple_fn, &flags, >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0&temp_id)) { >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0if (flags & HIO_VARIABLE) >> >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE= _FN | >> >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE_SWA= P; >> >> > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPLE= _FN; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0apple_keys =3D 1; >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0sc->sc_kbd_id =3D temp_id; >> >> > >> >> > >> >> > The hardware that Christoph was using had an Eject-key, while yours >> >> > didn't. I think the patch above will make both cases work. >> >> > >> >> > Christoph, do you have any comments? >> >> > >> >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/usb/= src/sys/ >> >> >dev/usb/input/ukbd.c&REV=3D47 >> >> >> >> Not quite true, my keyboard _does_ have an Eject key. The code doesn'= t >> >> detect it though. >> >> >> >> - Steven >> >> >> > >> > Could you try to figure out what key-press number corresponds to the e= ject >> > key? >> > >> > --HPS >> > >> >> I'm not certain how to do so. It's somewhat of a chicken-and-the-egg >> problem: unless it detects that the key is there, I can't find it. >> Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is >> pressed. > > It's very possible that your Eject key is in a separate interface and > is handled by uhid(4) instead of ukbd(4). > > /Kai > Enabling 'hw.usb.uhid.debug' doesn't print anything on an Eject keypress either, but that could just mean that uhid(4) doesn't have necessary DPRINTFs to show it. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 15:12:00 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 BE59C106566C for ; Sun, 14 Mar 2010 15:12:00 +0000 (UTC) (envelope-from andrey.kosachenko@gmail.com) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx1.freebsd.org (Postfix) with ESMTP id 514848FC13 for ; Sun, 14 Mar 2010 15:11:59 +0000 (UTC) Received: by fxm1 with SMTP id 1so1931863fxm.13 for ; Sun, 14 Mar 2010 08:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=rZhKglEjdn6ntRyjztGKImbHen2By5AOkxjVHhk0K4Q=; b=oGt1BWrNLqzM24imxNnl1dQALvfNMYsZMcjkn5vE7OLT5Y6CzB+SHwdhLRljxee4zL vBsYolEmePlZTLL3GMmKxXwUTslsP4cxZw2Q1gLqQJep+sL9ZivgcbXykWsSOAzOxa9+ owU0JBIVWp+d+u6W0+kqWGdNpVKDjHOAs8C20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=nJf6dzlhrFNjfPspwGHEcwcznJnuh2vkos/Xo05JHDRJNEOXphIjWV8UqiW9bepAhE Phh5hwutogn4/NyGW5AxbJKqV1GQjBKyLimg/upFf5kz/gmOC73RgVg7t8VZ/GZr7g8V 0yfDsGIHSMy1ax0AP1JpVRYw6/qBR0bclmAhA= Received: by 10.102.174.1 with SMTP id w1mr795319mue.51.1268577701736; Sun, 14 Mar 2010 07:41:41 -0700 (PDT) Received: from beastie.lan ([195.60.174.86]) by mx.google.com with ESMTPS id 23sm15205538mun.37.2010.03.14.07.41.40 (version=SSLv3 cipher=RC4-MD5); Sun, 14 Mar 2010 07:41:40 -0700 (PDT) Message-ID: <4B9CF518.1020706@gmail.com> Date: Sun, 14 Mar 2010 16:39:20 +0200 From: Andrey Kosachenko User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100303 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [current] could not attach n900 (mass storage mode) at high speed 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, 14 Mar 2010 15:12:00 -0000 Hi, There is a laptop carrying FreeBSD (9.0-current, built from fresh sources). Device (Nokia N900) is attached via USB interface. However the speed of data transfer is too low (~1.0 MB/s). I tried to attached it to Linux box and data was transferred at full speed (~ 25 MB/s) Some relevant info (please, let me know if it's not sufficient): uhci/ehci are compiled in. # uname -a FreeBSD beastie.lan 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sun Mar 14 12:55:29 EET 2010 root@beastie.lan:/usr/obj/usr/src/sys/BEASTIE-SMP-ULE-20100314 amd64 # dmesg ... ugen3.2: at usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0001 umass0:1:0:-1: Attached to scbus1 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:1): SCSI status: Check Condition (probe0:umass-sim0:0:0:1): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:1): SCSI status: Check Condition (probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) da1 at umass-sim0 bus 0 scbus1 target 0 lun 1 da1: Removable Direct Access SCSI-2 device da1: 1.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: at usbus4, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON All available USB interfaces were tried: no luck. Also looked at quirks mechanism, but found nothing relevant to the issue (or, I guess, didn't recognize). For instance, I tried to remove UQ_MSC_FLOPPY_SPEED, nothing changed. Though when the quirk UQ_MSC_NO_TEST_UNIT_READY was removed, seems storage size was detected properly, i.e: umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0001 umass0:1:0:-1: Attached to scbus1 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 27652MB (56631296 512 byte sectors: 255H 63S/T 3525C) but transfer speed remained the same. Could you, please, suggest what should I look at in order to get it working properly. Thanks in advance! -- WBR, Andrey Kosachenko From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 15:25:06 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 D81491065672; Sun, 14 Mar 2010 15:25:06 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id EE1018FC1A; Sun, 14 Mar 2010 15:25:05 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8-LOXV1aLNAA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=pGLkceISAAAA:8 a=8kQB0OdkAAAA:8 a=r_kkXxauAAAA:8 a=GKysJfYJAAAA:8 a=6I5d2MoRAAAA:8 a=elmANNdlJoGpxYur2E0A:9 a=H0UMzUQpM3Hm-13z7BAA:7 a=vMIh1gcJWjgdhWFZcE5qpDRyKx0A:4 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=9aOQ2cSd83gA:10 a=1C6itdonJusA:10 a=SV7veod9ZcQA:10 a=nfKgog7Nicc4Z9l4:21 a=hx8Jtwp8U9iwT5Sb:21 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1209289373; Sun, 14 Mar 2010 16:25:03 +0100 From: Hans Petter Selasky To: Steven Noonan Date: Sun, 14 Mar 2010 16:23:25 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <20100314144601.GA2534@viskning> 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003141623.25160.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, Christoph Langguth , freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 15:25:07 -0000 On Sunday 14 March 2010 15:49:37 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 6:46 AM, Kai Wang wrote: > > On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wrote: > >> > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > >> >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > >> >> > >> > > >> > wrote: > >> >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > >> >> >> > >> >> > > >> >> > wrote: > >> >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> >> >> The following reply was made to PR usb/144414; it has been > >> >> >> >> noted by GNATS. > >> >> >> >> > >> >> >> >> From: Steven Noonan > >> >> >> >> To: perryh@pluto.rain.com > >> >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> >> >> > >> >> >> >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> >> >> wrot= > >> >> >> >> > >> >> >> >> e: > >> >> >> >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> >> >> > wr= > >> >> >> >> > >> >> >> >> ote: > >> >> >> >> >> On Wed, Mar 3, 2010 at 10:36 PM, > >> >> >> >> =C2=A0 wrote: >>> Steven Noonan > >> >> >> >> wrote: >>>> Interestingly, my tilde key > >> >> >> >> doesn't work either (though the key >>>> press is detected, no > >> >> >> >> character shows when the key is pressed). >>> > >> >> >> >> >>> Any chance it is configured as a "dead" key? =C2=A0If you > >> >> >> >> press >>> tilde followed by n do you get an n with a tilde over > >> >> >> >> it? >> > >> >> >> >> >> Nope. It simply does nothing in the console. > >> >> >> >> >> > >> >> >> >> >> But in X11, it does something very odd. Shift+Tilde Key > >> >> >> >> gives me '>', >> and Tilde Key gives me '<'. And Alt+Tilde > >> >> >> >> gives me... What? I don't >> even know what action. It's > >> >> >> >> grabbing some arbitrary command in my >> .bash_history. It gave > >> >> >> >> me the first item in my .bash_history the first >> time I tried > >> >> >> >> it. Then I tried an arbitrary command ("echo"), and then >> > >> >> >> >> Alt+Tilde gave me the second command in my .bash_history. Whaa? > >> >> >> >> > >> >> >> >> Any more ideas/news on this from anyone? > >> >> >> >> > >> >> >> >> The tilde key thing is especially irritating. > >> >> >> > > >> >> >> > static uint8_t > >> >> >> > ukbd_apple_swap(uint8_t keycode) { > >> >> >> > switch (keycode) { > >> >> >> > case 0x35: return 0x64; > >> >> >> > case 0x64: return 0x35; > >> >> >> > default: return keycode; > >> >> >> > } > >> >> >> > } > >> >> >> > > >> >> >> > Can you try to change the function above in ukbd.c to only > >> >> >> > return keycode? Any difference? > >> >> >> > >> >> >> Yep, commenting the two case lines brought my tilde key back. Any > >> >> >> idea what the ukbd_apple_swap() function was _supposed_ to be > >> >> >> doing? > >> >> >> > >> >> >> Also, there's only one thing left (input-wise) that I can't get to > >> >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty > >> >> >> certain that it's not a problem with Fn+Backspace failing to map > >> >> >> to Delete, because my non-Mac i386 box has the same problem. > >> >> >> > >> >> >> Everything I read online keeps saying to muck with an .inputrc > >> >> >> file (for bash, anyway), but I haven't been able to get it to > >> >> >> work. Places I've looked have said to add this to .inputrc: > >> >> >> > >> >> >> "\e[3~": delete-char > >> >> >> > >> >> >> But this seems to have no effect (and I tried bind -f .inputrc in > >> >> >> case my INPUTRC environment variable wasn't working). Is there > >> >> >> something FreeBSD-specific I'm not seeing, or what? > >> >> >> > >> >> >> - Steven > >> >> > > >> >> > Hi Steven, > >> >> > > >> >> > Can you talk this over with Christoph and send me a patch when you > >> >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile > >> >> > I suggest the following patch: > >> >> > > >> >> > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > >> >> > src/sys/dev/usb/input/ukbd.c ==== > >> >> > @@ -896,8 +896,7 @@ > >> >> > hid_input, 0, &sc->sc_loc_apple_fn, &flags, > >> >> > &temp_id)) { > >> >> > if (flags & HIO_VARIABLE) > >> >> > - sc->sc_flags |= UKBD_FLAG_APPLE_FN > >> >> > | - UKBD_FLAG_APPLE_SWAP; > >> >> > + sc->sc_flags |= UKBD_FLAG_APPLE_FN; > >> >> > DPRINTFN(1, "Found Apple FN-key\n"); > >> >> > apple_keys = 1; > >> >> > sc->sc_kbd_id = temp_id; > >> >> > > >> >> > > >> >> > The hardware that Christoph was using had an Eject-key, while yours > >> >> > didn't. I think the patch above will make both cases work. > >> >> > > >> >> > Christoph, do you have any comments? > >> >> > > >> >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/sr > >> >> >c/sys/ dev/usb/input/ukbd.c&REV=47 > >> >> > >> >> Not quite true, my keyboard _does_ have an Eject key. The code > >> >> doesn't detect it though. > >> >> > >> >> - Steven > >> > > >> > Could you try to figure out what key-press number corresponds to the > >> > eject key? > >> > > >> > --HPS > >> > >> I'm not certain how to do so. It's somewhat of a chicken-and-the-egg > >> problem: unless it detects that the key is there, I can't find it. > >> Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is > >> pressed. > > > > It's very possible that your Eject key is in a separate interface and > > is handled by uhid(4) instead of ukbd(4). > > > > /Kai > > Enabling 'hw.usb.uhid.debug' doesn't print anything on an Eject > keypress either, but that could just mean that uhid(4) doesn't have > necessary DPRINTFs to show it. > > - Steven > You need to open /dev/uhidX before it will print anything. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 15:28:18 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 2A7D61065670; Sun, 14 Mar 2010 15:28:18 +0000 (UTC) (envelope-from steven@uplinklabs.net) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id E2C0C8FC1C; Sun, 14 Mar 2010 15:28:17 +0000 (UTC) Received: by iwn15 with SMTP id 15so2627513iwn.7 for ; Sun, 14 Mar 2010 08:28:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.154.8 with SMTP id m8mr347902ibw.2.1268580496135; Sun, 14 Mar 2010 08:28:16 -0700 (PDT) In-Reply-To: <201003141623.25160.hselasky@c2i.net> References: <201003141030.o2EAU40v018339@freefall.freebsd.org> <20100314144601.GA2534@viskning> <201003141623.25160.hselasky@c2i.net> Date: Sun, 14 Mar 2010 07:28:16 -0800 Message-ID: From: Steven Noonan To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-gnats-submit@freebsd.org, Christoph Langguth , freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly 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, 14 Mar 2010 15:28:18 -0000 On Sun, Mar 14, 2010 at 7:23 AM, Hans Petter Selasky wro= te: > On Sunday 14 March 2010 15:49:37 Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 6:46 AM, Kai Wang wrote: >> > On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: >> >> On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky > wrote: >> >> > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: >> >> >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky >> >> >> >> >> > >> >> > wrote: >> >> >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> >> >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky >> >> >> >> >> >> >> > >> >> >> > wrote: >> >> >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> >> >> >> The following reply was made to PR usb/144414; it has been >> >> >> >> >> noted by GNATS. >> >> >> >> >> >> >> >> >> >> From: Steven Noonan >> >> >> >> >> To: perryh@pluto.rain.com >> >> >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.or= g >> >> >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properl= y >> >> >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> >> >> >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> >> >> >> wrot=3D >> >> >> >> >> >> >> >> >> >> =C2=A0e: >> >> >> >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> >> >> >> > wr=3D >> >> >> >> >> >> >> >> >> >> =C2=A0ote: >> >> >> >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, >> >> >> >> >> =3DC2=3DA0 wrote: >>> Steven Noonan >> >> >> >> >> wrote: >>>> Interestingly, my tilde = key >> >> >> >> >> doesn't work either (though the key >>>> press is detected, = no >> >> >> >> >> character shows when the key is pressed). >>> >> >> >> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2= =3DA0If you >> >> >> >> >> press >>> tilde followed by n do you get an n with a tilde o= ver >> >> >> >> >> it? >> >> >> >> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> >> >> >> =C2=A0>> >> >> >> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde= Key >> >> >> >> >> gives me '>', >> and Tilde Key gives me '<'. And Alt+Tilde >> >> >> >> >> gives me... What? I don't >> even know what action. It's >> >> >> >> >> grabbing some arbitrary command in my >> .bash_history. It g= ave >> >> >> >> >> me the first item in my .bash_history the first >> time I tr= ied >> >> >> >> >> it. Then I tried an arbitrary command ("echo"), and then >> >> >> >> >> >> Alt+Tilde gave me the second command in my .bash_history. Wh= aa? >> >> >> >> >> >> >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> >> >> >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> >> >> >> > >> >> >> >> > static uint8_t >> >> >> >> > ukbd_apple_swap(uint8_t keycode) { >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> >> >> >> > } >> >> >> >> > >> >> >> >> > Can you try to change the function above in ukbd.c to only >> >> >> >> > return keycode? Any difference? >> >> >> >> >> >> >> >> Yep, commenting the two case lines brought my tilde key back. A= ny >> >> >> >> idea what the ukbd_apple_swap() function was _supposed_ to be >> >> >> >> doing? >> >> >> >> >> >> >> >> Also, there's only one thing left (input-wise) that I can't get= to >> >> >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty >> >> >> >> certain that it's not a problem with Fn+Backspace failing to ma= p >> >> >> >> to Delete, because my non-Mac i386 box has the same problem. >> >> >> >> >> >> >> >> Everything I read online keeps saying to muck with an .inputrc >> >> >> >> file (for bash, anyway), but I haven't been able to get it to >> >> >> >> work. Places I've looked have said to add this to .inputrc: >> >> >> >> >> >> >> >> "\e[3~": delete-char >> >> >> >> >> >> >> >> But this seems to have no effect (and I tried bind -f .inputrc = in >> >> >> >> case my INPUTRC environment variable wasn't working). Is there >> >> >> >> something FreeBSD-specific I'm not seeing, or what? >> >> >> >> >> >> >> >> - Steven >> >> >> > >> >> >> > Hi Steven, >> >> >> > >> >> >> > Can you talk this over with Christoph and send me a patch when y= ou >> >> >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhi= le >> >> >> > I suggest the following patch: >> >> >> > >> >> >> > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#4= 7 - >> >> >> > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D >> >> >> > @@ -896,8 +896,7 @@ >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0hid_input, 0, &sc->sc_loc_apple_fn, &flags, >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0&temp_id)) { >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0if (flags & HIO_VARIABLE) >> >> >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPL= E_FN >> >> >> > | - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE= _SWAP; >> >> >> > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPL= E_FN; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0apple_keys =3D 1; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0sc->sc_kbd_id =3D temp_id; >> >> >> > >> >> >> > >> >> >> > The hardware that Christoph was using had an Eject-key, while yo= urs >> >> >> > didn't. I think the patch above will make both cases work. >> >> >> > >> >> >> > Christoph, do you have any comments? >> >> >> > >> >> >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/u= sb/sr >> >> >> >c/sys/ dev/usb/input/ukbd.c&REV=3D47 >> >> >> >> >> >> Not quite true, my keyboard _does_ have an Eject key. The code >> >> >> doesn't detect it though. >> >> >> >> >> >> - Steven >> >> > >> >> > Could you try to figure out what key-press number corresponds to th= e >> >> > eject key? >> >> > >> >> > --HPS >> >> >> >> I'm not certain how to do so. It's somewhat of a chicken-and-the-egg >> >> problem: unless it detects that the key is there, I can't find it. >> >> Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is >> >> pressed. >> > >> > It's very possible that your Eject key is in a separate interface and >> > is handled by uhid(4) instead of ukbd(4). >> > >> > /Kai >> >> Enabling 'hw.usb.uhid.debug' doesn't print anything on an Eject >> keypress either, but that could just mean that uhid(4) doesn't have >> necessary DPRINTFs to show it. >> >> - Steven >> > > You need to open /dev/uhidX before it will print anything. > > --HPS > Aha. Doing 'cat /dev/uhid0 > /dev/null' and then hitting eject yielded: "uhid_intr_callback: transferred!" in dmesg. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 15:30:12 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8916D106566B for ; Sun, 14 Mar 2010 15:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5EFDC8FC17 for ; Sun, 14 Mar 2010 15:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EFUBdJ079514 for ; Sun, 14 Mar 2010 15:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EFUBfB079508; Sun, 14 Mar 2010 15:30:11 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 15:30:11 GMT Message-Id: <201003141530.o2EFUBfB079508@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 15:30:12 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Hans Petter Selasky To: Steven Noonan Cc: Kai Wang , Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 16:23:25 +0100 On Sunday 14 March 2010 15:49:37 Steven Noonan wrote: > On Sun, Mar 14, 2010 at 6:46 AM, Kai Wang wrote: > > On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: > >> On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky wrote: > >> > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: > >> >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky > >> >> > >> > > >> > wrote: > >> >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: > >> >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky > >> >> >> > >> >> > > >> >> > wrote: > >> >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: > >> >> >> >> The following reply was made to PR usb/144414; it has been > >> >> >> >> noted by GNATS. > >> >> >> >> > >> >> >> >> From: Steven Noonan > >> >> >> >> To: perryh@pluto.rain.com > >> >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org > >> >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properly > >> >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 > >> >> >> >> > >> >> >> >> On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan > >> >> >> >> wrot= > >> >> >> >> > >> >> >> >> e: > >> >> >> >> > On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan > >> >> >> >> > wr= > >> >> >> >> > >> >> >> >> ote: > >> >> >> >> >> On Wed, Mar 3, 2010 at 10:36 PM, > >> >> >> >> =C2=A0 wrote: >>> Steven Noonan > >> >> >> >> wrote: >>>> Interestingly, my tilde key > >> >> >> >> doesn't work either (though the key >>>> press is detected, no > >> >> >> >> character shows when the key is pressed). >>> > >> >> >> >> >>> Any chance it is configured as a "dead" key? =C2=A0If you > >> >> >> >> press >>> tilde followed by n do you get an n with a tilde over > >> >> >> >> it? >> > >> >> >> >> >> Nope. It simply does nothing in the console. > >> >> >> >> >> > >> >> >> >> >> But in X11, it does something very odd. Shift+Tilde Key > >> >> >> >> gives me '>', >> and Tilde Key gives me '<'. And Alt+Tilde > >> >> >> >> gives me... What? I don't >> even know what action. It's > >> >> >> >> grabbing some arbitrary command in my >> .bash_history. It gave > >> >> >> >> me the first item in my .bash_history the first >> time I tried > >> >> >> >> it. Then I tried an arbitrary command ("echo"), and then >> > >> >> >> >> Alt+Tilde gave me the second command in my .bash_history. Whaa? > >> >> >> >> > >> >> >> >> Any more ideas/news on this from anyone? > >> >> >> >> > >> >> >> >> The tilde key thing is especially irritating. > >> >> >> > > >> >> >> > static uint8_t > >> >> >> > ukbd_apple_swap(uint8_t keycode) { > >> >> >> > switch (keycode) { > >> >> >> > case 0x35: return 0x64; > >> >> >> > case 0x64: return 0x35; > >> >> >> > default: return keycode; > >> >> >> > } > >> >> >> > } > >> >> >> > > >> >> >> > Can you try to change the function above in ukbd.c to only > >> >> >> > return keycode? Any difference? > >> >> >> > >> >> >> Yep, commenting the two case lines brought my tilde key back. Any > >> >> >> idea what the ukbd_apple_swap() function was _supposed_ to be > >> >> >> doing? > >> >> >> > >> >> >> Also, there's only one thing left (input-wise) that I can't get to > >> >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty > >> >> >> certain that it's not a problem with Fn+Backspace failing to map > >> >> >> to Delete, because my non-Mac i386 box has the same problem. > >> >> >> > >> >> >> Everything I read online keeps saying to muck with an .inputrc > >> >> >> file (for bash, anyway), but I haven't been able to get it to > >> >> >> work. Places I've looked have said to add this to .inputrc: > >> >> >> > >> >> >> "\e[3~": delete-char > >> >> >> > >> >> >> But this seems to have no effect (and I tried bind -f .inputrc in > >> >> >> case my INPUTRC environment variable wasn't working). Is there > >> >> >> something FreeBSD-specific I'm not seeing, or what? > >> >> >> > >> >> >> - Steven > >> >> > > >> >> > Hi Steven, > >> >> > > >> >> > Can you talk this over with Christoph and send me a patch when you > >> >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhile > >> >> > I suggest the following patch: > >> >> > > >> >> > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#47 - > >> >> > src/sys/dev/usb/input/ukbd.c ==== > >> >> > @@ -896,8 +896,7 @@ > >> >> > hid_input, 0, &sc->sc_loc_apple_fn, &flags, > >> >> > &temp_id)) { > >> >> > if (flags & HIO_VARIABLE) > >> >> > - sc->sc_flags |= UKBD_FLAG_APPLE_FN > >> >> > | - UKBD_FLAG_APPLE_SWAP; > >> >> > + sc->sc_flags |= UKBD_FLAG_APPLE_FN; > >> >> > DPRINTFN(1, "Found Apple FN-key\n"); > >> >> > apple_keys = 1; > >> >> > sc->sc_kbd_id = temp_id; > >> >> > > >> >> > > >> >> > The hardware that Christoph was using had an Eject-key, while yours > >> >> > didn't. I think the patch above will make both cases work. > >> >> > > >> >> > Christoph, do you have any comments? > >> >> > > >> >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/usb/sr > >> >> >c/sys/ dev/usb/input/ukbd.c&REV=47 > >> >> > >> >> Not quite true, my keyboard _does_ have an Eject key. The code > >> >> doesn't detect it though. > >> >> > >> >> - Steven > >> > > >> > Could you try to figure out what key-press number corresponds to the > >> > eject key? > >> > > >> > --HPS > >> > >> I'm not certain how to do so. It's somewhat of a chicken-and-the-egg > >> problem: unless it detects that the key is there, I can't find it. > >> Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is > >> pressed. > > > > It's very possible that your Eject key is in a separate interface and > > is handled by uhid(4) instead of ukbd(4). > > > > /Kai > > Enabling 'hw.usb.uhid.debug' doesn't print anything on an Eject > keypress either, but that could just mean that uhid(4) doesn't have > necessary DPRINTFs to show it. > > - Steven > You need to open /dev/uhidX before it will print anything. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 15:30:14 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B35FB106566C for ; Sun, 14 Mar 2010 15:30:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A3B858FC1A for ; Sun, 14 Mar 2010 15:30:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EFUEXG079693 for ; Sun, 14 Mar 2010 15:30:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EFUEVQ079690; Sun, 14 Mar 2010 15:30:14 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 15:30:14 GMT Message-Id: <201003141530.o2EFUEVQ079690@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Steven Noonan Cc: Subject: Re: usb/144414: Apple "Fn" key doesn't work properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steven Noonan List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 15:30:14 -0000 The following reply was made to PR usb/144414; it has been noted by GNATS. From: Steven Noonan To: Hans Petter Selasky Cc: Kai Wang , Christoph Langguth , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/144414: Apple "Fn" key doesn't work properly Date: Sun, 14 Mar 2010 07:28:16 -0800 On Sun, Mar 14, 2010 at 7:23 AM, Hans Petter Selasky wro= te: > On Sunday 14 March 2010 15:49:37 Steven Noonan wrote: >> On Sun, Mar 14, 2010 at 6:46 AM, Kai Wang wrote: >> > On Sun, Mar 14, 2010 at 06:37:04AM -0800, Steven Noonan wrote: >> >> On Sun, Mar 14, 2010 at 6:27 AM, Hans Petter Selasky > wrote: >> >> > On Sunday 14 March 2010 15:01:39 Steven Noonan wrote: >> >> >> On Sun, Mar 14, 2010 at 5:48 AM, Hans Petter Selasky >> >> >> >> >> > >> >> > wrote: >> >> >> > On Sunday 14 March 2010 14:22:33 Steven Noonan wrote: >> >> >> >> On Sun, Mar 14, 2010 at 3:01 AM, Hans Petter Selasky >> >> >> >> >> >> >> > >> >> >> > wrote: >> >> >> >> > On Sunday 14 March 2010 11:30:04 Steven Noonan wrote: >> >> >> >> >> The following reply was made to PR usb/144414; it has been >> >> >> >> >> noted by GNATS. >> >> >> >> >> >> >> >> >> >> From: Steven Noonan >> >> >> >> >> To: perryh@pluto.rain.com >> >> >> >> >> Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.or= g >> >> >> >> >> Subject: Re: usb/144414: Apple "Fn" key doesn't work properl= y >> >> >> >> >> Date: Sun, 14 Mar 2010 03:26:19 -0700 >> >> >> >> >> >> >> >> >> >> =C2=A0On Thu, Mar 4, 2010 at 12:01 AM, Steven Noonan >> >> >> >> >> wrot=3D >> >> >> >> >> >> >> >> >> >> =C2=A0e: >> >> >> >> >> =C2=A0> On Wed, Mar 3, 2010 at 11:00 PM, Steven Noonan >> >> >> >> >> > wr=3D >> >> >> >> >> >> >> >> >> >> =C2=A0ote: >> >> >> >> >> =C2=A0>> On Wed, Mar 3, 2010 at 10:36 PM, >> >> >> >> >> =3DC2=3DA0 wrote: >>> Steven Noonan >> >> >> >> >> wrote: >>>> Interestingly, my tilde = key >> >> >> >> >> doesn't work either (though the key >>>> press is detected, = no >> >> >> >> >> character shows when the key is pressed). >>> >> >> >> >> >> =C2=A0>>> Any chance it is configured as a "dead" key? =3DC2= =3DA0If you >> >> >> >> >> press >>> tilde followed by n do you get an n with a tilde o= ver >> >> >> >> >> it? >> >> >> >> >> >> =C2=A0>> Nope. It simply does nothing in the console. >> >> >> >> >> =C2=A0>> >> >> >> >> >> =C2=A0>> But in X11, it does something very odd. Shift+Tilde= Key >> >> >> >> >> gives me '>', >> and Tilde Key gives me '<'. And Alt+Tilde >> >> >> >> >> gives me... What? I don't >> even know what action. It's >> >> >> >> >> grabbing some arbitrary command in my >> .bash_history. It g= ave >> >> >> >> >> me the first item in my .bash_history the first >> time I tr= ied >> >> >> >> >> it. Then I tried an arbitrary command ("echo"), and then >> >> >> >> >> >> Alt+Tilde gave me the second command in my .bash_history. Wh= aa? >> >> >> >> >> >> >> >> >> >> =C2=A0Any more ideas/news on this from anyone? >> >> >> >> >> >> >> >> >> >> =C2=A0The tilde key thing is especially irritating. >> >> >> >> > >> >> >> >> > static uint8_t >> >> >> >> > ukbd_apple_swap(uint8_t keycode) { >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0switch (keycode) { >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x35: return 0x64; >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x64: return 0x35; >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0default: return keycode; >> >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> >> >> >> > } >> >> >> >> > >> >> >> >> > Can you try to change the function above in ukbd.c to only >> >> >> >> > return keycode? Any difference? >> >> >> >> >> >> >> >> Yep, commenting the two case lines brought my tilde key back. A= ny >> >> >> >> idea what the ukbd_apple_swap() function was _supposed_ to be >> >> >> >> doing? >> >> >> >> >> >> >> >> Also, there's only one thing left (input-wise) that I can't get= to >> >> >> >> work, and that's the 'delete' key (Fn+Backspace). I'm pretty >> >> >> >> certain that it's not a problem with Fn+Backspace failing to ma= p >> >> >> >> to Delete, because my non-Mac i386 box has the same problem. >> >> >> >> >> >> >> >> Everything I read online keeps saying to muck with an .inputrc >> >> >> >> file (for bash, anyway), but I haven't been able to get it to >> >> >> >> work. Places I've looked have said to add this to .inputrc: >> >> >> >> >> >> >> >> "\e[3~": delete-char >> >> >> >> >> >> >> >> But this seems to have no effect (and I tried bind -f .inputrc = in >> >> >> >> case my INPUTRC environment variable wasn't working). Is there >> >> >> >> something FreeBSD-specific I'm not seeing, or what? >> >> >> >> >> >> >> >> - Steven >> >> >> > >> >> >> > Hi Steven, >> >> >> > >> >> >> > Can you talk this over with Christoph and send me a patch when y= ou >> >> >> > agreed? He's the one that made the Apple-SWAP key patch. Meanwhi= le >> >> >> > I suggest the following patch: >> >> >> > >> >> >> > =3D=3D=3D=3D //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#4= 7 - >> >> >> > src/sys/dev/usb/input/ukbd.c =3D=3D=3D=3D >> >> >> > @@ -896,8 +896,7 @@ >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0hid_input, 0, &sc->sc_loc_apple_fn, &flags, >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0&temp_id)) { >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0if (flags & HIO_VARIABLE) >> >> >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPL= E_FN >> >> >> > | - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UKBD_FLAG_APPLE= _SWAP; >> >> >> > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc->sc_flags |=3D UKBD_FLAG_APPL= E_FN; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0DPRINTFN(1, "Found Apple FN-key\n"); >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0apple_keys =3D 1; >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0sc->sc_kbd_id =3D temp_id; >> >> >> > >> >> >> > >> >> >> > The hardware that Christoph was using had an Eject-key, while yo= urs >> >> >> > didn't. I think the patch above will make both cases work. >> >> >> > >> >> >> > Christoph, do you have any comments? >> >> >> > >> >> >> > http://p4db.freebsd.org/fileViewer.cgi?FSPC=3D//depot/projects/u= sb/sr >> >> >> >c/sys/ dev/usb/input/ukbd.c&REV=3D47 >> >> >> >> >> >> Not quite true, my keyboard _does_ have an Eject key. The code >> >> >> doesn't detect it though. >> >> >> >> >> >> - Steven >> >> > >> >> > Could you try to figure out what key-press number corresponds to th= e >> >> > eject key? >> >> > >> >> > --HPS >> >> >> >> I'm not certain how to do so. It's somewhat of a chicken-and-the-egg >> >> problem: unless it detects that the key is there, I can't find it. >> >> Enabling 'hw.usb.ukbd.debug' doesn't print anything when Eject is >> >> pressed. >> > >> > It's very possible that your Eject key is in a separate interface and >> > is handled by uhid(4) instead of ukbd(4). >> > >> > /Kai >> >> Enabling 'hw.usb.uhid.debug' doesn't print anything on an Eject >> keypress either, but that could just mean that uhid(4) doesn't have >> necessary DPRINTFs to show it. >> >> - Steven >> > > You need to open /dev/uhidX before it will print anything. > > --HPS > Aha. Doing 'cat /dev/uhid0 > /dev/null' and then hitting eject yielded: "uhid_intr_callback: transferred!" in dmesg. - Steven From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 18:06:02 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 E8A3C1065670 for ; Sun, 14 Mar 2010 18:06:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swipnet.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 79FAF8FC1A for ; Sun, 14 Mar 2010 18:06:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=9ALIAnF3tIEA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=lrbennl7yIj99K5BocQA:9 a=rsR0ihuV2iCJjgUAcPGNvLicfVgA:4 a=QEXdDO2ut3YA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 991848066; Sun, 14 Mar 2010 19:06:00 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 14 Mar 2010 19:04:15 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <4B9CF518.1020706@gmail.com> In-Reply-To: <4B9CF518.1020706@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003141904.15907.hselasky@c2i.net> Cc: Andrey Kosachenko Subject: Re: [current] could not attach n900 (mass storage mode) at high speed 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, 14 Mar 2010 18:06:03 -0000 On Sunday 14 March 2010 15:39:20 Andrey Kosachenko wrote: > Hi, > > There is a laptop carrying FreeBSD (9.0-current, built from fresh sources). > Device (Nokia N900) is attached via USB interface. However the speed of > data transfer is too low (~1.0 MB/s). I tried to attached it to Linux > box and data was transferred at full speed (~ 25 MB/s) > > Some relevant info (please, let me know if it's not sufficient): > > uhci/ehci are compiled in. > The port speed is decided by the EHCI Host Controller. You maybe want to enable HUB debugging messages: sysctl hw.usb.uhub.debug=15 sysctl hw.usb.ehci.debug=8 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 20:31:27 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 DBACC1065672 for ; Sun, 14 Mar 2010 20:31:27 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from eterpe-smout.broadpark.no (eterpe-smout.broadpark.no [80.202.8.16]) by mx1.freebsd.org (Postfix) with ESMTP id 973888FC17 for ; Sun, 14 Mar 2010 20:31:27 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ignis-smin.broadpark.no ([unknown] [80.202.8.11]) by eterpe-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTP id <0KZA0078WGZDO8A0@eterpe-smout.broadpark.no> for freebsd-usb@FreeBSD.org; Sun, 14 Mar 2010 21:30:49 +0100 (CET) Received: from kg-v2.kg4.no ([unknown] [80.203.92.186]) by ignis-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with SMTP id <0KZA000MMGZD36B1@ignis-smin.broadpark.no> for freebsd-usb@FreeBSD.org; Sun, 14 Mar 2010 21:30:49 +0100 (CET) Date: Sun, 14 Mar 2010 21:30:49 +0100 From: Torfinn Ingolfsen To: freebsd-usb@FreeBSD.org Message-id: <20100314213049.89b0bf2f.torfinn.ingolfsen@broadpark.no> In-reply-to: <4b9c4489./UfK+ON+Pg58oJ8B%perryh@pluto.rain.com> References: <20100313180706.0aeaab9f.torfinn.ingolfsen@broadpark.no> <4b9c4489./UfK+ON+Pg58oJ8B%perryh@pluto.rain.com> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.7; amd64-portbld-freebsd8.0) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Cc: Subject: Re: usb to ps/2 adapter works in one machine, but not another? 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, 14 Mar 2010 20:31:27 -0000 On Sat, 13 Mar 2010 18:06:01 -0800 perryh@pluto.rain.com wrote: > There may be a simpler solution. The systems I've seen with only > one ps/2 jack had both the keyboard and the mouse signals wired to > the single jack. (Quick test: if it is wired this way it will work > with either a keyboard or a mouse.) If that's how yours is set up > you can get a Y adapter with one ps/2 plug and two ps/2 jacks, and > not need to deal with USB keyboard or mouse support at all. True. I should have mentioned this option. Why haven't I just bought such an adapter and be done with it? Well, for some reason, these adapters (whether you call them "PS/2 splitters" or "PS/2 Y cable") are not easy to get hold of. None of my "local" computer shops have them, and I wasn't able to find any on Dealextreme either. If I do find a shop that have them listed, its not in stock, and they charge a small fortune for them. In contrast, usb to ps/2 adapters are almost everywhere. -- Regards, Torfinn Ingolfsen From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 21:02:06 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 BB10C106566B for ; Sun, 14 Mar 2010 21:02:06 +0000 (UTC) (envelope-from maillist@diode.be) Received: from out2.stone-is.org (out2.stone-is.org [87.238.161.122]) by mx1.freebsd.org (Postfix) with ESMTP id 744E38FC0C for ; Sun, 14 Mar 2010 21:02:06 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by out2.stone-is.org (Postfix) with ESMTP id 14141D40076 for ; Sun, 14 Mar 2010 20:35:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at out2.stone-is.org Received: from out2.stone-is.org ([127.0.0.1]) by localhost (out2.stone-is.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27tycFWe3nOe for ; Sun, 14 Mar 2010 21:35:32 +0100 (CET) Received: from be11.1-eurohost.com (vz02.stone-is.net [87.238.162.138]) by out2.stone-is.org (Postfix) with ESMTP id 3902DF981B8 for ; Sun, 14 Mar 2010 21:35:32 +0100 (CET) Received: (qmail 31982 invoked by uid 48); 14 Mar 2010 21:42:32 +0100 Received: from 5355025E.cable.casema.nl (5355025E.cable.casema.nl [83.85.2.94]) by webmail.diode.be (Horde MIME library) with HTTP; Sun, 14 Mar 2010 21:42:32 +0100 Message-ID: <20100314214232.s4u9l2ylsskgck8k@webmail.diode.be> Date: Sun, 14 Mar 2010 21:42:32 +0100 From: maillist@diode.be To: freebsd-usb@freebsd.org References: <20100313180706.0aeaab9f.torfinn.ingolfsen@broadpark.no> <4b9c4489./UfK+ON+Pg58oJ8B%perryh@pluto.rain.com> <20100314213049.89b0bf2f.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20100314213049.89b0bf2f.torfinn.ingolfsen@broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Subject: Re: usb to ps/2 adapter works in one machine, but not another? 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, 14 Mar 2010 21:02:06 -0000 While this still doesn't solve your original problem, PS2 splitters =20 appear to be listed on eBay. Searching for "PS2 splitter" gives =20 splitters for 1 to 5 euros, in countries in Europe and Asia. You may =20 find one with low shipping costs. Regards, Tiemen Quoting Torfinn Ingolfsen : > On Sat, 13 Mar 2010 18:06:01 -0800 > perryh@pluto.rain.com wrote: > >> There may be a simpler solution. The systems I've seen with only >> one ps/2 jack had both the keyboard and the mouse signals wired to >> the single jack. (Quick test: if it is wired this way it will work >> with either a keyboard or a mouse.) If that's how yours is set up >> you can get a Y adapter with one ps/2 plug and two ps/2 jacks, and >> not need to deal with USB keyboard or mouse support at all. > > True. I should have mentioned this option. Why haven't I just bought > such an adapter and be done with it? > Well, for some reason, these adapters (whether you call them "PS/2 > splitters" or "PS/2 Y cable") are not easy to get hold of. None of my > "local" computer shops have them, and I wasn't able to find any on > Dealextreme either. If I do find a shop that have them listed, its not > in stock, and they charge a small fortune for them. > In contrast, usb to ps/2 adapters are almost everywhere. > -- > Regards, > Torfinn Ingolfsen > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 00:00:20 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E3D0106564A for ; Mon, 15 Mar 2010 00:00:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DE6D58FC16 for ; Mon, 15 Mar 2010 00:00:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2F00JoF016714 for ; Mon, 15 Mar 2010 00:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2F00JTW016713; Mon, 15 Mar 2010 00:00:19 GMT (envelope-from gnats) Resent-Date: Mon, 15 Mar 2010 00:00:19 GMT Resent-Message-Id: <201003150000.o2F00JTW016713@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Best Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E0D21065670 for ; Sun, 14 Mar 2010 23:54:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 7CB338FC17 for ; Sun, 14 Mar 2010 23:54:09 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2ENs9ol080901 for ; Sun, 14 Mar 2010 23:54:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o2ENs9Pq080899; Sun, 14 Mar 2010 23:54:09 GMT (envelope-from nobody) Message-Id: <201003142354.o2ENs9Pq080899@www.freebsd.org> Date: Sun, 14 Mar 2010 23:54:09 GMT From: Alexander Best To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/144751: [ukbd] [usb8] kernel without keyboard support won't compile 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: Mon, 15 Mar 2010 00:00:20 -0000 >Number: 144751 >Category: usb >Synopsis: [ukbd] [usb8] kernel without keyboard support won't compile >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 15 00:00:19 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Alexander Best >Release: 9.0-CURRENT >Organization: >Environment: FreeBSD otaku 9.0-CURRENT FreeBSD 9.0-CURRENT #8 r205019M: Thu Mar 11 21:03:33 CET 2010 root@otaku:/usr/obj/usr/src/sys/ARUNDEL amd64 >Description: trying to compile a kernel with no usb keyboard support results in the following error during kernel compilation: cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector vnode_if.c :> hack.c cc -shared -nostdlib hack.c -o hack.So rm -f hack.c MAKE=make sh /usr/src/sys/conf/newvers.sh ARUNDEL cc -c -O0 -pipe -fno-builtin -march=native -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector vers.c linking kernel kbd.o(.text+0x59b): In function `kbd_register': : undefined reference to `__start_set_kbddriver_set' kbd.o(.text+0x686): In function `kbd_register': : undefined reference to `__stop_set_kbddriver_set' kbd.o(.text+0x842): In function `kbd_get_switch': : undefined reference to `__start_set_kbddriver_set' kbd.o(.text+0x87f): In function `kbd_get_switch': : undefined reference to `__stop_set_kbddriver_set' kbd.o(.text+0xdf8): In function `kbd_configure': : undefined reference to `__start_set_kbddriver_set' kbd.o(.text+0xe2c): In function `kbd_configure': : undefined reference to `__stop_set_kbddriver_set' *** Error code 1 Stop in /usr/obj/usr/src/sys/ARUNDEL. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. cheers. alex >How-To-Repeat: use the attached kernel conf to compile a new kernel. >Fix: since the atkbd driver cannot be compiled as a kernel module it's obvious that having no keyboard defined in the kernel conf should make the kernel rely on the ukbd module. if however the use of the ukb driver as module is unsupported this problem report should be considered a change request to the ukbd(4) manual to reflect the mandatory definition of ukbd in the kernel conf. Patch attached with submission follows: # debugger/ktrace/kernel.debug options KDB # Compile with kernel debugger related code. options DDB # Enable the ddb debugger backend. options KTRACE # ktrace(1) support makeoptions DEBUG="-g" # Build kernel with gdb(1) debug symbols # various debugging options #options KDB_TRACE # Print a stack trace of the current thread on the console for a panic. #options PREEMPTION # Allows the threads that are in the kernel to be preempted by higher priority [interrupt] threads. #options IPI_PREEMPTION # Instructs the kernel to preempt threads running on other CPUS if needed. Relies on the PREEMPTION option. #options BREAK_TO_DEBUGGER # A BREAK on a serial console goes to ddb, if available. #options INVARIANTS #options INVARIANT_SUPPORT #options WITNESS #options DEBUG_LOCKS #options DEBUG_VFS_LOCKS #options DIAGNOSTIC #options SW_WATCHDOG #options SOCKBUF_DEBUG #options DEBUG_MEMGUARD #options DEBUG_REDZONE #options STACK options DEADLKRES # Add the software deadlock resolver thread. cpu HAMMER ident ARUNDEL #options SCHED_ULE # ULE scheduler options SCHED_4BSD # 4BSD scheduler options INET # InterNETworking options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options LIBICONV # Kernel side iconv library options CD9660 # ISO 9660 filesystem options CD9660_ICONV options MSDOSFS # MS DOS File System (FAT, FAT32) options MSDOSFS_ICONV options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_DIRHASH # Improve performance on big directories options COMPAT_FREEBSD32 # Compatible with i386 binaries #options COMPAT_LINUX # Enable Linux ABI emulation #options COMPAT_FREEBSD7 #options LINPROCFS # Enable the linux-like proc filesystem support #options LINSYSFS # Enable the linux-like sys filesystem support options SC_HISTORY_SIZE=1000 # number of history buffer lines options MSGBUF_SIZE=65536 # Size of the kernel message buffer. Should be N * pagesize. options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options P1003_1B_SEMAPHORES # POSIX semaphores options P1003_1B_MQUEUE # POSIX message queue options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions #options KBD_INSTALL_CDEV # install a CDEV entry in /dev #options UKBD_DFLT_KEYMAP # specify the built-in keymap #makeoptions UKBD_DFLT_KEYMAP="german.iso" options SMP # Symmetric MultiProcessor Kernel options PRINTF_BUFR_SIZE=128 #device apic # I/O APIC #devices #device eisa device pci device acpi device atacore device ahci device atajmicron #device ataintel device atapci #device atadisk device atapicd #options ATA_STATIC_ID device vga device sc #usb device usb device uhci device ehci #device ukbd device ulpt #device ums #device uhid option USB_VERBOSE #network device wlan device ath device ath_hal options AH_SUPPORT_AR5416 device ath_rate_sample device wlan_wep device wlan_ccmp device wlan_tkip device bpf #options IEEE80211_DEBUG #options ATH_DEBUG #options ALTQ #options ALTQ_CBQ # Class Bases Queuing (CBQ) #options ALTQ_RED # Random Early Detection (RED) #options ALTQ_RIO # RED In/Out #options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) #options ALTQ_PRIQ # Priority Queuing (PRIQ) #options ALTQ_NOPCC # Wird von SMP benötigt #cpu device cpufreq device coretemp #pseudo devices device loop device ether device pty device md #misc #device ppc #device ppbus #device ppi device umass device scbus device cd device pass device da #device atapicam device sound device snd_hda device random #options DIRECTIO #GEOM options GEOM_LABEL options GEOM_PART_GPT #options GEOM_PART_MBR #device iicbus #device iic # VESA stuff #options VESA #options VGA_WIDTH90 #options SC_PIXEL_MODE # ATA to CAM options ATA_CAM #options CAMDEBUG #options CAM_DEBUG_BUS=2 #options CAM_DEBUG_TARGET=1 #options CAM_DEBUG_LUN=0 #options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_TRACE|CAM_DEBUG_CDB) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 09:26:42 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 C3FD01065670 for ; Mon, 15 Mar 2010 09:26:42 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 7A10C8FC1E for ; Mon, 15 Mar 2010 09:26:42 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Nr6ZL-0008IF-Dw; Mon, 15 Mar 2010 10:26:39 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o2F9Qh4C002631; Mon, 15 Mar 2010 10:26:43 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o2F9QhNq002630; Mon, 15 Mar 2010 10:26:43 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Mon, 15 Mar 2010 10:26:43 +0100 From: Matthias Apitz To: Andrey Kosachenko Message-ID: <20100315092643.GA2558@current.Sisis.de> References: <4B9CF518.1020706@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4B9CF518.1020706@gmail.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Cc: freebsd-usb@freebsd.org Subject: Re: [current] could not attach n900 (mass storage mode) at high speed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2010 09:26:42 -0000 El día Sunday, March 14, 2010 a las 04:39:20PM +0200, Andrey Kosachenko escribió: > Hi, > > There is a laptop carrying FreeBSD (9.0-current, built from fresh sources). > Device (Nokia N900) is attached via USB interface. However the speed of > data transfer is too low (~1.0 MB/s). I tried to attached it to Linux > box and data was transferred at full speed (~ 25 MB/s) .... Hello Andrey, Maybe a bit off-topic and we should move the conversation to private... May I ask you some question about the N900? I'm using the Openmoko Freerunner, a real open mobile phone running a Linux as well and if you SSH to the mobile you will see it as a normal Linux server with a X11 display and all such things. What about the N900? Perhaps the sources are not available (as they are for the Freerunner), but despite of this: is this as well a normal UNIX server inside? SSH, bash, X11, you can write your own apps in Python, ...? I'm asking because my Freerunner will die in the future and the company went away already from the market, is the N900 a replacement for this in the future? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Solidarity with the imperialistic Israel? Not in my name! ¿Solidaridad con el imperialismo de Israel? ¡No en mi nombre! From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 11:07:24 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 D8CC5106566B for ; Mon, 15 Mar 2010 11:07:24 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5D308FC0A for ; Mon, 15 Mar 2010 11:07:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2FB7Ov7027026 for ; Mon, 15 Mar 2010 11:07:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2FB7N2F027024 for freebsd-usb@FreeBSD.org; Mon, 15 Mar 2010 11:07:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Mar 2010 11:07:24 GMT Message-Id: <201003151107.o2FB7N2F027024@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org 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: Mon, 15 Mar 2010 11:07:24 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/144751 usb [ukbd] [usb8] kernel without keyboard support won't co o usb/144423 usb if_run panic with USB-N13 o usb/144414 usb Apple "Fn" key doesn't work properly o usb/144387 usb if_run panic o usb/144332 usb Kernel compile fails when aue is enabled but not other o usb/144201 usb AlphaSmart Dana usbdevs and uvisor update o usb/144199 usb uvisor(4) - AlphaSmart Dana incorrect stall clearing o usb/144043 usb [umass] USB DLT tape drive throws random errors o usb/143790 usb [boot] can not boot from usb hdd f usb/143634 usb [umass] [usb8] Jetflash USB flash stick fails to mount f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op o usb/143448 usb [usbdevs] [usb8] [patch] QUIRK: JMicron JM20336 USB/SA f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system f usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P o usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR a usb/141467 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141313 usb [usb8] nvidia USB 2.0 controller - stops copying on US o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb] Encrypted root, geli password at boot; enter key o usb/140928 usb [u3g] [usb8] [patch] ZTE CDMA2000 1X EV-DO (MG478/AC87 o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b f usb/140883 usb [axe] [usb8] USB gigabit ethernet hangs after short pe o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o kern/140614 usb [uplcom] [patch] adding support for Radio Shack Gigwar o usb/140590 usb [bluetooth] [usb8] ng_ubt(4) ng_l2cap_process_cmd_rej o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140259 usb [libusb] [patch] [usb8] libusb-1.0 portability/compati o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor o usb/138915 usb [patch] [usb8] [usb67] add support for SheevaPlug seri a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t a usb/138879 usb [uftdi] [patch] Patch to add support for CTI USB-Mini o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138570 usb [usb] [panic] USB mass device panics current 7.2-STABL o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138172 usb [u3g] [patch] [usb67] Additional dev id for u3g (Optio o usb/138138 usb [u3g] [patch] [usb67] Novatel U760 for u3g (Verizon an o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no o usb/137616 usb [usb67][usb8][usbdevs] [patch]: usbdevs update: Please o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors f bin/137180 usb [build] [patch] building world for 8.0-BETA2 fails on o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135575 usb [usbdevs] [patch] [usb67] Add HTC Wizard phone vid/pid o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134633 usb Add support for WILLCOM03(SHARP smart phone) o usb/134631 usb [usbdevs] [patch] WiSPY DBx support requires usb tweak o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb [hang] Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] [rum] Kernel panic after NOMEM caused by o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c o usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup p usb/127549 usb [umass] [usb67] [patch] Meizu MiniPlayer M6 (SL) requi f usb/127543 usb [patch] [ubsa] Support Option Globetrotter HSDPA modem s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should p docs/127406 usb [patch] update umodem man page: Sony Ericsson W810i o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/127222 usb [ohci] Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [new driver] [patch] New driver for Sierra Wireless 3G o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated s usb/108344 usb [usb67] [atausb] [panic] kernel with atausb panics whe o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/107243 usb [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive q o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/101775 usb [usb67] [usb8] [libusbhid] [patch] possible error in r o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 346 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 17:39:16 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 AF4151065676 for ; Mon, 15 Mar 2010 17:39:16 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 41CF68FC1A for ; Mon, 15 Mar 2010 17:39:15 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 25so217289eya.9 for ; Mon, 15 Mar 2010 10:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=2hqUMlYNXeotfyAESDqIC3S2xDP4VJznABZ4atNQbP4=; b=E+XzKZez3fkhR7Vd3iw/2vbGwTmPIKauySdu4dWNbi2otrwMY15GMVijdDw4rOZ9EN nz1xfeGbM1BI/Wd7hfPS2BDBwhWYiADya4Fufd2swgXHkAPlPilnn9TVucMANmPt1cFU mByjfTtqVBx2ocafKkKcBImf42mipWAD1cQvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FK8zjTiUR93KbNm38U9GmPpOvPgp6akuKrO8HQlDD3QQpPJl8F9tyTDewd+fvLECd3 XMIvICwZwdf0VWYU7e/ObKJ2vC+a5eVWwn8alHb13qHqSMeWKLHnMcqBl0S89Xj3CKem 6+QSUKi1DwlJy92pEh9NvhOuXkehq7xcju2zo= MIME-Version: 1.0 Received: by 10.213.97.80 with SMTP id k16mr4982856ebn.1.1268674755003; Mon, 15 Mar 2010 10:39:15 -0700 (PDT) In-Reply-To: References: <201003131343.48106.hselasky@c2i.net> From: Paul B Mahol Date: Sat, 13 Mar 2010 14:29:11 +0000 Message-ID: <3a142e751003130629j39fe35a5o8fdaa5eb15b059a9@mail.gmail.com> To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: PS3's Joystick on FreeBSD (can be possible?) 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: Mon, 15 Mar 2010 17:39:16 -0000 On Sat, Mar 13, 2010 at 1:56 PM, Alexander Best wrote: > Hans Petter Selasky schrieb am 2010-03-13: >> On Saturday 13 March 2010 13:21:10 Paul B Mahol wrote: >> > On 3/13/10, Alexander Best wrote: >> > > Paul B Mahol schrieb am 2010-03-13: >> > >> On 3/13/10, Alexander Best wrote: >> > >> > i'm sorry to hijack this thread, but i've been having similar >> > >> > issues as >> > >> > Vinicius with his PS3 controller with my logitech cordless >> > >> > gamepad. >> > >> > this is >> > >> > the attach message: > >> > >> > ugen3.3: at usbus3 >> > >> > uhid0: > > >> > 1.10/2.00, >> > >> > addr >> > >> > 3> on usbus3 > >> > >> > the output of `usbhidctl -f /dev/uhid0 -r` is: > >> > >> > Report descriptor: >> > >> > Collection page=3DGeneric_Desktop usage=3DGame_Pad >> > >> > Total =A0 input size 0 bytes >> > >> > Total =A0output size 0 bytes >> > >> > Total feature size 0 bytes > >> > >> > if i do `hd /dev/uhid0` is see output like this when pressing >> > >> > buttons on the >> > >> > gamepad: > >> > >> > 00000000 =A001 78 72 88 69 08 00 01 =A001 80 7f 7f 80 18 00 00 > >> > >> > |.xr.i...........| > >> > >> > 00000010 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 00 00 > >> > >> > |................| > >> > >> > 00000020 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 28 00 00 > >> > >> > |.............(..| > >> > >> > 00000030 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 48 00 00 > >> > >> > |.............H..| > >> > >> > 00000040 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 88 00 00 > >> > >> > |................| > >> > >> > 00000050 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 01 00 > >> > >> > |................| > >> > >> > 00000060 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 02 00 > >> > >> > |................| > >> > >> > 00000070 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 04 00 > >> > >> > |................| > >> > >> > 00000080 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 08 00 > >> > >> > |................| > >> > >> > 00000090 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 10 00 > >> > >> > |................| > >> > >> > 000000a0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 20 00 > >> > >> > |.............. > >> > >> > .| >> > >> > 000000b0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 04 00 00 > >> > >> > |................| > >> > >> > 000000c0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 06 00 00 > >> > >> > |................| > >> > >> > 000000d0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 00 00 00 > >> > >> > |................| > >> > >> > 000000e0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 02 00 00 > >> > >> > |................| > >> > >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a >> > >> > "mode" >> > >> > button >> > >> > and >> > >> > a "vibration" button. > >> > >> There was/is ujoy in development but that is all. > >> > > thanks for the hint. i mailed the developer a year or so ago due >> > > to his >> > > post on the freebsd-drivers@ mailinglist [1], but he told >> > > development of >> > > the ujoy driver had ceased. i checked the site mentioned in his >> > > post and >> > > the ujoy driver from back then is also no longer available. > >> > > so there is no way of xorg or hal working directly with uhid >> > > devices >> > > then? > >> > There is xf86-input-joystick, but I dunno about its usability. > > >> Also look here: > >> http://wiki.freebsd.org/uhidd > > thanks for the hint. i'm about to try it out. however i'm having difficul= ties > recompiling my kernel without ukbd (which is required for using uhidd): You can build all usb stuff as module. It only eats little more disk space = ... From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 17:44:50 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 E0192106566B for ; Mon, 15 Mar 2010 17:44:50 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by mx1.freebsd.org (Postfix) with ESMTP id 61BBE8FC16 for ; Mon, 15 Mar 2010 17:44:49 +0000 (UTC) Received: by ewy27 with SMTP id 27so2228637ewy.34 for ; Mon, 15 Mar 2010 10:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=pGPLCwkqs3AHFLkDdP/mt54GGi9n+70sWev868/sdaA=; b=AD72riQMoRStqTpK/IWCkNmPPR0bEvcQWSj74sMxvflOzgtcCrBqrtcPucD5S7ayGv Iwul/22d94+aaYYLgyVGedOqYIR6rQvM/6AA3lFxUm6aZErhMViBiXa0lFzY/nx/qqZn rhPOcpxGpqWaP8va65p3NOdcoOSWU4GQFlobM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=veqMHEewnUh4SrPTyVzCMcUlnuTe2Mzu5ZlFTfi31vcq48xydvwfYFK1NWhYSSjqPp X/lSNtsPnT4e99EosKLXg+7oaA+0YWtUk6FaCkxuiK5J3CElnyimlmVpnaJwUGZpDzi8 eN8DnlOUGUOluRZ+lC1wuJ5xBhQN/E1GC3INU= Received: by 10.213.96.212 with SMTP id i20mr1192178ebn.35.1268493102681; Sat, 13 Mar 2010 07:11:42 -0800 (PST) Received: from localhost (81-233-38-26-no36.tbcn.telia.com [81.233.38.26]) by mx.google.com with ESMTPS id 14sm1613511ewy.2.2010.03.13.07.11.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 13 Mar 2010 07:11:41 -0800 (PST) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1NqT08-0000ir-5a; Sat, 13 Mar 2010 16:11:40 +0100 Received: (from kaiw@localhost) by localhost.my.domain (8.14.3/8.14.3/Submit) id o2DFBdO6002780; Sat, 13 Mar 2010 16:11:39 +0100 (CET) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaiw set sender to kaiwang27@gmail.com using -f Date: Sat, 13 Mar 2010 16:11:39 +0100 From: Kai Wang To: Alexander Best Message-ID: <20100313151139.GA2634@viskning> References: <201003131343.48106.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-usb@freebsd.org Subject: Re: PS3's Joystick on FreeBSD (can be possible?) 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: Mon, 15 Mar 2010 17:44:51 -0000 On Sat, Mar 13, 2010 at 02:56:21PM +0100, Alexander Best wrote: > Hans Petter Selasky schrieb am 2010-03-13: > > On Saturday 13 March 2010 13:21:10 Paul B Mahol wrote: > > > On 3/13/10, Alexander Best wrote: > > > > Paul B Mahol schrieb am 2010-03-13: > > > >> On 3/13/10, Alexander Best wrote: > > > >> > i'm sorry to hijack this thread, but i've been having similar > > > >> > issues as > > > >> > Vinicius with his PS3 controller with my logitech cordless > > > >> > gamepad. > > > >> > this is > > > >> > the attach message: > > > > >> > ugen3.3: at usbus3 > > > >> > uhid0: > > >> > 1.10/2.00, > > > >> > addr > > > >> > 3> on usbus3 > > > > >> > the output of `usbhidctl -f /dev/uhid0 -r` is: > > > > >> > Report descriptor: > > > >> > Collection page=Generic_Desktop usage=Game_Pad > > > >> > Total input size 0 bytes > > > >> > Total output size 0 bytes > > > >> > Total feature size 0 bytes > > > > >> > if i do `hd /dev/uhid0` is see output like this when pressing > > > >> > buttons on the > > > >> > gamepad: > > > > >> > 00000000 01 78 72 88 69 08 00 01 01 80 7f 7f 80 18 00 00 > > > > >> > |.xr.i...........| > > > > >> > 00000010 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 00 00 > > > > >> > |................| > > > > >> > 00000020 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 28 00 00 > > > > >> > |.............(..| > > > > >> > 00000030 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 48 00 00 > > > > >> > |.............H..| > > > > >> > 00000040 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 88 00 00 > > > > >> > |................| > > > > >> > 00000050 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 01 00 > > > > >> > |................| > > > > >> > 00000060 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 02 00 > > > > >> > |................| > > > > >> > 00000070 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 04 00 > > > > >> > |................| > > > > >> > 00000080 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 08 00 > > > > >> > |................| > > > > >> > 00000090 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 10 00 > > > > >> > |................| > > > > >> > 000000a0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 08 20 00 > > > > >> > |.............. > > > > >> > .| > > > >> > 000000b0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 04 00 00 > > > > >> > |................| > > > > >> > 000000c0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 06 00 00 > > > > >> > |................| > > > > >> > 000000d0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 00 00 00 > > > > >> > |................| > > > > >> > 000000e0 01 80 7f 7f 80 08 00 00 01 80 7f 7f 80 02 00 00 > > > > >> > |................| > > > > >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a > > > >> > "mode" > > > >> > button > > > >> > and > > > >> > a "vibration" button. > > > > >> There was/is ujoy in development but that is all. > > > > > thanks for the hint. i mailed the developer a year or so ago due > > > > to his > > > > post on the freebsd-drivers@ mailinglist [1], but he told > > > > development of > > > > the ujoy driver had ceased. i checked the site mentioned in his > > > > post and > > > > the ujoy driver from back then is also no longer available. > > > > > so there is no way of xorg or hal working directly with uhid > > > > devices > > > > then? > > > > There is xf86-input-joystick, but I dunno about its usability. > > > > Also look here: > > > http://wiki.freebsd.org/uhidd > > thanks for the hint. i'm about to try it out. however i'm having difficulties > recompiling my kernel without ukbd (which is required for using uhidd): You don't need to remove ukbd from kernel unless you want to use uhidd's own keyboard "driver". Since it's a gamepad, you only need to compile the kernel without uhid(4) and start uhidd with "uhidd -hs /dev/ugen.X.Y". Then you can try something like "usbhidctl -f /dev/uvhid0"... However, uhidd doesn't have specific joystick/gamepad support at the moment. The only benefit of using uhidd on joystick/gamepad is: 1) split multiple joysticks using one endpoint (for converters, very rare). 2) strip the report id byte so usbhidctl and the userland usbhid(3) parser can support the device. Cheers, Kai From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 22:08:43 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 87EA4106566B for ; Mon, 15 Mar 2010 22:08:43 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-relay3.uni-muenster.de (ZIVM-RELAY3.UNI-MUENSTER.DE [128.176.192.19]) by mx1.freebsd.org (Postfix) with ESMTP id 133B88FC0C for ; Mon, 15 Mar 2010 22:08:42 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.49,645,1262559600"; d="scan'208";a="28493828" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER04.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay3.uni-muenster.de with ESMTP; 15 Mar 2010 23:08:41 +0100 Received: by ZIVMAILUSER04.UNI-MUENSTER.DE (Postfix, from userid 149459) id 259521B07C1; Mon, 15 Mar 2010 23:08:41 +0100 (CET) Date: Mon, 15 Mar 2010 23:08:40 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Paul B Mahol Message-ID: In-Reply-To: <3a142e751003130629j39fe35a5o8fdaa5eb15b059a9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: PS3's Joystick on FreeBSD (can be possible?) 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: Mon, 15 Mar 2010 22:08:43 -0000 Paul B Mahol schrieb am 2010-03-13: > On Sat, Mar 13, 2010 at 1:56 PM, Alexander Best > wrote: > > Hans Petter Selasky schrieb am 2010-03-13: > >> On Saturday 13 March 2010 13:21:10 Paul B Mahol wrote: > >> > On 3/13/10, Alexander Best wrote: > >> > > Paul B Mahol schrieb am 2010-03-13: > >> > >> On 3/13/10, Alexander Best wrote: > >> > >> > i'm sorry to hijack this thread, but i've been having > >> > >> > similar > >> > >> > issues as > >> > >> > Vinicius with his PS3 controller with my logitech cordless > >> > >> > gamepad. > >> > >> > this is > >> > >> > the attach message: > >> > >> > ugen3.3: at usbus3 > >> > >> > uhid0: >> > >> > rev > >> > >> > 1.10/2.00, > >> > >> > addr > >> > >> > 3> on usbus3 > >> > >> > the output of `usbhidctl -f /dev/uhid0 -r` is: > >> > >> > Report descriptor: > >> > >> > Collection page=3DGeneric_Desktop usage=3DGame_Pad > >> > >> > Total =A0 input size 0 bytes > >> > >> > Total =A0output size 0 bytes > >> > >> > Total feature size 0 bytes > >> > >> > if i do `hd /dev/uhid0` is see output like this when > >> > >> > pressing > >> > >> > buttons on the > >> > >> > gamepad: > >> > >> > 00000000 =A001 78 72 88 69 08 00 01 =A001 80 7f 7f 80 18 00 00 > >> > >> > |.xr.i...........| > >> > >> > 00000010 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 00 00 > >> > >> > |................| > >> > >> > 00000020 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 28 00 00 > >> > >> > |.............(..| > >> > >> > 00000030 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 48 00 00 > >> > >> > |.............H..| > >> > >> > 00000040 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 88 00 00 > >> > >> > |................| > >> > >> > 00000050 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 01 00 > >> > >> > |................| > >> > >> > 00000060 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 02 00 > >> > >> > |................| > >> > >> > 00000070 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 04 00 > >> > >> > |................| > >> > >> > 00000080 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 08 00 > >> > >> > |................| > >> > >> > 00000090 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 10 00 > >> > >> > |................| > >> > >> > 000000a0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 20 00 > >> > >> > |.............. > >> > >> > .| > >> > >> > 000000b0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 04 00 00 > >> > >> > |................| > >> > >> > 000000c0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 06 00 00 > >> > >> > |................| > >> > >> > 000000d0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 00 00 00 > >> > >> > |................| > >> > >> > 000000e0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 02 00 00 > >> > >> > |................| > >> > >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a > >> > >> > "mode" > >> > >> > button > >> > >> > and > >> > >> > a "vibration" button. > >> > >> There was/is ujoy in development but that is all. > >> > > thanks for the hint. i mailed the developer a year or so ago > >> > > due > >> > > to his > >> > > post on the freebsd-drivers@ mailinglist [1], but he told > >> > > development of > >> > > the ujoy driver had ceased. i checked the site mentioned in > >> > > his > >> > > post and > >> > > the ujoy driver from back then is also no longer available. > >> > > so there is no way of xorg or hal working directly with uhid > >> > > devices > >> > > then? > >> > There is xf86-input-joystick, but I dunno about its usability. > >> Also look here: > >> http://wiki.freebsd.org/uhidd > > thanks for the hint. i'm about to try it out. however i'm having > > difficulties > > recompiling my kernel without ukbd (which is required for using > > uhidd): > You can build all usb stuff as module. It only eats little more disk > space ... thanks for the hint, but since uhidd won't help me with my problem i'm no longer trying to compile my kernel without ums, uhid and ukbd. however i filed a pr under usb/144751, because building a kernel without uk= bd seems broken on CURRENT. cheers. alex From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 22:52:02 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 38D1F106566C for ; Mon, 15 Mar 2010 22:52:02 +0000 (UTC) (envelope-from elbarto@arcadebsd.org) Received: from mail.arcadebsd.org (jamma.arcadebsd.org [88.191.88.233]) by mx1.freebsd.org (Postfix) with ESMTP id F13DF8FC08 for ; Mon, 15 Mar 2010 22:52:01 +0000 (UTC) Received: from localhost (home.elbarto.org [82.229.222.193]) (Authenticated sender: elbarto) by mail.arcadebsd.org (Postfix) with ESMTPA id 6E3BA3638D for ; Mon, 15 Mar 2010 23:33:13 +0100 (CET) Date: Mon, 15 Mar 2010 23:32:27 +0100 From: Emmanuel Vadot To: freebsd-usb@freebsd.org Message-Id: <20100315233227.345fd137.elbarto@arcadebsd.org> In-Reply-To: References: <3a142e751003130356w2c91937dn5b60770b589d1e6f@mail.gmail.com> Organization: ArcadeBSD X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: PS3's Joystick on FreeBSD (can be possible?) 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: Mon, 15 Mar 2010 22:52:02 -0000 On Sat, 13 Mar 2010 13:09:34 +0100 (CET) Alexander Best wrote: > thanks for the hint. i mailed the developer a year or so ago due to his post > on the freebsd-drivers@ mailinglist [1], but he told development of the ujoy > driver had ceased. i checked the site mentioned in his post and the ujoy > driver from back then is also no longer available. > > so there is no way of xorg or hal working directly with uhid devices then? > > cheers. > alex > > [1] > http://lists.freebsd.org/pipermail/freebsd-drivers/2008-December/000858.html I might find some motivation soon to port my ujoy driver on 8.X/9.X I still have to buy a usb joystick with rumble support to add this feature to the driver. I've uploaded back the driver and the userland exemple program. -- Emmanuel Vadot elbarto@arcadebsd.org From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 00:03:32 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 A88251065670 for ; Tue, 16 Mar 2010 00:03:32 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 62BD68FC0C for ; Tue, 16 Mar 2010 00:03:31 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o2G03QfB011144; Mon, 15 Mar 2010 18:03:26 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o2G03QqV011141; Mon, 15 Mar 2010 18:03:26 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 15 Mar 2010 18:03:26 -0600 (MDT) From: Warren Block To: Emmanuel Vadot In-Reply-To: <20100315233227.345fd137.elbarto@arcadebsd.org> Message-ID: References: <3a142e751003130356w2c91937dn5b60770b589d1e6f@mail.gmail.com> <20100315233227.345fd137.elbarto@arcadebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Mon, 15 Mar 2010 18:03:26 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: PS3's Joystick on FreeBSD (can be possible?) 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: Tue, 16 Mar 2010 00:03:32 -0000 On Mon, 15 Mar 2010, Emmanuel Vadot wrote: > I might find some motivation soon to port my ujoy driver on 8.X/9.X > I still have to buy a usb joystick with rumble support to add this feature to the driver. > I've uploaded back the driver and the userland exemple program. Would that allow calibration, and so make FlightGear usable with my thrift-store Logitech Wingman Extreme Digital 3D? At present it works as long as you only want to go left. -Warren Block * Rapid City, South Dakota USA From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 15:46:22 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 E043E106566B for ; Tue, 16 Mar 2010 15:46:22 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from mail.embedded-brains.de (host-82-135-62-35.customer.m-online.net [82.135.62.35]) by mx1.freebsd.org (Postfix) with ESMTP id 94DB08FC0C for ; Tue, 16 Mar 2010 15:46:22 +0000 (UTC) Received: by mail.embedded-brains.de (Postfix, from userid 65534) id 98FBE6F8384; Tue, 16 Mar 2010 16:46:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fidibus.eb.z X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from [192.168.96.31] (eb0011.eb.z [192.168.96.31]) by mail.embedded-brains.de (Postfix) with ESMTP id B1C2D6F8382 for ; Tue, 16 Mar 2010 16:46:19 +0100 (CET) Message-ID: <4B9FA7CB.70200@embedded-brains.de> Date: Tue, 16 Mar 2010 16:46:19 +0100 From: Sebastian Huber User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091130 SUSE/3.0.0-17.1 Lightning/1.0b1 Thunderbird/3.0 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: How fast is the OHCI driver? 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: Tue, 16 Mar 2010 15:46:23 -0000 Hi, I work with an ARM9 based system on a LPC3250 evaluation board from Phytec. It has an integrated OHCI USB controller from NXP. The vendor provides a Linux system for this board and with this system I can read with 1MByte/s from an USB stick (I can also read with 23MByte/s from this stick on another system with an EHCI controller). If I use the FreeBSD USB-stack (trunk revision 200101), then I can only achieve a read performance of 70kByte/s. Comparing the activity on the USB data lines with an oscilloscope of the two systems shows that on the Linux system the line is continuously busy while on the FreeBSD based system there are huge gaps of inactivity. Both systems operate with 12MHz. The FreeBSD based system is 65% of the time in the idle task, so it seems that it waits a lot for something. Has someone values from other FreeBSD based systems with an OHCI controller? Have a nice day! Sebastian Huber -- Sebastian Huber, embedded brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 16:42:37 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 30A9B106566B for ; Tue, 16 Mar 2010 16:42:37 +0000 (UTC) (envelope-from djackson452@gmail.com) Received: from mail-pz0-f196.google.com (mail-pz0-f196.google.com [209.85.222.196]) by mx1.freebsd.org (Postfix) with ESMTP id 04CFF8FC12 for ; Tue, 16 Mar 2010 16:42:36 +0000 (UTC) Received: by pzk34 with SMTP id 34so91149pzk.3 for ; Tue, 16 Mar 2010 09:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=1XomR+X1sAqoCEdu6njz2yCdn/kA//qLzS0xxHi4sH4=; b=BXxP+t+OtcXXsi/PySLVC9TJZ8ZCTBhgaV2JQrRr8PcebyhDju7nMNWUjwTWkuyUUf kDAaHQdt/oP4mDrlv/OBExuJCYedbT5Suz3z4+lxhywWPeUHbT+pJwOfgemK2CyiyBU8 7J4VAp79iaybfxZzwp8tZgEwfan3aawmvTkMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=eNI2wGCavFTwk5OA29iglGo4lw7oFLrrgpW/tLJBi14ms7gicCyPG6UQD6wDPPb4nF x2CbSZ+nkvMWUfNvPmrkD+EfcShCFHVDj9/DlQ+BzAgYN9eB7p+OgbhqABnfeUEWMaFw +EyzEcp+U/ON38XDZsLesCNfYXyZ8e5qDkhMI= Received: by 10.142.120.26 with SMTP id s26mr2814wfc.157.1268757040202; Tue, 16 Mar 2010 09:30:40 -0700 (PDT) Received: from [192.168.1.103] (pool-96-254-203-152.tampfl.fios.verizon.net [96.254.203.152]) by mx.google.com with ESMTPS id 22sm1831666yxe.55.2010.03.16.09.30.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Mar 2010 09:30:38 -0700 (PDT) Message-ID: <4B9FB0C4.7000406@gmail.com> Date: Tue, 16 Mar 2010 12:24:36 -0400 From: David Jackson User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: EPSON 1240 Scanner problems on 8.0 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: Tue, 16 Mar 2010 16:42:37 -0000 I have an Epson Perfection 1240: found USB scanner (vendor=0x04b8 [EPSON], product=0x010b [Perfection1240]) at libusb:/dev/usb:/dev/ugen0.2 It is detected: ls -l /dev/ugen0.2 lrwxr-xr-x 1 root wheel 9 Mar 16 11:37 /dev/ugen0.2 -> usb/0.2.0 ls -l /dev/usb crw------- 1 root operator 0, 134 Mar 16 11:37 0.2.0 crw------- 1 root operator 0, 136 Mar 16 11:37 0.2.1 crw------- 1 root operator 0, 137 Mar 16 11:37 0.2.2 However i have been having problems getting SANE frontend to detect it: scanimage -v -v -L [sanei_debug] Setting debug level of epson2 to 255. [epson2] sane_epson2_init: sane-backends 1.0.20 [epson2] sane_epson2_init: reading config file, epson2.conf [epson2] usb /dev/ugen0.2 [epson2] attach_one_usb: dev = /dev/ugen0.2 [epson2] epson2 backend, version 1.0.117 [epson2] attach: devname = /dev/ugen0.2, type = 3 [epson2] attach: opening /dev/ugen0.2, type = 3 [epson2] close_scanner: fd = -1 [epson2] sane_epson2_get_devices No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). Calling sane_exit scanimage: finished I tried both epson and epson2 drivers by commenting them out in dll.conf. I am at a loss to know why this is not working. It worked well in FreeBSD 7.1 Any help is greatly appreciated From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 17:07:23 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 616F2106564A for ; Tue, 16 Mar 2010 17:07:23 +0000 (UTC) (envelope-from djackson452@gmail.com) Received: from mail-yx0-f185.google.com (mail-yx0-f185.google.com [209.85.210.185]) by mx1.freebsd.org (Postfix) with ESMTP id 191148FC21 for ; Tue, 16 Mar 2010 17:07:22 +0000 (UTC) Received: by yxe15 with SMTP id 15so41478yxe.7 for ; Tue, 16 Mar 2010 10:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=3N863G7AMCMx+7JnwTUGvsDwLfY7vKci6QzkkLD/up0=; b=FhJKPhsUpy9Pd46ZcJrw+m30q2duL3SvbFNlH7nq1fSDOc852nHu8vBXbuKHvBEYJh ui+loF+6kcLiN1jLYZdJW4EfgrVqrnGYjTpXzx9gw+e3kRolx6E8JGJ6rGDK25twqFUN t9mltN8h3J3QWcDnf+JTX3OUdtEZgrJJaW+5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=eq+iV5FhBgz/MTuyVRpTFoW8RGaYazLFp555aluRcXkK4jByL/q/CTUMrdKu4SVV2V aZdXxrylTe5thUSMCLqIqAl3Tht3//3HUHg4XKbcNr/k+weP9ulbHbFfL+/T+5IYjzQh 68nbXQ7JiWPGSiGskauHQn0YaMKvo4HYYZ3Qw= Received: by 10.150.214.11 with SMTP id m11mr3346614ybg.244.1268759241569; Tue, 16 Mar 2010 10:07:21 -0700 (PDT) Received: from [192.168.1.103] (pool-96-254-203-152.tampfl.fios.verizon.net [96.254.203.152]) by mx.google.com with ESMTPS id 14sm3873094gxk.15.2010.03.16.10.07.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Mar 2010 10:07:20 -0700 (PDT) Message-ID: <4B9FB958.70605@gmail.com> Date: Tue, 16 Mar 2010 13:01:12 -0400 From: David Jackson User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4B9FB0C4.7000406@gmail.com> In-Reply-To: <4B9FB0C4.7000406@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: EPSON 1240 Scanner problems on 8.0 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: Tue, 16 Mar 2010 17:07:23 -0000 David Jackson wrote: > I have an Epson Perfection 1240: > > found USB scanner (vendor=0x04b8 [EPSON], product=0x010b > [Perfection1240]) at libusb:/dev/usb:/dev/ugen0.2 > > It is detected: > > ls -l /dev/ugen0.2 > lrwxr-xr-x 1 root wheel 9 Mar 16 11:37 /dev/ugen0.2 -> usb/0.2.0 > > ls -l /dev/usb > crw------- 1 root operator 0, 134 Mar 16 11:37 0.2.0 > crw------- 1 root operator 0, 136 Mar 16 11:37 0.2.1 > crw------- 1 root operator 0, 137 Mar 16 11:37 0.2.2 > > However i have been having problems getting SANE frontend to detect it: > > scanimage -v -v -L > [sanei_debug] Setting debug level of epson2 to 255. > [epson2] sane_epson2_init: sane-backends 1.0.20 > [epson2] sane_epson2_init: reading config file, epson2.conf > [epson2] usb /dev/ugen0.2 > [epson2] attach_one_usb: dev = /dev/ugen0.2 > [epson2] epson2 backend, version 1.0.117 > [epson2] attach: devname = /dev/ugen0.2, type = 3 > [epson2] attach: opening /dev/ugen0.2, type = 3 > [epson2] close_scanner: fd = -1 > [epson2] sane_epson2_get_devices > > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > which came with this software (README, FAQ, manpages). > Calling sane_exit > scanimage: finished > > I tried both epson and epson2 drivers by commenting them out in dll.conf. > > > I am at a loss to know why this is not working. It worked well in > FreeBSD 7.1 > > Any help is greatly appreciated > Setting this in the configuration seems to have helped: usb 0x04b8 0x010b It seems to now be able to find the scanner. Autodetection for the scanner is not working anymore, although it was working in FreeBSD 7.1. From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 18:01:39 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 4E98D106564A for ; Tue, 16 Mar 2010 18:01:39 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id AAD458FC08 for ; Tue, 16 Mar 2010 18:01:38 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o2GI1Fph081262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Mar 2010 19:01:15 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o2GI19ow005192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Mar 2010 19:01:09 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o2GI19AW072027; Tue, 16 Mar 2010 19:01:09 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o2GI1974072026; Tue, 16 Mar 2010 19:01:09 +0100 (CET) (envelope-from ticso) Date: Tue, 16 Mar 2010 19:01:09 +0100 From: Bernd Walter To: Sebastian Huber Message-ID: <20100316180109.GE70566@cicely7.cicely.de> References: <4B9FA7CB.70200@embedded-brains.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B9FA7CB.70200@embedded-brains.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: How fast is the OHCI driver? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 18:01:39 -0000 On Tue, Mar 16, 2010 at 04:46:19PM +0100, Sebastian Huber wrote: > Hi, > > I work with an ARM9 based system on a LPC3250 evaluation board from Phytec. It > has an integrated OHCI USB controller from NXP. The vendor provides a Linux > system for this board and with this system I can read with 1MByte/s from an USB > stick (I can also read with 23MByte/s from this stick on another system with an > EHCI controller). If I use the FreeBSD USB-stack (trunk revision 200101), then > I can only achieve a read performance of 70kByte/s. Comparing the activity on > the USB data lines with an oscilloscope of the two systems shows that on the > Linux system the line is continuously busy while on the FreeBSD based system > there are huge gaps of inactivity. Both systems operate with 12MHz. The > FreeBSD based system is 65% of the time in the idle task, so it seems that it > waits a lot for something. How do you test? > Has someone values from other FreeBSD based systems with an OHCI controller? I can easily get more with AT91RM9200 (also ARM9 with OHCI). A short test: [73]chipmunk.cicely.de# dd if=/dev/da0 bs=128k of=/dev/null count=100 100+0 records in 100+0 records out 13107200 bytes transferred in 16.762732 secs (781925 bytes/sec) Speedwise the system is on the lowest end of ARM9 systems we support. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 21:48:23 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 CD687106564A for ; Tue, 16 Mar 2010 21:48:23 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 606EB8FC18 for ; Tue, 16 Mar 2010 21:48:22 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=mXFe8cMYjHcA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=dy2nNuRTxr82x9YG0l0A:9 a=c6yDqGg0V6JvW4lK9lZhc6x9Q3gA:4 a=wPNLvfGTeEIA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1346182112; Tue, 16 Mar 2010 22:48:21 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 16 Mar 2010 22:46:40 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <4B9FA7CB.70200@embedded-brains.de> In-Reply-To: <4B9FA7CB.70200@embedded-brains.de> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003162246.40130.hselasky@c2i.net> Cc: Subject: Re: How fast is the OHCI driver? 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: Tue, 16 Mar 2010 21:48:23 -0000 On Tuesday 16 March 2010 16:46:19 Sebastian Huber wrote: > Hi, > > I work with an ARM9 based system on a LPC3250 evaluation board from Phytec. > It has an integrated OHCI USB controller from NXP. The vendor provides a > Linux system for this board and with this system I can read with 1MByte/s > from an USB stick (I can also read with 23MByte/s from this stick on > another system with an EHCI controller). If I use the FreeBSD USB-stack > (trunk revision 200101), then I can only achieve a read performance of > 70kByte/s. Comparing the activity on the USB data lines with an > oscilloscope of the two systems shows that on the Linux system the line is > continuously busy while on the FreeBSD based system there are huge gaps of > inactivity. Both systems operate with 12MHz. The FreeBSD based system is > 65% of the time in the idle task, so it seems that it waits a lot for > something. > > Has someone values from other FreeBSD based systems with an OHCI > controller? > > Have a nice day! > Sebastian Huber > Hi, This might be a symptom of the well known cache flush/sync problem. You should investigate whether all transfer descriptors get flushed/invalidated correctly to RAM after setting up an USB transaction. There are sysctl under hw.usb.xxx where you can enable more verbose debugging. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Mar 19 09:32:55 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 95E221065679 for ; Fri, 19 Mar 2010 09:32:55 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from mail.embedded-brains.de (host-82-135-62-35.customer.m-online.net [82.135.62.35]) by mx1.freebsd.org (Postfix) with ESMTP id 471408FC15 for ; Fri, 19 Mar 2010 09:32:54 +0000 (UTC) Received: by mail.embedded-brains.de (Postfix, from userid 65534) id 9403C65F2E2; Fri, 19 Mar 2010 10:32:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fidibus.eb.z X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from [192.168.96.31] (eb0011.eb.z [192.168.96.31]) by mail.embedded-brains.de (Postfix) with ESMTP id 6704C65F2E1; Fri, 19 Mar 2010 10:32:51 +0100 (CET) Message-ID: <4BA344C3.2010901@embedded-brains.de> Date: Fri, 19 Mar 2010 10:32:51 +0100 From: Sebastian Huber User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091130 SUSE/3.0.0-17.1 Lightning/1.0b1 Thunderbird/3.0 MIME-Version: 1.0 To: ticso@cicely.de References: <4B9FA7CB.70200@embedded-brains.de> <20100316180109.GE70566@cicely7.cicely.de> In-Reply-To: <20100316180109.GE70566@cicely7.cicely.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: Bernd Walter , freebsd-usb@freebsd.org Subject: Re: How fast is the OHCI driver? 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: Fri, 19 Mar 2010 09:32:55 -0000 On 03/16/2010 07:01 PM, Bernd Walter wrote: > On Tue, Mar 16, 2010 at 04:46:19PM +0100, Sebastian Huber wrote: [...] >> Has someone values from other FreeBSD based systems with an OHCI controller? > > I can easily get more with AT91RM9200 (also ARM9 with OHCI). > A short test: > [73]chipmunk.cicely.de# dd if=/dev/da0 bs=128k of=/dev/null count=100 > 100+0 records in > 100+0 records out > 13107200 bytes transferred in 16.762732 secs (781925 bytes/sec) > > Speedwise the system is on the lowest end of ARM9 systems we support. > Thank you for your reference values. Actually my test setup on the FreeBSD based system was bad. I now have the following values: TSZ: Size of one transfer block in bytes TIME: Time to transfer 1024 blocks in seconds RATE: Bytes transfered per second TSZ TIME RATE 512 6.15 85250 1024 7.17 146244 2048 8.20 255750 4096 10.24 409600 8192 13.38 626951 16384 21.50 780335 32768 36.92 908841 65536 67.92 988057 131072 131.39 1021521 262144 259.00 1036430 524288 514.16 1044170 1048576 964.04 1048532 So it looks very good if you use the right transfer size. Best regards, Sebastian Huber -- Sebastian Huber, embedded brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. From owner-freebsd-usb@FreeBSD.ORG Fri Mar 19 10:30:04 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 390F21065670 for ; Fri, 19 Mar 2010 10:30:04 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 95BFF8FC20 for ; Fri, 19 Mar 2010 10:30:02 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o2JATxt1012494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 19 Mar 2010 11:30:00 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o2JATswG008766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Mar 2010 11:29:54 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o2JATsmf090163; Fri, 19 Mar 2010 11:29:54 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o2JATreM090162; Fri, 19 Mar 2010 11:29:53 +0100 (CET) (envelope-from ticso) Date: Fri, 19 Mar 2010 11:29:53 +0100 From: Bernd Walter To: Sebastian Huber Message-ID: <20100319102953.GO83844@cicely7.cicely.de> References: <4B9FA7CB.70200@embedded-brains.de> <20100316180109.GE70566@cicely7.cicely.de> <4BA344C3.2010901@embedded-brains.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BA344C3.2010901@embedded-brains.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: Bernd Walter , ticso@cicely.de, freebsd-usb@freebsd.org Subject: Re: How fast is the OHCI driver? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 10:30:04 -0000 On Fri, Mar 19, 2010 at 10:32:51AM +0100, Sebastian Huber wrote: > On 03/16/2010 07:01 PM, Bernd Walter wrote: > > On Tue, Mar 16, 2010 at 04:46:19PM +0100, Sebastian Huber wrote: > [...] > >> Has someone values from other FreeBSD based systems with an OHCI controller? > > > > I can easily get more with AT91RM9200 (also ARM9 with OHCI). > > A short test: > > [73]chipmunk.cicely.de# dd if=/dev/da0 bs=128k of=/dev/null count=100 > > 100+0 records in > > 100+0 records out > > 13107200 bytes transferred in 16.762732 secs (781925 bytes/sec) > > > > Speedwise the system is on the lowest end of ARM9 systems we support. > > > > Thank you for your reference values. Actually my test setup on the FreeBSD > based system was bad. I now have the following values: > > TSZ: Size of one transfer block in bytes > TIME: Time to transfer 1024 blocks in seconds > RATE: Bytes transfered per second > > TSZ TIME RATE > 512 6.15 85250 > 1024 7.17 146244 > 2048 8.20 255750 > 4096 10.24 409600 > 8192 13.38 626951 > 16384 21.50 780335 > 32768 36.92 908841 > 65536 67.92 988057 > 131072 131.39 1021521 > 262144 259.00 1036430 > 524288 514.16 1044170 > 1048576 964.04 1048532 > > So it looks very good if you use the right transfer size. That's normal - Linux uses block devices, which prereads bigger blocks, while we have character devices and have physical control. The story isn't a problem if you use a filesystem, because it does bigger reads. The consumer code likely knows better what is worth to be preread and/or cached. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-usb@FreeBSD.ORG Fri Mar 19 19:17:08 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 5F57B1065670 for ; Fri, 19 Mar 2010 19:17:08 +0000 (UTC) (envelope-from bhodgens@boomerangme.com) Received: from goodrex.boomapps.com (smtp2.boomapps.com [67.158.33.157]) by mx1.freebsd.org (Postfix) with ESMTP id 01C298FC13 for ; Fri, 19 Mar 2010 19:17:07 +0000 (UTC) Received: from goodrex.boomapps.com (localhost [127.0.0.1]) by goodrex.boomapps.com (Postfix) with ESMTP id EBB193985F; Fri, 19 Mar 2010 13:01:38 -0600 (MDT) Received: from [192.168.33.124] (office.boomapps.com [64.179.176.6]) (Authenticated sender: bhodgens@boomerangme.com) by goodrex.boomapps.com (Postfix) with ESMTP id C98753985A for ; Fri, 19 Mar 2010 13:01:38 -0600 (MDT) Message-ID: <4BA3CA2E.2020001@boomerangme.com> Date: Fri, 19 Mar 2010 13:02:06 -0600 From: Ben Hodgens User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: timing with 8 RELEASE with USB flash root 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: Fri, 19 Mar 2010 19:17:08 -0000 I've got an issue with 8 RELEASE when booting (with / on a USB drive). It appears that the USB devices are slow to probe. There is a different latency until the drives are detected, seemingly on every boot (occasionally, / will come up and not require me to enter the ufs: line). Sometimes it takes multiple entries of the ufs: line even after the device gets probed/detected. This happens on amd64, with a variety of chipsets (nvidia and intel, at least). It happens with a variety of different flash drives (I've tried at least 5 at this point, each of a different size/manufacturer/vintage.) Any help on this matter would be greatly appreciated. I've got a number of 7.* systems I've got to upgrade to 8 (all with /boot or / on USB flash due to use of ZFS), and I'm still fairly new to the FreeBSD experience. Any pointers on how to fix this in 8 RELEASE or whether/how to upgrade to 8 CURRENT would be appreciated. Many thanks. Here's a copy of boot.msg: Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz (2826.26-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Stepping = 10 Features=0xbfebfbff Features2=0x408e3fd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4105949184 (3915 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 uhci0: port 0x1820-0x183f irq 16 at device 26.0 on pci0 uhci0: [ITHREAD] uhci0: LegSup = 0x003b usbus0: on uhci0 uhci1: port 0x1840-0x185f irq 17 at device 26.1 on pci0 uhci1: [ITHREAD] uhci1: LegSup = 0x0010 usbus1: on uhci1 uhci2: port 0x1860-0x187f irq 18 at device 26.2 on pci0 uhci2: [ITHREAD] uhci2: LegSup = 0x0010 usbus2: on uhci2 ehci0: mem 0xdc000000-0xdc0003ff irq 18 at device 26.7 on pci0 ehci0: [ITHREAD] usbus3: EHCI version 1.0 usbus3: on ehci0 pcib1: irq 16 at device 28.0 on pci0 pci5: on pcib1 pcib2: irq 16 at device 28.4 on pci0 pci13: on pcib2 em0: port 0x2000-0x201f mem 0xdc100000-0xdc11ffff irq 16 at device 0.0 on pci13 em0: Using MSI interrupt em0: [FILTER] em0: Ethernet address: 00:30:48:f8:04:bc pcib3: irq 17 at device 28.5 on pci0 pci15: on pcib3 em1: port 0x3000-0x301f mem 0xdc200000-0xdc21ffff irq 17 at device 0.0 on pci15 em1: Using MSI interrupt em1: [FILTER] em1: Ethernet address: 00:30:48:f8:04:bd uhci3: port 0x1880-0x189f irq 23 at device 29.0 on pci0 uhci3: [ITHREAD] uhci3: LegSup = 0x003b usbus4: on uhci3 uhci4: port 0x18a0-0x18bf irq 22 at device 29.1 on pci0 uhci4: [ITHREAD] uhci4: LegSup = 0x0010 usbus5: on uhci4 uhci5: port 0x18c0-0x18df irq 18 at device 29.2 on pci0 uhci5: [ITHREAD] uhci5: LegSup = 0x0010 usbus6: on uhci5 ehci1: mem 0xdc000400-0xdc0007ff irq 23 at device 29.7 on pci0 ehci1: [ITHREAD] usbus7: EHCI version 1.0 usbus7: on ehci1 pcib4: at device 30.0 on pci0 pci17: on pcib4 vgapci0: port 0x4000-0x407f mem 0xde000000-0xdfffffff,0xdc300000-0xdc33ffff at device 4.0 on pci17 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x18e0-0x18ff mem 0xdc000800-0xdc000fff irq 17 at device 31.2 on pci0 atapci0: [ITHREAD] atapci0: AHCI called from vendor specific driver atapci0: AHCI v1.20 controller with 6 3Gbps ports, PM supported ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ata6: on atapci0 ata6: [ITHREAD] ata7: on atapci0 ata7: [ITHREAD] pci0: at device 31.3 (no driver attached) pci0: at device 31.6 (no driver attached) acpi_button0: on acpi0 atrtc0: port 0x70-0x71 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart1: [FILTER] fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: [ITHREAD] lpt0: on ppbus0 lpt0: [ITHREAD] lpt0: Interrupt-driven port ppi0: on ppbus0 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 cpu2: on acpi0 est2: on cpu2 p4tcc2: on cpu2 cpu3: on acpi0 est3: on cpu3 p4tcc3: on cpu3 orm0: at iomem 0xc0000-0xc7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 480Mbps High Speed USB v2.0 ad4: 1907729MB at ata2-master SATA300 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 ugen7.1: at usbus7 uhub7: on usbus7 ad8: 1907729MB at ata4-master SATA300 ad12: 1907729MB at ata6-master SATA300 ad14: 1907729MB at ata7-master SATA300 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub6: 2 ports with 2 removable, self powered SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! Root mount waiting for: usbus7 usbus3 Root mount waiting for: usbus7 usbus3 Root mount waiting for: usbus7 usbus3 uhub3: 6 ports with 6 removable, self powered uhub7: 6 ports with 6 removable, self powered ugen7.2: at usbus7 umass0: on usbus7 umass0: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus7 umass0:0:0:-1: Attached to scbus0 Trying to mount root from ufs:/dev/da0s1a ROOT MOUNT ERROR: If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=rwda0 at umass-sim0 bus 0 target 0 lun 0 da0: and then remove invalid mount options from Removable Direct Access SCSI-0 device /etc/fstab. da0: 40.000MB/s transfers Loader variables: da0: 7648MB (15663104 512 byte sectors: 255H 63S/T 974C) vfs.root.mountfrom= ufs:/dev/da0s1a vfs.root.mountfrom.options=rw Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0s1a eg. cd9660:/dev/acd0 This is equivalent to: mount -t cd9660 /dev/acd0 / ? List valid disk boot devices Abort manual input mountroot> ufs:/dev/da0s1a Trying to mount root from ufs:/dev/da0s1a -- Benjamin Hodgens bhodgens@boomerangme.com From owner-freebsd-usb@FreeBSD.ORG Sat Mar 20 19:00:17 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B4C01065677 for ; Sat, 20 Mar 2010 19:00:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5DDE48FC20 for ; Sat, 20 Mar 2010 19:00:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2KJ0Gh7065175 for ; Sat, 20 Mar 2010 19:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2KJ0GKW065174; Sat, 20 Mar 2010 19:00:16 GMT (envelope-from gnats) Resent-Date: Sat, 20 Mar 2010 19:00:16 GMT Resent-Message-Id: <201003201900.o2KJ0GKW065174@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Monty Hall Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE6B01065675 for ; Sat, 20 Mar 2010 18:56:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 8301B8FC0A for ; Sat, 20 Mar 2010 18:56:35 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2KIuZ7o050701 for ; Sat, 20 Mar 2010 18:56:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o2KIuZeo050700; Sat, 20 Mar 2010 18:56:35 GMT (envelope-from nobody) Message-Id: <201003201856.o2KIuZeo050700@www.freebsd.org> Date: Sat, 20 Mar 2010 18:56:35 GMT From: Monty Hall To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/144915: Prolific USB-IDE Bridge for Seagate ST350083 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: Sat, 20 Mar 2010 19:00:17 -0000 >Number: 144915 >Category: usb >Synopsis: Prolific USB-IDE Bridge for Seagate ST350083 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 20 19:00:16 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Monty Hall >Release: 8.0 >Organization: >Environment: FreeBSD XXXXX 8.0-STABLE FreeBSD 8.0-STABLE #8 r205349M: Sat Mar 20 00:02:49 EDT 2010 root@XXXX:/usr/obj/usr/src/sys/INSPIRON i386 >Description: I started getting zpool corruption errors, and the console was displaying error messages concerning CACHE problems and SCSI error (20,0). Unfortunately I recompiled for this quirk and no longer have the actual error message: camcontrol devlist: at scbus2 target 0 lun 0 (da0,pass1) usbcontrol list: --------------- ugen4.5: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON >How-To-Repeat: I never had this problem as a UFS drive. Only started getting this message after adding to a zpool. >Fix: Recompile w/ the following changes: /usr/src/sys/dev/usb/quirk/usb_quirk.c Index: usb_quirk.c =================================================================== --- usb_quirk.c (revision 205388) +++ usb_quirk.c (working copy) @@ -80,6 +80,10 @@ USB_QUIRK_VP(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, l, h, __VA_ARGS__) static struct usb_quirk_entry usb_quirks[USB_DEV_QUIRKS_MAX] = { + USB_QUIRK(PROLIFIC, PL2506, 0x0000, 0xffff, + UQ_MSC_FORCE_PROTO_SCSI, + UQ_MSC_FORCE_WIRE_BBB, + UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(ASUS, LCM, 0x0000, 0xffff, UQ_HID_IGNORE), USB_QUIRK(INSIDEOUT, EDGEPORT4, 0x094, 0x094, UQ_SWAP_UNICODE), USB_QUIRK(DALLAS, J6502, 0x0a2, 0x0a2, UQ_BAD_ADC), -------------------------------------------- /usr/src/sys/dev/usb/usbdevs Index: usbdevs =================================================================== --- usbdevs (revision 205388) +++ usbdevs (working copy) @@ -2223,6 +2223,7 @@ product PROLIFIC PL2305 0x2305 Parallel printer product PROLIFIC ATAPI4 0x2307 ATAPI-4 Controller product PROLIFIC PL2501 0x2501 PL2501 Host-Host interface +product PROLIFIC PL2506 0x2506 PL2506 USB to IDE Bridge product PROLIFIC PHAROS 0xaaa0 Prolific Pharos product PROLIFIC RSAQ3 0xaaa2 PL2303 Serial Adapter (IODATA USB-RSAQ3) product PROLIFIC2 WSIM 0x2001 Willcom WSIM >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Mar 20 19:52:43 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 1C78A1065672 for ; Sat, 20 Mar 2010 19:52:43 +0000 (UTC) (envelope-from mailinglists@martinlaabs.de) Received: from relay01.alfahosting-server.de (relay01.alfahosting-server.de [80.86.191.73]) by mx1.freebsd.org (Postfix) with ESMTP id C68ED8FC08 for ; Sat, 20 Mar 2010 19:52:42 +0000 (UTC) Received: by relay01.alfahosting-server.de (Postfix, from userid 1001) id 7E9D62006DD1A; Sat, 20 Mar 2010 20:30:06 +0100 (CET) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=0.1 required=7.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.1.7-deb3 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [82.197.146.36]) by relay01.alfahosting-server.de (Postfix) with ESMTP id 4B7D02006DA50 for ; Sat, 20 Mar 2010 20:30:04 +0100 (CET) Received: from pc.martinlaabs.de (p5B0EE50D.dip.t-dialin.net [91.14.229.13]) by alfa3018.alfahosting-server.de (Postfix) with ESMTP id 22336515C79A for ; Sat, 20 Mar 2010 20:30:04 +0100 (CET) Message-ID: <4BA52239.8000300@martinlaabs.de> Date: Sat, 20 Mar 2010 20:30:01 +0100 From: Martin Laabs User-Agent: Thunderbird 2.0.0.23 (X11/20091224) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.94.2/10601/Sat Mar 20 00:42:36 2010 Subject: Find Vendor/Product ID from uhid device 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: Sat, 20 Mar 2010 19:52:43 -0000 Hi, I'am currently porting the linux-js joystick driver to the new USB stack. Since this driver operates on top other drivers (in the case of USB ontop the uhid driver) it needs to figure out whether /dev/uhid* is a device it can operate on. The driver scans all /dev/uhidX entries and compares the vendor and product id against a table. In the old stack this was possible through scanning all /dev/ugenX devices, get the device_info struct and compare the udi_devnames[] against the "uhidX" string. However - the udi_devname string disappeared in the new usb stack and this way seems to be not open anymore for me. Can you give me a hint how to figure the vendor and product id of a /dev/uhidX device. Thank you, Martin Laabs From owner-freebsd-usb@FreeBSD.ORG Sat Mar 20 21:11:18 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 83FE71065673 for ; Sat, 20 Mar 2010 21:11:18 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by mx1.freebsd.org (Postfix) with ESMTP id 0F16B8FC15 for ; Sat, 20 Mar 2010 21:11:17 +0000 (UTC) Received: by ewy27 with SMTP id 27so200319ewy.13 for ; Sat, 20 Mar 2010 14:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:subject:message-id :mime-version:content-type:content-disposition:user-agent; bh=31zovCDG8x7IqNTAyM9bkb0R+UuRCJIlxdcUoYLGWEM=; b=oUEepF7Qls9NGwkj2riZmlTSqPueIDkK8WjX7mOD3MA4FDfEtGDFcKC8+35rrwWRlE m56tEgAuSB8VL6PQ3wjdoSJ8JlyCzbLkQOHZtE8kCp0e5/qGFqMd/8fbT211c2ZY4pCX SoVXM2ZMLfZmrOUcHBXoAaXzZNwPrDH0NlkOI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:subject:message-id :mime-version:content-type:content-disposition:user-agent; b=XbwQleNnKBAJM5Ntt5YveC0BtfqLFbRstYJEO/Px0cUL/oV8VZ0wLOFzTMAWubDsjv cZSKbcWHHjWnyJh+DS9MIu2wRVvYKpiwp2bEAvXrw3sM3DsyqCP/w3t2lE8phwYIPVP3 OAPVgy5dx/jiAhoPD6iQWAFZRMe1lIcPOO8q0= Received: by 10.213.1.148 with SMTP id 20mr1634090ebf.89.1269119476726; Sat, 20 Mar 2010 14:11:16 -0700 (PDT) Received: from localhost (81-233-38-26-no36.tbcn.telia.com [81.233.38.26]) by mx.google.com with ESMTPS id 16sm910537ewy.15.2010.03.20.14.11.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Mar 2010 14:11:16 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1Nt5wx-000118-0l for freebsd-usb@freebsd.org; Sat, 20 Mar 2010 22:11:15 +0100 Received: (from kaiw@localhost) by localhost.my.domain (8.14.3/8.14.3/Submit) id o2KLBEdH003913 for freebsd-usb@freebsd.org; Sat, 20 Mar 2010 22:11:14 +0100 (CET) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaiw set sender to kaiwang27@gmail.com using -f Date: Sat, 20 Mar 2010 22:11:14 +0100 From: Kai Wang To: freebsd-usb@freebsd.org Message-ID: <20100320211114.GB2798@viskning> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: [CFT] usbhid(3) improvements 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: Sat, 20 Mar 2010 21:11:18 -0000 Hi list, I've prepared a patch that merges some kernel USB HID parser improvements back to the userland usbhid(3) library. The patch is available here: http://people.freebsd.org/~kaiw/usbhid.diff To apply and reinstall usbhid(3) library: # cd /usr/src/lib/libusbhid # patch -p0 < path/to/usbhid.diff # make clean && make && make install The changes I've made: * Merge multiple report ID support and other improvements from kernel HID parser. * Ignore rid argument in hid_start_parser, parse all the report items since we now support multiple report ID. * Skip report ID byte in hid_get_data and set report ID byte hid_set_data if report ID is non-zero. * Reimplement hid_get_report_id, instead get report id from uhid device (which is always 0), try parsing the report descriptor and return the first ID encountered. The patch does not change the usbhid(3) API and should not break any native or third party usbhid(3) application. Instead, it should make them work better. If you are using the usbhid(3) library, usbhidctl(1), usbhidaction(1) or ports like devel/sdl12 etc, could you please help test if this patch breaks anything? Thanks, Kai