LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-26-2012, 10:22 PM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
How to identify the list of all "assigned functions" of keycodes


Hi all.

I will be grateful, if I could let be known as to how to display the assigned functions of all keycodes (on Fedora 14).

I require this, as I am debugging an issue, wherein a keycode that has been assigned as a capslock, is working on Fedora 11, but not on Fedora 14.

For brevity, here is the content of "~/xmodmap.conf" ::
Code:
keycode 133 = Caps_Lock
add Lock = Caps_Lock
Looking forward to a reply.

Regards,
Ajay
 
Old 02-27-2012, 03:41 AM   #2
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Specifically, I get the message

Code:
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  118 (X_SetModifierMapping)
  Value in failed request:  0x17
  Serial number of failed request:  12
  Current serial number in output stream:  12
when I run the command on Fedora 14 (it works fine on Fedora 11, though).

Code:
xmodmap -e 'add Lock = Caps_Lock'

I have tried the solutions at https://bbs.archlinux.org/viewtopic.php?id=83946, but nothing seems to work.

Would any Fedora guys mind telling what might be the issue of this regression? I will be grateful :-)

Regards,
Ajay
 
Old 02-27-2012, 11:58 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I don't think you're going to find many users of Fedora 14 still around! That's out of date and unsupported.

Personally, I've always avoided xmodmap and modified the keyboard driver directly (I've got the caps-lock where the pause used to be, replaced by level 3 shift). In /usr/share/X11/xkb/keycodes/evdev you've got
<CAPS> = 66;
<LWIN> = 133;
and so on. Alter those to
<CAPS> = 133;
and whatever you want 66 to do, and that does it. Don't have two numbers assigned to the same code: that can cause trouble.
 
1 members found this post helpful.
Old 02-28-2012, 01:51 AM   #4
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
@DavidMcCann

Thanks Champ. It worked !!

To top it, it also answers the thread-question perfectly :-)

Thanks and Regards,
Ajay
 
  


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
"Multicolumn" or "tiles", or even "list" icon view on desktop, in any DE? the dsc Linux - Desktop 3 02-20-2010 09:25 AM
Occasionally-- "connected with self-assigned address," "deactivating device eth0" MaxIBoy Debian 4 10-04-2009 10:50 AM
How to read "identify" button press event, or state of "identify" blue led with IPMI? iav Linux - Server 0 01-27-2009 01:13 PM
C/C++ functions similar to BASH's "cp", "mv", "mkdir", etc? kornerr Programming 10 04-23-2006 09:48 AM

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

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