From owner-freebsd-mobile Tue Feb 5 3:29:14 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from kongw.arch.info.mie-u.ac.jp (kongw.arch.info.mie-u.ac.jp [133.67.36.12]) by hub.freebsd.org (Postfix) with SMTP id 2CA8537B427 for ; Tue, 5 Feb 2002 03:29:08 -0800 (PST) Received: (qmail 51495 invoked from network); 5 Feb 2002 20:29:05 +0900 Received: from archlon.arch.info.mie-u.ac.jp (HELO localhost) (133.67.36.18) by kongw.arch.info.mie-u.ac.jp with SMTP; 5 Feb 2002 20:29:05 +0900 Date: Tue, 05 Feb 2002 20:29:05 +0900 (JST) Message-Id: <20020205.202905.71116296.funa@funa.org> To: freebsd-mobile@freebsd.org Subject: Re: vaio's jogdial & moused From: Akira Funahashi In-Reply-To: <20020114223408.GA4272@aviaport.ru> References: <20020114223408.GA4272@aviaport.ru> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Juriy Goloveshkin wrote: > I made a little hack for moused to use jogdial like a wheel. > maybe it will be useful for somebody who use /dev/sysmouse in X. > to use it, run "moused -t jogdial -p /dev/jogdial" I've tried to use jogdial on my VAIO PCG-SRX7, but the spic (Sony Programmable I/O Controller) driver won't support the recent VAIO's (such as R505 series) jogdial. I've heard that "Linux sonypi driver" supports recent VAIO's jogdial, so I've ported to -current, and also ported the spic driver to -stable. It works fine on my VAIO SRX7, and it may be useful for recent VAIOs. You can get the patch for -current from http://www.funa.org/~funa/spic/spic.c.current.diff http://www.funa.org/~funa/spic/spicreg.h.current.diff To try it, just move to /sys/i386/isa/ and apply the patch. How to use on -current: 1. # cd /sys/i386/isa 2. # patch < spic.c.current.diff 3. # patch < spicreg.h.current.diff 4. Add following line in your kernel config file. device spic 5. Add following lines in /boot/device.hints hint.spic.0.at="isa" hint.spic.0.port="0x10a0" 6. Make your new kernel and reboot. 7. # moused -t jogdial -z 4 -p /dev/jogdial Also, You can get the spic driver for 4-stable from http://www.funa.org/~funa/spic/spic.4-stable.tar.gz How to use on -stable: 1. # cd /sys/i386/isa 2. # tar xvzf $somewhere/spic.4-stable.tar.gz 3. Add following line in /sys/conf/files.i386 i386/isa/spic.c optional spic 4. Add following line in your kernel config file. device spic0 at isa? irq 0 port 0x10a0 5. Make your new kernel and reboot. 6. # cd /dev 7. # mknod -mode=600 jogdial c 160 0 8. # moused -t jogdial -z 4 -p /dev/jogdial Be sure to apply a patch to moused which was posted to freebsd-mobile (Message-ID: <20020114223408.GA4272@aviaport.ru>). Please let me know if my patch won't work on your VAIOs. Bye. -- Akira Funahashi/[funa@funa.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message