When I re-installed my new server, my mouse wheel did not work properly
and I had the behaviour seen by a few on this list: the mouse wheel
scrolled windows horizontally instead of vertically, and in firefox, the
mouse wheel would move forward/backward in the browser history (although
the mouse wheel worked properly on the server). I tried all the
suggested options in lts.conf and nothing worked, so I started looking
at xorg.conf (both for ltsp and on the server) and the ltsp build_x4_cfg
scripts, and now my mouse wheel works properly. Here is what I did:

System:
Mandrake 2006
LTSP 4.2 Update 2
VIA Epia terminals
Logitech Cordless Trackman (PS/2)

In .../i386/etc/build_x4_cfg:

After looking at the xorg.conf on my server and on the terminals, I
noticed that the ltsp xorg.conf referred to two Input devices, mouse0
and mouse1, while my Mandrake xorg.conf only referred to mouse0. So the
first thing I did was to remove the references to mouse1 from the build
script. I don't know if mouse1 is necessary, but deleting it has not
adversely affected my terminals. 

In the section marked "Setup server layout", I removed the line:

        InputDevice     "Mouse1" "AlwaysCore"

and in the section marked "Setup Keyboard and Mouse info", I removed
_all_ the following:

Section "InputDevice"
       Identifier  "Mouse1"
       Driver      "mouse"
       Option      "Device"          "${X_USBMOUSE_DEVICE:-"/dev/input/mice"}"
       Option      "Protocol"        "${X_USBMOUSE_PROTOCOL:-"PS/2"}"
       Option      "BaudRate"        "${X_USBMOUSE_BAUD}"
       Option      "Resolution"      "${X_USBMOUSE_RESOLUTION}"
       Option      "Emulate3Buttons" "${USBEMULATE_3_BUTTONS:-"off"}"
       Option      "ZAxisMapping"     "4 5"
       Option      "Buttons"         "${X_USBMOUSE_BUTTONS:-"3"}"
EndSection

On the xorg web site, I read that the ZAxisMapping option can map both
vertical _and_ horizontal mouse scroll wheel movements to buttons. I
thought that maybe the scroll wheel was being mapped to the wrong
buttons, and sure enough, my server xorg.conf ZAxisMapping option was
set to "6 7" while the ltsp build script maps it to "4 5". So, in the
section 

Section "InputDevice"
       Identifier  "Mouse0"

I changed the following line:

       Option      "ZAxisMapping"     "4 5"
to:
       Option      "ZAxisMapping"    "${X_Z_AXIS_MAPPING:-"4 5"}"

In .../i386/etc/lts.conf:

Add the following options to a terminal definition section:

        X_MOUSE_BUTTONS         = 7
        X_Z_AXIS_MAPPING        = "6 7"

My entries for the other mouse settings are:

        X_MOUSE_DEVICE          = "/dev/psaux"
        X_MOUSE_PROTOCOL        = "IMPS/2"
        X_MOUSE_RESOLUTION      = 400

These modifications worked for me. If you are having mouse wheel
troubles and this works for you, let me know and I can add it to the
wiki.

John P. New
London, Ontario, Canada


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to