KVM switch and X

X freaks out when I use KVM switch
First off, I am a newbie. I am running Red Hat 7.2. I have X working OK, except when I switch my KVM to another PC, and back, the Gnome interface goes whacky. Mouse moves erratically, Keyboard might work, might not. It's a good, powered KVM, but the only way to reset it to telnet in and halt the system. ( I don't know how to get a list of running process' so I can kill just the X session). Any help?

Comments

Re:KVM switch and X

I would look into some Rose Electronics KVM switches.Our KVM Solutions are truly Multi platform and Multi O/S and have solved the mouse emulation problems. In some of our higher end KVM's we have firmware upgrades so we can virtually support any setup.

Re:KVM switch and X

yea, that 'Auto' setting solved my problem with my Belkin and SuSE too. Hesitates, but comes back to life a few moments later. Better than ctrl-alt-f1 and back, though that worked too. Thanks!

Re:KVM switch and X

Thanks for this -- it's worked for me as well; I think the magic is the 'Protocol -> Auto' option. When I switch the KVM back to the box, the mouse is erratic for 1sec, then pauses, then goes back to normal.

There are some interesting log entries now:

(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(--) Mouse0: PnP-detected protocol: "ImPS/2"
(II) Mouse0: ps2EnableDataReporting: succeeded
(II) Mouse autoprobe: Changing protocol to ExplorerPS/2
(II) Mouse autoprobe: Changing protocol to ImPS/2
(II) Mouse autoprobe: Changing protocol to ExplorerPS/2
(II) Mouse autoprobe: Changing protocol to ImPS/2
(II) 3rd Button detected: disabling emulate3Button
(II) Mouse0: PnP ID string: `(*'(*&('$()'
(II) Mouse0: PnP rev 6.47
(--) Mouse0: PnP-detected protocol: "ImPS/2"
(II) Mouse0: ps2EnableDataReporting: succeeded
(II) Mouse autoprobe: selecting ImPS/2 protocol
(II) Mouse autoprobe: Changing protocol to ExplorerPS/2
(II) Mouse0: PnP ID string: `(' ($ 8^_ 8^\ XESC^^8^Y 8ESC 8^] X^_^_X^_^_XESC^]X
^YESCX^V^ZX^T^XX^VESCX^V^\8^^ (" (% ($ (& (' (-!(+&(%'(!&( &8^^")'
(II) Mouse0: PnP rev 4.48
(--) Mouse0: PnP-detected protocol: "ImPS/2"
(II) Mouse0: ps2EnableDataReporting: succeeded
(II) Mouse autoprobe: selecting ImPS/2 protocol
(II) 3rd Button detected: disabling emulate3Button

Presumably the KVM is causing the switch to ExplorerPS/2 (whatever that is), and the Auto flag no allows it to switch back. Yay! (this is RH9 -- under RH7.x, it worked fine)

-te

Re:KVM switch and X

I have a Belkin SOHO 4 port KVM switch. With Redhat 9, I changed /etc/XF86Config as follows: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "Auto" Option "CorePointer" Option "SendCoreEvents" "true" Option "Device" "/dev/mouse" Option "ZAxisMapping" "4 5" Option "Buttons" "3" EndSection This solved the problem for me.

Re:KVM switch and X

I have been having a similar problem with both Redhat 8 and 9 and a Belkin 4 port switch. I fixed it by putting a Raritan keyboard/mouse emulator between the system and the Belkin. I guess somehow the emulator keeps X happy while you switch.

Re:KVM switch and X

Excellent, both of these fixes worked. I knew about <ctrl><alt><f1>, but didn't realize <ctrl><alt><f7> would bring me back. Also the <ctrl><alt><Backspace> worked great. Thanks for the help, I'm taking the rest of the week off to geek (or get familiar) with my Linux box. Aside from this site, are there some other good beginners sites for Red Hat? I'm network proficient, but not X and not UNIX. I have lately had to integrate some UNIX boxes with Windows 2000 networks I'm implementing, and have been impressed with some of the things I have seen. Also, is there a freeware X Client I can run on my Windows PC's?, I think I will start another thread for that question, but I appreciate the help.

Bill Curtis

Re:KVM switch and X

You can use <crtl><alt><backspace> (simultaneously) to kill the X server and drop you back to the console.

I had similar problems, and resolved it when I got a different mouse, and switched the protocol X was using. I think the problem stemmed from X initializing the mouse one way, then Windows boxes initializing the mouse another, and X not expecting it to have changed. (theory though... but it helped me when I switched protocols for the mouse under X.. YMMV)

-- Lesh

Re:KVM switch and X

I did some searching thru Linux newsgroups on google ([url=http://groups.google.com]groups.google.com[/url]) and someone mentioned hitting ctrl-alt-F1 to get a text console and then hitting ctrl-alt-F7 to go back to X. Supposedly, it will reinitialize the mouse when you do this. However, your original post said that the keyboard sometimes doesn't work when you switch either.

Bob

Re:KVM switch and X

If your keyboard works, you can hit to restart your X session. If you need to kill your X session, you should be able to type (no quotes), "ps -ef|grep X". I'd try the X "three finger salute" first. Bob Carpenter

Re:KVM switch and X

It's an EdiMax. I can power up each of my computers without them being selected, so it does allow detection of the mouse. I have a Windows 2000 Server, Windows 2000 Professional, Redhat 7.2, and Windows 98, and the only quirk I get is with the RedHat. Even on the terminal session, if I change off of it to another and come back to the Linux box, I can't use the mouse to select and copy stuff. Do you know the command I can use to find the process id's so I can kill the X session from another terminal? Really getting interrested in Windows 2000/Linux integration, but having to halt the system to reset the X window is getting a little tedius. I even upgraded from 7.0 to 7.2 hoping to get rid of this glitch. Bill

Re:KVM switch and X

What brand of KVM are you using? I remember our NT admin mentioning similar problems under Windows depending on whether the KVM told the OS that there still was a keyboard/mouse attached when you switched to another box. Bob