LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2019, 08:31 AM   #1
rotopercutor
LQ Newbie
 
Registered: Dec 2019
Posts: 6

Rep: Reputation: Disabled
Ctrl key and Alt key are acting as Shift key


I installed Linux Mint 19 Cinnamon a few days ago and found out that CTRL and ALT keys are working as SHIFT so i am unable to use most keyboard shortcuts.

I tried solving the problem in System Settings without success. Any help is appreciated.
 
Old 12-17-2019, 08:37 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,171
Blog Entries: 6

Rep: Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847
Got the right key map for the keyboard that you are using?

US english for example would be a QWERTY keyboard.
 
Old 12-17-2019, 08:41 AM   #3
rotopercutor
LQ Newbie
 
Registered: Dec 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Got the right key map for the keyboard that you are using?

US english for example would be a QWERTY keyboard.
Yes, i have English(US) keyboard layout
 
Old 12-17-2019, 10:45 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,158

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
Let's see what's happening. Run the command xev in a terminal emulator and see what you get. The results for the left Shift, Control, and Alternate should include
Code:
keycode 50 (keysym 0xffe1, Shift_L)
keycode 37 (keysym 0xffe3, Control_L)
keycode 64 (keysym 0xffe9, Alt_L)
If the keycodes are wrong, it's a hardware problem. If the bits in parentheses are wrong, it's a keyboard driver and we can tackle it.

Last edited by DavidMcCann; 12-18-2019 at 11:31 AM.
 
Old 12-17-2019, 11:03 AM   #5
rotopercutor
LQ Newbie
 
Registered: Dec 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
Let's see what's happening. Run the command xev in a terminal emulator and see what you get. The results for the left Shift, Control, and Alternate should include
[CODE]
keycode 50 (keysym 0xffe1, Shift_L)
keycode 37 (keysym 0xffe3, Control_L)
keycode 64 (keysym 0xffe9, Alt_L)
[CODE]
If the keycodes are wrong, it's a hardware problem. If the bits in parentheses are wrong, it's a keyboard driver and we can tackle it.
When i press Alt or Ctrl i only get the keycode 50 for Shift. Also, i always get 0xffe1 (Shift).

Last edited by rotopercutor; 12-17-2019 at 11:29 AM.
 
Old 12-18-2019, 11:33 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,158

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
So, Mint would seem to be not guilty. The keycode is what the keyboard is providing to the operating system. How about the keys on the right?
 
Old 12-19-2019, 06:12 AM   #7
rotopercutor
LQ Newbie
 
Registered: Dec 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
So, Mint would seem to be not guilty. The keycode is what the keyboard is providing to the operating system. How about the keys on the right?
Right Ctrl, Alt, Super and even right Shift are getting the keycodes for left shift and keysym 0xffe1.
 
Old 12-19-2019, 10:23 AM   #8
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,158

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
That definitely sounds like a hardware fault.
 
Old 12-19-2019, 10:36 AM   #9
rotopercutor
LQ Newbie
 
Registered: Dec 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
That definitely sounds like a hardware fault.
I'm not sure, my keyboard worked fine before installing Linux Mint so I thought it's a problem with my OS, i will reinstall it.
 
Old 12-19-2019, 10:52 AM   #10
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,693

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
If it's a standalone keyboard, do you have any other machines you can plug it into to test?

What type of keyboard is it - a simple one, or a macro/gaming one (which might do processing between the keys and the computer)?

What system were you running it against before upgrading?

Do you have any live USB/CD distros that you can boot to determine whether the OS is a factor?
 
Old 12-19-2019, 11:22 AM   #11
rotopercutor
LQ Newbie
 
Registered: Dec 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
If it's a standalone keyboard, do you have any other machines you can plug it into to test?

What type of keyboard is it - a simple one, or a macro/gaming one (which might do processing between the keys and the computer)?

What system were you running it against before upgrading?

Do you have any live USB/CD distros that you can boot to determine whether the OS is a factor?
I solved it, it was so simple. I had a Scorpion Order K650. I tried it on another PC and it worked. Now i tried a myria keyboard on my linux and it works fine. Thanks
 
  


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
[SOLVED] On Ctrl+Alt+F1 shows 1st console , but on Ctrl+Alt+F7 doesnt go back to GUI, startx deskt0plinux Ubuntu 5 05-22-2012 01:56 AM
XGL - Maximized Window Moves Offscreen CTRL ALT SHIFT Left/Right BillyGalbreath Linux - Software 0 03-25-2007 04:44 PM
How to change KDE default Ctrl+Alt+K for changing language into Alt+Shift sepetar Linux - General 9 01-04-2006 06:06 AM
How do you press Ctrl,Alt and shift? littertiger Programming 4 05-17-2005 03:00 AM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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