thanks for USB mouse docs

Replies:

Parents:

  • None.
I just got my new logitech USB optical mouse working on jammer,
my vaio laptop, thanks to Hugo and Brad.

http://larve.net/people/hugo/2000/07/linux-vaio#usb
http://LinuxUSBGuide.sourceforge.net/USB-guide-1.0.9/book1.html

Exactly how many times did I have to reboot to get this
new hardware installed and running? zero. none.
I didn't even have to restart X, because I had X
configured to get mouse input via gpm.

Btw... it was $19.99US at the local Best Buy.
Lemme scan that with my cuecat...
Type: UPA
Code: 097855010124

some config details... I haven't fidgeted with the
boot-time configuration, so I'll have to look this
up in fogo next time I need it...
 http://impressive.net/archives/fogo/

# mknod /dev/input/mice c 13 63
# modprobe mousedev
# modprobe hid
# gpm -m /dev/input/mice -t imps2 -M -m /dev/psaux -t ps2 -Rms3

from /etc/X11/XF86Config-4
Section "InputDevice"
       Identifier      "Generic Mouse"
       Driver          "mouse"
       Option          "CorePointer"
       Option          "Device"                "/dev/gpmdata"
       Option          "Protocol"              "IntelliMouse"
       Option          "Emulate3Buttons"       "true"
       Option          "ZAxisMapping"          "4 5"
EndSection

The wheel even works in XTerm, but not Netscape yet.
This page claims it works:
 http://www-sop.inria.fr/koala/colas/mouse-wheel-scroll/

found it via LHD entry
 http://lhd.datapower.com/db/dispproduct.php3?DISP?1548

(which I found from the font of all knowledge, google.)

--
Dan Connolly, W3C http://www.w3.org/People/Connolly/
http://dm93.org/

Re: thanks for USB mouse docs

Replies:

  • None.

Parents:

Dan Connolly wrote:
>
> I just got my new logitech USB optical mouse working on jammer,
> my vaio laptop, thanks to Hugo and Brad.
<snip>
Glad you like it.

> The wheel even works in XTerm, but not Netscape yet.
Here are the four lines I use for xemacs (goes in ~/.emacs)
(defun scroll-up-mw () "Scroll up for mousewheel" (interactive) (scroll-up 3))
(defun scroll-down-mw () "Scroll down for mousewheel" (interactive)
(scroll-down 3))
(global-set-key 'button4 'scroll-down-mw)
(global-set-key 'button5 'scroll-up-mw)


For netscape, put the following in your ~/.Xresources file.
!## NETSCAPE
Netscape*drawingArea.translations:  #replace    \
     <Btn1Down>:           ArmLink()   \n\
     <Btn2Down>:           ArmLink()   \n\
     ~Shift<Btn1Up>:       ActivateLink()  \n\
     ~Shift<Btn2Up>:       ActivateLink(new-window)  \
     DisarmLink()    \n\
     Shift<Btn1Up>:        ActivateLink(save-only)  \
     DisarmLink()    \n\
     Shift<Btn2Up>:        ActivateLink(save-only)  \
     DisarmLink()    \n\
     <Btn1Motion>:             DisarmLinkIfMoved()  \n\
     <Btn2Motion>:             DisarmLinkIfMoved()  \n\
     <Btn3Motion>:             DisarmLinkIfMoved()  \n\
     <Motion>:             DescribeLink()  \n\
     <Btn3Down>:           xfeDoPopup()    \n\
     <Btn3Up>:             ActivatePopup() \n\
     Ctrl<Btn4Down>: PageUp()\n\
     Ctrl<Btn5Down>: PageDown()\n\
     Shift<Btn4Down>: LineUp()\n\
     Shift<Btn5Down>: LineDown()\n\
     None<Btn4Down>: LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
     None<Btn5Down>:
LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
     Alt<Btn4Down>: xfeDoCommand(forward)\n\
     Alt<Btn5Down>: xfeDoCommand(back)\n
     
Netscape*globalNonTextTranslations: #override\n\
     Shift<Btn4Down>: LineUp()\n\
     Shift<Btn5Down>: LineDown()\n\
     None<Btn4Down>:LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
   
None<Btn5Down>:LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\
     Alt<Btn4Down>: xfeDoCommand(forward)\n\
     Alt<Btn5Down>: xfeDoCommand(back)\n

HURL: fogo mailing list archives, maintained by Gerald Oskoboiny