Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Feb 2002 20:29:05 +0900 (JST)
From:      Akira Funahashi <funa@funa.org>
To:        freebsd-mobile@freebsd.org
Subject:   Re: vaio's jogdial & moused
Message-ID:  <20020205.202905.71116296.funa@funa.org>
In-Reply-To: <20020114223408.GA4272@aviaport.ru>
References:  <20020114223408.GA4272@aviaport.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, 

Juriy Goloveshkin <j@gu.ru> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020205.202905.71116296.funa>