LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-21-2003, 01:38 AM   #1
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Unlocking a "frozen" keyboard / mouse


On rare occasions (maybe once every 3 months) I manage to fubar my system such that neither the keyboard nor the mouse is responsive, very much like what happens with my Windows box at the office about every few days. This typically only happens when I am running a lot of apps (multiple Mozilla windows, multiple console windows, Evolution, XMMS, Wine, etc) but at the same time, my rig has 1G of Kingston RAM so I'm not expecting it to hang. What's frustrating is that if either the keyboard or the mouse worked, I could easily get out of this situation. Other facts: I've got a Belkin 2 port KVM, and frequently toggle between boxen (both running Slack v9.0) and if I do get into this infrequent condition, my monitor freezes too (ie, the clock no longer ticks, etc). The thing is just hosed, and the only way I've been able to get out of it is a by doing a hard reboot.

Attempting to Alt-F2, or alt-ctl-del to close the session, etc, is useless, because as I mentioned, it's as if the keyboard is disconnected. Likewise, I've got an optical mouse, and in this frozen state the light turns off as if it's disconnected. I've tried un- and re-plugging the mouse and/or the keyboard on the KVM, but that doesn't have any effect. If anyone has any suggestions on how to revive either the keyboard or mouse, I'd definitely be interested in any feedback. This has only happened twice the entire year, so it's not as if it's a major problem, but if there's a way to resolve it without rebooting I'd definitely be interested in learning. Thanks, sorry for the long post. -- J.W.
 
Old 11-21-2003, 01:56 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
had that scenario mostly with Red hat machines. if it's in a network, try pinging it or try to login. if that doesn't respond, there is no other thing to do but reboot.

try checking your xsession-error log files in your home directory for any hints.
 
Old 11-21-2003, 09:07 AM   #3
tek8one
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
I have experienced several similar issues with belkin kvms before. I have 2 units, a 2-port (without power cord) and a 4-port (with power cord). I got rid of the 2 port because it was constantly losing the mouse when switching between 2 Windows 2000 Pro boxes. Sometimes, i wouldn't even get a mouse at startup! I replaced it with a nice Linksys kvm (with power cord). I have had no problems what-so-ever for 6 months now. Unfortunately, I still have the 4-port belkin kvm. Most of the time it works fine, but on a few occasions, the mouse goes crazy when I switch to Linux (never seen it happen with windows boxes).

Anyways, I'd suggest getting a different brand kvm with a power cord if you can afford it. The units that rely on power from PS/2 or USB aren't as reliable as ones with a cord. As I said earlier in the post, I suggest Linksys. Works great and looks good to boot. Their 4-port kvm runs around $120 last I checked.

Tek
 
Old 11-21-2003, 10:03 AM   #4
LunaticManiac
LQ Newbie
 
Registered: Nov 2003
Location: Inside my Linux Box
Distribution: Redhat Linux 9
Posts: 9

Rep: Reputation: 0
You can find the Linksys KVM around 80 bucks, but you've gotta look real hard, I've found them for even cheaper, around 40, but that's because I had a couple of friends who worked at places who let me know when things were up cheap.

As far as the keyboard/mouse freeze goes, I've had a very similar problem actually occur in the last couple of days...and, yes..go figure, I was running the new Redhat. My systems a bit low key, I was only running the up2date program and mozilla before the system locked up and mouse and keyboard went unresponsive. The strange thing was that the caps lock and scroll lock lights flashed at me...it might be a different problem than what your experiencing, so it just all depends...

I ended up having to do a hard reboot, but there wasn't anyway around it. Good luck with your system though.
 
Old 11-21-2003, 11:11 AM   #5
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Whenever my system 'freezes' I can use my pc's acpi power management to shut down properly with the power button. Another thing you might want to look into is the SysRq key. I think if you enable it in the kernel, the kernel will respond to that key no matter what (even if X is hogging it up & freezes).
Edit: I can also reprogram the power button to do whatever I want.

Last edited by aaa; 11-21-2003 at 11:13 AM.
 
