Slashdot Mirror


Making Mouse Wheels Work w/ a KVM?

Elvii asks: "My mouse wheel doesn't want to work through my KVM. It doesn't work in X11 under Linux (Debian 3.0, kernel 2.4.20), but it works in Windows on same machine, through same KVM, so that tells me it's a protocol or driver issue , which is beyond me. I have no other OS's to test on, although I read online that FreeBSD can handle the mouse wheel in this type of setup. When I set the mouse type to IMPS/2, it just twitches in corner and randomly clicks. Anyone know if it's a kernel issue or an X11 issue? I've googled and found nothing of real use there - just that some KVMs work and some don't. Plain PS/2 works but I want my wheel too." The kicker is that when the mouse is plugged directly to the machine, the mouse wheel works just fine! Has anyone else experienced the problem? What did you do to fix it?

11 of 85 comments (clear)

  1. What is this? by termos · · Score: 4, Informative

    Okey, what is this? Isn't this the sort of question you usually ask in a discussion forum or even IRC? I don't see why someone whould make a slashdot article over it. I did a search on google and found many resources for how to fix this, take a look here, here and here. And if you want to browse the results yourself, here.
    I've googled and found nothing of real use there.
    I don't have a device like this myself, but from the results I got I'll say it looks quite useful.

    --
    Note to self: get smarter troll to guard door.
    1. Re:What is this? by slashkitty · · Score: 4, Informative

      None of your posted links have any solutions. I'll save everyone the trouble of reading all those links.

      Link 1: Unfortunately, there does not seem to be a remedy at the moment.

      Link 2: I never found a way to make the wheel work without buying a different switch.

      Link 3: Was about a Different switch

      Next time you post links, don't assume they have meaning full information just because they mention a config file.

      --
      -- these are only opinions and they might not be mine.
    2. Re:What is this? by Jeremy+Gray · · Score: 3, Informative

      The point you're missing is that none of the links give an actual solution to the problem. The three best solutions so far (from my research) are:

      • try a different KVM
      • reset the X mouse driver with some script or program that outputs the appropriate reset code to the mouse device
      • reset the X mouse driver by switching to a virtual console and back

      And while the question is phrased as if it should be posted to comp.os.linux.* or somesuch, the underlying issue is valid. The Windows mouse driver is able to compensate for shortcomings in KVMs, while the various open source drivers are not, despite theories that this could be done in the X mouse drivers. There is no solution and no good workaround, so hopefully publicity will inspire someone to find the solution.

  2. Hmm by snubber1 · · Score: 3, Insightful

    I have the exact same KVM (only you paid too much for it. buy.com is selling it for $20 less).

    I am also running a Debian stable box and an XP box and my mouse wheel works fine on both. However I've had debian boxes that were a nightmare to get the wheel working (running unstable however).

    I suppose my point is that it *can* work given your setup.

    --
    I don't really mind double posts on //..
  3. I've got 3 Belkin KVM's with the same problem by ComputerSlicer23 · · Score: 4, Informative
    I've got 3 maybe 5 if you count the ones at work that have exactly the same problem. I've got two of the entry 4 ports, a 2x8 matrix stacked with another 2x8 matrix, and a 4 port pro from belkin. All of them have exactly the problem you describe under Linux (various flavors of RedHat).

    There are two things to check, first turn off gpm. It's never done anything but give me grief in all the time I've ever seen turned on. I know that this will solve problems on several different KVM's I have. I know on one of the KVM's, it fixed all my problems so I could use the IMPS driver without doing the second fix.

    Second, is that something is completely screwed about XFree86 of handling the PS2 mice, you can switch to a serial mouse, but no wheel then. The way to fix the problem, is to get XFree86 to resync/reset with the mouse. After switching from once machine to the next, immediately switch to a virtual console, then back to X, and the PS2 drivers will resync/reset/"do the magic to make it go". I've got no idea what the problem is, or why switching consoles works, but on the various Belkin Switches I've seen that is the fix that works best.

    Kirby

  4. Here's my take by MrResistor · · Score: 4, Informative

    Most modern KVM switches will send a signal that tells the machine that it has a keyboard and mouse plugged in even if you're actually switched to another machine. My guess is that the KMS' pseudo-mouse is just a basic 2-button, so Linux doesn't recognize that it's actually a wheel mouse that's plugged in. Have you tried booting the Linux box completely while switched to it (meaning you don't switch to another box to do something else while it comes up)? That might make a difference.

    Also, check for the ZAxisMapping option in your X11Config (you may have more than one, and the one in /etc might not be the one being used), and/or you might try installing imwheel, which is supposed to fix some mouse wheel in Linux issues. I would probably do both.

    --
    Under capitalism man exploits man. Under communism it's the other way around.
  5. linksys tech support by linuxwrangler · · Score: 4, Informative

    I have no problem at all with my Logitech wireless optical wheel mouse running through my Belkin 4-port switch.

    Did you bother with the Linksys support site? Perhaps this is the problem you are having.

    The Linksys product description says, "Because they donâ(TM)t use software, the ProConnect Compact KVM Switches are compatible with all major desktop and note-book computers." One might read into that statement that the switch is not altering the electrical signals and that the switch is compatible with all mice. Sadly, that appears not to be the case and although a known limitation they don't mention it in the description. I'd send it back and buy from a company that makes KVM switches that work properly.

    --

    ~~~~~~~
    "You are not remembered for doing what is expected of you." - Atul Chitnis
  6. Similar issues by nocomment · · Score: 3, Informative

    I've had similar issues with belkin LVM's working with OpenBSD. Turned out to be a PASSIVE kvm and what I really needed was an ACTIVE kvm. The difference for those that don't know is that the active maintains a signal to the mouse port in effect "tricking" the computer into thinking it was never switched away, whereas passive kvm's will just switch it away and don't really care if the OS notices.

    --
    /* oops I accidentally made a comment, sorry */
    /* http://allyourbasearebelongto.us */
  7. Put this in XF86Config by jonadab · · Score: 3, Insightful

    Section "Pointer"
    Protocol "imps/2"
    Device "/dev/psaux"
    ZAxisMapping 4 5
    EndSection

    --
    Cut that out, or I will ship you to Norilsk in a box.
  8. IO Gear by Futurepower(R) · · Score: 3, Informative

    IO Gear KVM's work fine.

  9. Fix: by mikh · · Score: 3, Interesting

    Logitech mouse? Most KVM's support only MS Mouse wheel mode, and not Logitech one. You need to switch your mouse it to Microsoft Wheel mode.

    Download imwheel rpm... It includes little utility called setimps2. Put call to setimps2 to your /etc/rc.d/rc.sysinit, at the very top (before it starts gpm)

    In X86Config under mouse put

    Protocol "IMPS/2"
    Device "/dev/mouse"
    ZAxisMapping 4 5

    That fixed it for me, until I switched to Logitech laser mouse, which defaults to MS mouse protocol instead of Logitech one, which works fine without this fix.