From owner-freebsd-current Sun Dec 10 17: 5:12 2000 From owner-freebsd-current@FreeBSD.ORG Sun Dec 10 17:05:10 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id B34F237B400; Sun, 10 Dec 2000 17:05:09 -0800 (PST) Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222]) by quack.kfu.com (8.11.1/8.11.1) with ESMTP id eBB159m11284; Sun, 10 Dec 2000 17:05:09 -0800 (PST) (envelope-from nsayer@freebsd.org) Received: from localhost (nsayer@localhost) by medusa.kfu.com (8.11.1/8.11.0) with ESMTP id eBB158U48108; Sun, 10 Dec 2000 17:05:09 -0800 (PST) (envelope-from nsayer@freebsd.org) X-Authentication-Warning: medusa.kfu.com: nsayer owned process doing -bs Date: Sun, 10 Dec 2000 17:05:08 -0800 (PST) From: Nick Sayer X-Sender: nsayer@medusa.kfu.com To: "Michael C . Wu" Cc: Nick Sayer , freebsd-current@freebsd.org Subject: Re: Sony jog dial driver In-Reply-To: <20001210184445.E27625@peorth.iteration.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 10 Dec 2000, Michael C . Wu wrote: > On Sun, Dec 10, 2000 at 03:19:06PM -0800, Nick Sayer scribbled: > | Attached is a preliminary driver for the Sony jog dial. It's enough that > | you can create a /dev/jogdial and watch letters come out. > > W00t! :) You did it! How did you wrestle documentation out of > Sony? (or did you ever?) If you managed to get a Sony contact, > can I contact him too? Nope. I have Andrew Tridge and Ian Dowse to thank jointly for sample code that went into it. I am inclined to split the US$100 prize between them. > > | It needs a lot of improvement: > | 1. Use interrupts instead of polling. > | 2. Present mouse-oriented events instead of letters. > > I recall you talking about the Fn+LCD brightness and such to > be controlled by the same controller also. Do you have any work in that area? No, I'm afraid not. > > > IMHO, we should have: > scroll up/down : mouse 4 and 5 (just like mouse wheel) > press down while scrolling up/down : mixer vol +/- > press down one time : mouse middle paste Those are tasks best done in userspace. The driver's job is simply to report the events. My immediate task is now to have it do that reporting in a moused compatible way. > > | 3. Fix the probe routine so that it tries to detect the presence of the > | device rather than the magic 0x10a0 port location. > | > | 4. Eventual ACPIification of the driver. > | > | 5. Create a 2nd device to deal with other devices like the lid switch, > | capture button, etc. > | > | But I wanted to get this much out there for people to play with. > > I'll test this tonight. :) > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message