Old 11-22-2003, 12:12 AM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Original Poster
Rep: Reputation: 87
Thanks everyone for the feedback. I definitely will consider ditching the Belkin 2-port in place of a Linksys 4-port, as I am looking hard at getting a laptop in the near future and therefore would outgrow the 2 port anyway. I also have certain questions regarding Belkin in general, if you are interested you may check this out on Slashdot: http://slashdot.org/article.pl?sid=0...&tid=95&tid=99

In any event this lockup issue is pretty small potatoes, but considering how totally stable Slack is, and how stoked I am about my rig in general (since it has never let me down) this rare "freeze" condition is just totally out of character. If an external device like the KVM could be the cause, spending some bucks on a replacement might be justified. Thanks again for the tips on the Linksys.

aaa - your post is interesting but if I'm understanding it correctly, let me clarify that the issue isn't that X seems to end up hogging 100% of the CPU, but rather, the keyboard and mouse act (for all practical purposes) as if they are no longer connected to my box. The behavior is exactly as it would be if you were to just pull the plugs for the keyboard and mouse. After thinking about this some more, I'm thinking that there probably isn't anything I can do from an input device to break this frozen condition, as those devices might as well not exist anymore when this happens. In any event, can you describe how to assign your own functions to the power button? That sounds really cool. -- J.W.
 
Old 11-24-2003, 01:57 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
I had some freeze-ups due to crashes in KDE (Konqueror, I believe). Though I can't offer a remedy, just as an aside I was very happy to have a journalling file system (Reiser in my case). If you don't use them already you might want to consider them now .
 
Old 11-24-2003, 02:12 AM   #8
meldroc
Member
 
Registered: Aug 2003
Posts: 102

Rep: Reputation: 15
If you have another system handy, you can use it to ssh into your hosed box. Then you can restart X, shut down gracefully, etc.
 
Old 11-24-2003, 02:26 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by meldroc If you have another system handy, you can use it to ssh into your hosed box. ...
I don't. Not to mention that theses boxes would have to be connected by hardware and system requirements beforehand. Would it not be easier to just have a second keyboard? I mean, we have a multiuser system -- so login as a second user and off we go -- I just would not know how to go about it and how to set up the startup routine so I could use a single screen (no room for two CRTs).
 
Old 11-24-2003, 05:25 AM   #10
8nasmith
Member
 
Registered: Oct 2003
Location: Cornwall, UK
Distribution: Fedora Core 4
Posts: 268

Rep: Reputation: 30
are wirless keyboard and mice compatable with linuxc i dont want to risjk it
 
Old 11-24-2003, 05:26 AM   #11
8nasmith
Member
 
Registered: Oct 2003
Location: Cornwall, UK
Distribution: Fedora Core 4
Posts: 268

Rep: Reputation: 30
sorry about my spelling

ive said that a lot
 
Old 11-24-2003, 06:06 AM   #12
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by 8nasmith
are wirless keyboard and mice compatable with linuxc i dont want to risjk it
USB is supported, so that would be a viable alternative.
 
Old 11-25-2003, 02:55 AM   #13
meldroc
Member
 
Registered: Aug 2003
Posts: 102

Rep: Reputation: 15
Another idea: If you could find an old VT-100 terminal or put together a frankenbox with some sort of terminal emulation, you can plug it into your Linux box's serial port and log in that way.

I'm really not sure if Linux knows how to deal with multiple mice or multiple keyboards.

As for wireless, I use a wireless Logitech mouse with the receiver plugged into USB on my system. Works great. I see no reason why a wireless keyboard wouldn't work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.0: X setting won't "stick"; mouse & keyboard not properly detected Livino SUSE / openSUSE 1 10-30-2005 03:51 AM
Attention "Frozen Bubble" Junkies The Bad Penny General 1 10-20-2005 10:29 PM
"numlock" and "capslock" freeze keyboard evilchild SUSE / openSUSE 2 07-04-2005 10:39 AM
"<" ">" Keyboard keys on Toshiba Satellite 1005-s157 dont work RodCas Linux - Laptop and Netbook 1 05-08-2004 04:22 PM
USB mouse support thru usb "hub" of MS keyboard.. zeppelin Linux - Hardware 3 07-29-2003 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration