LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-23-2008, 12:21 AM   #1
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 162

Rep: Reputation: 23
Keyboard and mouse freezing


Occasionally when I move the mouse or (less often) when I'm typing, the keyboard and mouse will both freeze. They are completely unresponsive. Typing or moving the mouse does nothing. I've tried the numlock and capslock keys, but the keyboard LEDs do not change.

I'm using a PS/2 mouse and keyboard. I've tried unplugging and replugging the mouse and keyboard, but this does not fix the problem. If I plug in a USB mouse, the USB mouse will work fine. I don't have a USB keyboard to test.

To me it seems like the computer stops servicing the keyboard and mouse interrupts. Otherwise the computer seems fine since I can SSH into it. Here are some interesting things I've found:

The number of interrupts from IRQs 1 and 12 (keyboard and mouse, respectively) do not change, as reported by /proc/interrupts.

This time it froze when using the keyboard (IRQ 1).
Code:
# cat /proc/irq/1/spurious 
count 700
unhandled 1
last_unhandled 252768 ms
unhandled seems to always be 0 when it's not frozen, and 1 when it is. I don't know if the timestamp matches when the keyboard froze or not, but it's usually within 10 minutes.

I've taken a multimeter to the PS/2 ports on the back of the computer. It looks like the computer is forcing the clock signal to ground on both PS/2 ports, inhibiting the mouse and keyboard from sending any data.

Any ideas on how to fix this?
 
Old 12-23-2008, 07:28 AM   #2
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Rep: Reputation: 34
Is this a momentary thing, or do you have to restart to get the devices working?
If momentary, try running the top command (or use system guard) to see if it a result of 100% CPU utilistion and which process is hogging the resources.
 
Old 12-23-2008, 01:57 PM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
What's the longest you have waited for it to "thaw"?

I prefer htop, but whichever you use try sshing in & checking for hoggish processes.

Or if you're willing, set up htop in a root window in advance; then, the next time you have this problem, plug in your USB mouse & use it to goto htop. It's interactive, so you may be able to kill a rogue process w/o rebooting.
 
Old 12-23-2008, 06:06 PM   #4
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 162

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by htnakirs View Post
Is this a momentary thing, or do you have to restart to get the devices working?
It never unfreezes. I have to restart for it to work again. No processes are hogging the processor either.

I've seen the problem occur on one other machine running a different OS (windows 98; this one runs ubuntu). Maybe it's a hardware problem or a driver problem?
 
Old 12-24-2008, 07:51 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
  1. What is your mobo? (w/ mfrs. info. link(s), please)
  2. Have you Googled this problem w/ it?
  3. Have you run any other OS's or distros? -- Did you have the problem?
 
Old 12-24-2008, 11:25 AM   #6
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 162

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by archtoad6 View Post
  1. What is your mobo? (w/ mfrs. info. link(s), please)
  2. Have you Googled this problem w/ it?
  3. Have you run any other OS's or distros? -- Did you have the problem?
  1. Jetway J7F4K1G5D
  2. Google doesn't turn up anything for me.
  3. Not yet on this board, but I'm working on it.
 
Old 04-16-2009, 04:55 AM   #7
Paraply
Member
 
Registered: Jun 2007
Posts: 53

Rep: Reputation: 15
Keyboard and mouse freezing

Quote:
Originally Posted by elyk View Post
Occasionally when I move the mouse or (less often) when I'm typing, the keyboard and mouse will both freeze. They are completely unresponsive. Typing or moving the mouse does nothing. I've tried the numlock and capslock keys, but the keyboard LEDs do not change.

I'm using a PS/2 mouse and keyboard. I've tried unplugging and replugging the mouse and keyboard, but this does not fix the problem. If I plug in a USB mouse, the USB mouse will work fine. I don't have a USB keyboard to test.
Not meaning to hijack your thread, elyk, but your description fits my problem *exactly*. A cold reboot is usually necessary for me to get the mouse (and, ocasionally, keyboard) working again. I have three different Linux distros on this box and the problem appears to be the same with all of them. Since they are of different 'age', i.e. use different kernel and Xorg versions, I have ruled out Linux software as the cause.

Motherboard: http://www.gigabyte.com.tw/Products/...ProductID=1857
Mouse: Trust MI-6200
Keyboard: Dell; PRODUCT NO. ALPSCL188XX, made in Ireland, Family No.: AT101-102 (an old 'generic' type keyboard...)
KVM-switch: Aten (mouse/keyboard/video/sound for 2 PC's)

Googling for the keyboard product number, I came across this
http://www.dnull.com/bsd/oldnews/bsdnew29246.html

I have been wondering if it might be as 'simple' as the keyboard having become dirty/dusty. This because my keyborad IS dusty, and because the problem has only appeared the last month, after more than 3 years without any problems on the same hardware. The mouse is relatively new, though, only about 6 months, but the problem is only a few weeks old...

Update:
It turns out the mouse itself is the culprit. Probably the lousy thin cord. No more Trust products with my systems.

Last edited by Paraply; 04-19-2009 at 05:08 AM. Reason: Problem solved.
 
Old 04-19-2009, 07:45 PM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
  1. If a multimeter shows an electrical problem on the PS/2 ports when the system is frozen, then I think it's a defective mobo; unless there is an outside chance that there something wrong w/ your keyboard, your mouse, or both: Do you have/can you borrow a different keyboard & mouse to eliminate this possibility?
  2. BTW:
    1. How long have you had it?
    2. How did you had pick it?
  3. BTW 2, how much RAM does it support -- I found no spec. for that at the link you so kindly provided.
  4. Is getting a USB keyboard an option for you?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard freezing while installing fedora aboereau Linux - Software 1 03-03-2006 07:08 PM
mouse freezing in KDE 3.5, keyboard still works x94qvi Linux - Software 4 01-22-2006 09:23 AM
keyboard freezing azodai666 Linux - Hardware 7 07-24-2005 08:41 AM
[SuSE] aMSN freezing all keyboard in KDE?? JordanH Linux - Software 0 07-21-2004 10:58 PM
freezing keyboard chiu_p Linux - General 1 07-01-2003 10:37 AM


All times are GMT -5. The time now is 07:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration