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?
Yeah, it probably works, you just need to configure it. I doubt it's your KVM.
You'll have that sometimes...
- Get a USB keyboard with a built in hub (~$50)
- Get a USB mouse with a scroll wheel (~$30)
- Get a USB switch (~$20)
- Plug Each of your computers into the switch's outputs
- Plug your keyboard into the switch input
- Plug your mouse into your keyboard
For less that $100 you won't have to by an expensive (up to $500) KVM.There are a couple drawbacks:
- I don't know of a USB monitor, so you will need a different monitor switch.
- Because this actually disconnects your mouse and keyboard from the computer, they may take a few seconds be be recognized by the computer and start working when you switch
You can get monitor/usb KVM switches, I don't know how much they cost, but the scroll wheel will probably work just fine though them as well.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.
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
This may not help your particular situation with your existing hardware, but I switched to a USB KVM switch (with a USB keyboard and USB wheel-mouse) and it works just fine in Windows 2000/XP and Redhat Linux (8.0). There are, of course, other issues with using a USB keyboard if you need boot-time support, but a modern PC motherboard should be able to handle it without much difficulty.
Best of luck,
XDG
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
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.
/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.
Also, check for the ZAxisMapping option in your X11Config (you may have more than one, and the one in
Under capitalism man exploits man. Under communism it's the other way around.
I posted something similar about a month ago. In our system room we have an Aten four-port KVM switch wired to a Logitech wheel mouse and a conventional PS2 keyboard. Things only work if the system is setup to use standard PS2 mice.
The problem is that the KVM electronics attempt to emulate a standard PS2 mouse and when you set your system up and tell it that you have a wheel mouse the KVM sends and receives the wrong codes. So far as I am aware the only solution is to specify that you want your KVM switch to work with a wheel mouse when you buy it, and if it doesn't work then take it back.
Whilst still on this topic. Wheel mice have been around for years, why is it that a new KVM switch cannot cater for these devices ?
Ed Almos
The more corrupt the state, the more numerous the laws. - Tacitus, 56-120 A.D.
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
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 */
And this is on Ask Slashdot? Why isn't it just handled through the Debian user list? Oh -- that's right.
Perhaps it's because (in my experience) people on the Debian user list are often too busy proving their IQ instead of finding practical ways for Debian to work with the rest of the world.
Try a distro that doesn't take forever to add new drivers or new software, like Redhat, Mandrake, or Suse.
(And no, I'm not trying to troll -- Debian takes forever to add anything and often support on the help list is at a level only programmers and developers can understand.)
try playing around with the settings for the no. of buttons, I had a similar problem with my MS optical trackball and solved it in 5 minutes trying different combinations for ZAxisMapping in XF86Config.
If I'm off topic, hmmmm......I admit I did not read the post very carefully, since it looks more like a Usenet-type of question than a Slashdot post.
I think it's probably just your X setup that's screwed up. I've had similar problems w/X and mice... I have one system @ work that is hooked thru a KVM, and the mouse wheel works fine. Then @ home, I have a system that doesn't have a KVM, and the mouse wheel didn't work. Not sure why X detects it properly sometimes and not other times.
/dev/input/mice. I changed it to /dev/psaux, and the moose wheel now works.
/etc/X11/XF86Config for a line that looks like this: (in the InputDevice section for the mouse)
On my home computer, I had to modify my XF86Config file to make the mouse wheel work right. I changed the line that specified what device was being used for the moose. By default, it had it set to
Check your
Option "Device" "/dev/input/mice"
Try changing it to this:
Option "Device" "/dev/psaux"
and see if that fixes it.
Place sig here.
Mouse wheel support works for me under Linux, but if I switch to another machine with the KVM it will kill the mouse wheel support. It is something about X and the switch (can't remember the details). Try hitting ctrl + alt + f2 or something to goto a new login screen without X before switching to another machine. When you come back to the Linux box do ctrl + alt + f7 to get back to Linux and your mouse wheel should work.
Everytime you look at porn a devil gets their horns.
...I thought you simply stuck the mouse wheel in the cage and the mouse makes it work on his own...
Works fine with Windows ... Doesn't work with Linux? And the problem is ... ?
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.
IO Gear KVM's work fine.
The Mitsubishi DiamondPro 900U (diamondfoo, whatever) has a built in usb hub and two usb upstream ports that it switches between when you switch between the BNC & VGA inputs via the simple button on the front.
only works for a two systems; but if that's all you need this is seriously convenient.
better hope windows doesn't whine about "you unplugged a device without asking me first" though. don't put anything other than your keyboard/mouse on its hub.
and kiss some chance of configuring your BIOS goodbye as many BIOSes won't support USB keyboards connected to a hub (this is a bios not being usb compliant problem). better off having a real keyboard on hand for bios config.
I have an inexpensive four-port Dakota Scout KVM which uses PS/2 sockets for the mouse and keyboard connections. All the boxes connected to it run SuSE Linux 8.1. I have had no problems at all with switching between console sessions running gpm and X sessions using the imps/2 driver to provide access to the wheel. The only difficult bit was getting X to recognize the correct mouse module (IIRC there was a spelling or capitalization issue with the module name, either in 8.1 or one of the previous versions). So I think it might be your KVM. Maybe try a cheaper one :o\
Can you tell that I have strong negative feelings about PS2 mice?
I see even classic Slashdot is now pretty much unusable on dial up anymore.
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.
/etc/rc.d/rc.sysinit, at the very top (before it starts gpm)
Download imwheel rpm... It includes little utility called setimps2. Put call to setimps2 to your
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.
The kicker is that when the mouse is plugged directly to the machine, the mouse wheel works just fine!
And that is exactly what I do. I use an old PIII 600E as my home workstation running Red Hat 8.0 and I have my generic CrapUSA USB optical plugged directly into it. In the KVM however, I plugged an old wheeless 3 button ps2 mouse along with the keyboard, so when I switch to the other computer I use the old ps2. It isn't really efficient, but it works.
When I first set this up, I tried using the USB-PS2 adapter that came with the optical mouse and plugging that into the KVM, but when I started X on the workstation I got the cursor but couldn't move it. The light didn't even come on in the mouse so I figured that idea was FUBAR. Since the second machine runs Netware 5.1 and I don't use the GUI anyway, I just scrounged up an old ps2 and plugged that into the KVM, and tossed it behind the Netware box, and plugged the USB mouse directly into the workstation.
I suspect that the KVM initializes the mouse as a generic PS/2 mouse and then pretends to BE a mouse for each computer it is connected to. The KVM is probably ignoring the initialization that it receives (or at least ignoring the extended settings) rather than passing it on to the mouse.
So it's a driver issue in the sense that the KVM's dumb internal mouse driver is not enabling the mousewheel.
I recently discovered that there's a 'reset' command in the on-screen menu which fixes the problem on the current machine until I switch again. I'm not sure if the problem is between the KVM and the mouse, or between the KVM and the machines, I guess it could be either. The Apex KVMs are excellent, although quite expensive, and I believe their newer models have special support for wheeled mice.
step 1: plug KVM mouse cable into KVM
step 2: plug KVM mouse cable into computer
step 3: plug mouse into KVM console mouse port
step 4: turn on the KVM and the computer
That is how I got it to work with RedHat Linux 8.0 on one side and Mac OS X 10.2.x on the other side of my KVM
realkiwi
Macs don't have PS/2 ports! Yeah well just to make things more complicated I have USB -> PS/2 converter cables too.
And it still works!
realkiwi
The wheel doesn't work with NT in my VMware virtual machine. What? NT doesn't know what a wheelmouse is? Isn't Windows some kind of standard OS with Plug and Play? It works in Mac OS 9!
realkiwi
I've been running both with a Belkin OmniCube 4. I have seen that problem in the past, but I've had it working fine for so long that I don't recall what I did to fix it.
If you're interested in seeing my configs, send me an email. tom_cooper@bigfoot.com.
I still have a problem with my ThinkPad 390X where it won't recognize the wheel on my mouse (because the BIOS sees the trackpoint that handler doesn't support a wheel.) If anyone has a fix for that, please let me know!
Regards,
Anomaly
But Herr Heisenberg, how does the electron know when I'm looking?
I used to have the same problem. I have a cheap KVM switch that does serial mice, but not PS/2. I shared the kbd and monitor between windows and linux, but each machine had a separate mouse. What a pain. But what to do?
I ended up using VNC between the two, then moved on to running an X server on the windows box and bringing up linux windows there, then finally started using terminal services + rdesktop, and have been hunky-dory ever since. I don't have to use an inferior mouse with the machine I use less (windows), I get the full desktop experience for both platforms (albeit with limited color depth in windows), and the only time I have to physically switch to windows is when I do any multimedia stuff, like playing a movie.
Have EVDO, will travel.
Hrmmm, I was just wondering about this. My Diamondtron monitor has a USB hub, and the two-input-button-switchable doohickey, but doesn't appear to have the same functionality.
I always wondered why two-input monitors didn't also include keyboard and mouse switches. It only seems to make sense, that's all. Why would you want to switch monitors, but not the keyboard? If you had a dual-head setup...um....oh. *slaps head in frustration at what a Windows user might actually do in order to get multiple desktops*
...
I had a similar problem when using my KVM. However, the more I played with it the more I found that it was due to not having the KVM set to the linux box when booting the machine.
.. it sounds ludicrous (not to be confused with extra cooky coco puffs). But it works. Try it.
I know I know
think before you write, it'll save me moderator points.
I have a kvm on a few Linux boxes, and when I switch the mouse just quits working totally.
I have to restart X to get it to see the mouse again.
A real PITA..
Belkin OmniView SE 4-port, Logitech optical mouse. Works with X. Works with Windows 95. Works with Windows 98. Works with Windows 2000.
Under Windows XP, with the Logitech driver, the wheel works initially. After switching to another system and switching back, the wheel no longer works.
With the MS driver, the wheel works even after switching but, pressing the wheel down for a third mouse button click isn't supported.
Sounds like a driver problem. I have just been assuming that it was too unusual a problem for anyone to bother fixing.
-Dev
Please learn the beauty/efficacy of using a search engine:
F -8&q=x11+imps%2F2&btnG=Google+Search
0 9.html
http://www.google.com/search?hl=en&ie=UTF-8&oe=UT
http://koala.ilog.fr/anyboard/MouseWheel/posts/12
--- Re: Logitech cordless wheel mouse won't work in Linux
--- Re: Re: Logitech cordless wheel mouse won't work in Linux -- ben perove Post Reply Top of thread Forum
--- Posted by: Sivakumar Natarajan ®
--- Wed, Apr 23, 2003, 07:10:55
--- Author Profile Edit
--- Hi,
--- I changed the protocol section from PS/2 to IMPS/2. Scroll works. Thank you.
--- I use RH Linux 8.0.
I've seen this shit before, and (for me) it was a synchronization issue. Basically, mouse movements and clicks are reported as multiple bytes over the ps/2 port. This usually happens when you bump the mouse while switching machines, so half the movement packet goes to one pc, and the other half to the other pc. In X11, I had luck convincing it to re-synchronize by (without moving the mouse AT ALL!) clicking each button in turn once. This usually meant left, right, middle, up, down, though it may be different for you (e.g. left middle right, or down, up).
-Cheetah
In troubleshooting problems with mouse wheels, it helped to find a mouse that would work on any Unix/MS OS.
I doubt it's the KVM that's causing the problem. It's more likely your X config. However, one hint: when I switch to a windows box and switch back, I have to do [ctrl][alt][f1]-[ctrl][alt][f7] to force X to reinitialise the mouse.
I'm old enough to remember when discussions on Slashdot were well informed.
1) X IS configured correctly. GPM is not running. If I use ps/2 instead of imps/2 in X config file, no wheel but rest of mouse works.
:)
2) I searched and found 90% of the links posted. The switching VT's works sometimes - but if one os can handle it on the same hardware w/ no special work, it tells it is possible for it to work everywhere, and it's some kind of driver/sync issue. If that makes any sense.
3) To TheMeld - I'll try the button bit. As I mentioned, VT switching isn't so reliable.
4) Have tried mutiple mice. Logitech and MS mostly. same issues no matter what mouse I use.
5) Booting w/ linux machine active makes no difference. Mouse is still screwy even if I never switch away.
Reached the point where I'll write it up as slightly-defective kvm - was just curious to see what other people thought. Thanks all.
This sig left intentionally blank.
Every so often a wheel mouse under Linux seems to hang (i.e., not do anything) under RH 8 and 9. This isn't the system, it is some kind of confusion caused by the mouse. Switching virtual consoles away from X then back again seems to clean things up wonderfully.
What I would love to know is where is the mouse reset is being generated, i.e. is this X, /dev/mouse or what? Clearly Win either is sending out a periodic mouse reset or it waits for something to seem borked and does the reset automatically.
See my journal, I write things there
I have a Blkin KVM and my only non server is Linux running X11. The mouse wheel works fine, when I switch the KVM and then come back to my Linux desktop the up scrool stops working while the down scrool works fine. When I restart X11 it all works again. It seems that when I switch on the KVM X11 then starts loosing some of the mouse functionality, but the consoles seem unimpaired.
The best KVM experience I got is with a manual USB KVM, which connects my G4 and my home-built Athlon box running XP Pro.
I tried upgrading to a powered USB KVM that had its own GUI, but I ended up returning it. I'm a lefty, and I like to have both mouse buttons set to "click" and pressing the wheel set to "context"-- the KVM intercepted this and refused to let the thing work any other way than left-click/right-context. The mouse would just appear as a generic two-button mouse to my computers.
Apparently the trick is to just use the plainest KVM you can find, if you want your computers to see the mouse as it actually is. The ones chock-full of whiz-bang features are designed with a rack of generic winboxes in mind, so the possibility that someone will want/need more than left-click/right-context functionality is not a consideration.
~Philly
Rapist.
link to converter cable:I D/REG/1527
http://www.bhphotovideo.com/product/225363/INSPDV
I have a USB KVM setup on my test machines to test our game, and am able to use KB/Mouse as well as multiple game controlers on multiple machines.
I've got a Cybex at home and bought a lot of their gear for a previous employer. It worked wonderfully, and the 2 port KVM at home has no problem switching between my main linux system and my occasional-use windows game box, both using the scroll wheel. My only complaint is that I wish it were a 4 port so I could get the firewall and web server on there as well
At my most recent job, and here where I'm consulting now, they have Belkin KVMs. Crap. I've never had this much trouble ever with a KVM. The more expensive systems are even worse. We had probably 20 of the 8 port switches, and some 2x8 switches. If they go berserk, and they often did, there is no reset. You have to power the KVM off. And since they draw power from the remote system, you have to unplug all 16 ps/2 cords. Buried in a rack, this is a mess. But at least the 4 port KVM can be made to work semi-reliably. I've got two 4 port Belkin KVMs in use only with Linux systems now, and the mouse wheel works.
I will give Belkin credit on one point. SCROLL-LOCK, SCROLL-LOCK makes much more sense as an attention sequence to control the switch from the keyboard than CTRL-CTRL for the Cybex. Yes, you can change the Cybex attention key but it is lost if the KVM loses power.
Note that the "normal" ps/2 mouse protocol transmits three bytes of information. The "intellimouse" imps/2 mouse protocol is enabled when the computer communicates with the mouse to configure this. Once enabled, the mouse sends four byte packets of information.
Make sure all computers are configured to recognize and use the wheel. If you don't, you'll have to force the system to resync with the mouse when switching between systems.
Don't move the mouse when switching between systems. If you send part of the packet to one system and the rest to another, both will likely get confused.
If the mouse and system get out of sync, resync by pressing CTRL-ALT-F1 and then ALT-F7 to drop out and then back in to X.
rapist