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 - 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 03-16-2008, 08:08 PM   #1
gothicbob
Member
 
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Rep: Reputation: 16
keyboard broken, constantly pressed shift key


Well I was going to post this in the laptop forum, but I guess its kinda more relevant to hardware. I've got a laptop running kubuntu 7.10, and it was all running fine until one day when I realised I could no longer log in, I eventually found out that it one of the shift keys seemed to be pressed.

I thought it was properly some crap holding the key down or something so I took off both shift keys, but still they seem held down. I even hit my laptop a few times, but that didn't help either. Every now and then when running the laptop the shift key will return to normal, but it always comes back.

As my password has a number in it, the only way I can log in is to use a usb keyboard (as I can use caps lock to cancel the shift for the letters but it wont allow the numbers to be pressed). This would be a solution, however the mouse is still affected by the shift key from the laptop keyboard (it tries to shift-click instead of clicking)

Is there a way I can delete the shift key from having any effect on the laptop?
 
Old 03-16-2008, 08:19 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
to do lower case .....when not stuck....type as normal.

WHEN SHIFT IS DOWN TRY turning on the cap lock>>>>>it reverses the shift
 
Old 03-16-2008, 08:35 PM   #3
gothicbob
Member
 
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Original Poster
Rep: Reputation: 16
caps lock + shift key, wont let me type any numbers or special chars

(try pressing shift with caps lock to press 7, then try without caps lock... you get & both times.)
 
Old 03-16-2008, 09:15 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Do you know which shift key is causing the problem? You can disable shift keys in X using xmodmap. For example, to clear all shift modifiers:
Code:
xmodmap -e "clear Shift"
To add back the left shift key to see if it’s the problem:
Code:
xmodmap -e "add Shift Shift_L"
To add back the right shift key to see if it’s the problem:
Code:
xmodmap -e "add Shift Shift_R"
You will obviously need to use Capslock to capitalize the appropriate letters (e.g., in “Shift_L”).

If both keys are bad, you might turn your Caps Lock into a Shift (instead of a Lock).

Note that the above might not carry over into libraries which make use of low-level keyboard events (e.g., SDL). In order to eradicate the troublesome key completely, you will need to make the change at the kernel level.
 
Old 03-16-2008, 09:57 PM   #5
gothicbob
Member
 
Registered: Sep 2005
Location: Birmingham / Bath Uk
Distribution: Kubuntu 8.10, Debain 4.0
Posts: 86

Original Poster
Rep: Reputation: 16
ah thats very helpful, thanks I'll try that tomorrow and let you know how it turns out.

Thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
shift key of my keyboard wont work attockonian Linux - Hardware 7 09-09-2010 07:09 AM
Which ioctl to use to get the key pressed in the key board? Sreeram B S Linux - Kernel 0 02-24-2007 02:02 AM
RHEL 3 - Keyboard send several chars when key pressed once lmx Red Hat 1 01-29-2005 11:46 PM
is certain key pressed at the moment ?? freeborn Programming 4 11-03-2004 03:13 AM
Left Shift key on keyboard fails intermittently WHY?!?! LaidBackWebSage Linux - Hardware 5 09-01-2004 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:24 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