LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-09-2004, 03:40 AM   #1
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Rep: Reputation: 30
Keyboard layout problem


Hi there!

I own a Logitech iTouch. And using xev I checked the keycodes for all special keys.

I copied the original xmodmap and edited it, so that the keycodes are mapped to some Fn keys.

Now I can use these Fn keys in KDE for whatever I like. This is not my problem. This works like it should.

The problem is now, that 1 key doesn't work like before. I checked the keycode an what it is mapped to, it is exactly the same as before... nothing changed in my own xmodmap-file.
It is this: When I press the key with <, > and | ... I always get the | .. no matter if I hold down shift or control ...

Does somebody know where that might come from?

Greetings, Sascha
 
Old 12-09-2004, 09:45 AM   #2
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
does it work if you use the old xmodmap?

post your new one anyway.
 
Old 12-09-2004, 10:41 AM   #3
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
Hi there!

Yes, it works with the old mapping!

This is the line from the new one:
keycode 94 = less greater bar brokenbar bar brokenbar

But I didn't touch this line! It is the original line!

Or shall I post the whole file?


Greetings, Sascha
 
Old 12-09-2004, 12:44 PM   #4
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
yes, post the whole file... as attachment is better then in-line.
 
Old 12-09-2004, 01:27 PM   #5
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
Ok.. this will take some time... but I will do so tomorrow :-) Stay tuned :-)
 
Old 12-09-2004, 04:09 PM   #6
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
don't have to copy it manually, i think you can attach the file.
 
Old 12-10-2004, 06:38 AM   #7
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
Hi!
Sorry for the delay... I would like to attach the file, but I am not allowed to attach!

So, here is the file:

--------------------------------------------------------------------
[~/.kde/Autostart]$ cat ~/.Xmodmap
keycode 8 =
keycode 9 = Escape
keycode 10 = 1 exclam 1 exclam onesuperior exclamdown
keycode 11 = 2 at 2 quotedbl twosuperior oneeighth
keycode 12 = 3 numbersign 3 section threesuperior sterling
keycode 13 = 4 dollar 4 dollar onequarter currency
keycode 14 = 5 percent 5 percent onehalf threeeighths
keycode 15 = 6 asciicircum 6 ampersand notsign fiveeighths
keycode 16 = 7 ampersand 7 slash braceleft seveneighths
keycode 17 = 8 asterisk 8 parenleft bracketleft trademark
keycode 18 = 9 parenleft 9 parenright bracketright plusminus
keycode 19 = 0 parenright 0 equal braceright degree
keycode 20 = minus underscore ssharp question backslash questiondown
keycode 21 = equal plus acute grave cedilla cedilla
keycode 22 = BackSpace Terminate_Server
keycode 23 = Tab ISO_Left_Tab
keycode 24 = q Q q Q at Greek_OMEGA
keycode 25 = w W w W lstroke Lstroke
keycode 26 = e E e E EuroSign EuroSign
keycode 27 = r R r R paragraph registered
keycode 28 = t T t T tslash Tslash
keycode 29 = y Y z Z leftarrow yen
keycode 30 = u U u U downarrow uparrow
keycode 31 = i I i I rightarrow idotless
keycode 32 = o O o O oslash Ooblique
keycode 33 = p P p P thorn THORN
keycode 34 = bracketleft braceleft udiaeresis Udiaeresis diaeresis diaeresis
keycode 35 = bracketright braceright plus asterisk asciitilde macron
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a A a A ae AE
keycode 39 = s S s S ssharp section
keycode 40 = d D d D eth ETH
keycode 41 = f F f F dstroke ordfeminine
keycode 42 = g G g G eng ENG
keycode 43 = h H h H hstroke Hstroke
keycode 44 = j J
keycode 45 = k K k K kra ampersand
keycode 46 = l L l L lstroke Lstroke
keycode 47 = semicolon colon odiaeresis Odiaeresis doubleacute doubleacute
keycode 48 = apostrophe quotedbl adiaeresis Adiaeresis asciicircum asciicircum
keycode 49 = grave asciitilde asciicircum degree notsign notsign
keycode 50 = Shift_L
keycode 51 = backslash bar numbersign apostrophe grave grave
keycode 52 = z Z y Y guillemotleft less
keycode 53 = x X x X guillemotright greater
keycode 54 = c C c C cent copyright
keycode 55 = v V v V leftdoublequotemark grave
keycode 56 = b B b B rightdoublequotemark apostrophe
keycode 57 = n N
keycode 58 = m M m M mu masculine
keycode 59 = comma less comma semicolon horizconnector multiply
keycode 60 = period greater period colon periodcentered division
keycode 61 = slash question minus underscore dead_belowdot abovedot
keycode 62 = Shift_R
keycode 63 = KP_Multiply XF86_ClearGrab
keycode 64 = Alt_L Meta_L
keycode 65 = space
keycode 66 = Caps_Lock
keycode 67 = F1 XF86_Switch_VT_1
keycode 68 = F2 XF86_Switch_VT_2
keycode 69 = F3 XF86_Switch_VT_3
keycode 70 = F4 XF86_Switch_VT_4
keycode 71 = F5 XF86_Switch_VT_5
keycode 72 = F6 XF86_Switch_VT_6
keycode 73 = F7 XF86_Switch_VT_7
keycode 74 = F8 XF86_Switch_VT_8
keycode 75 = F9 XF86_Switch_VT_9
keycode 76 = F10 XF86_Switch_VT_10
keycode 77 = Num_Lock Pointer_EnableKeys
keycode 78 = Scroll_Lock
keycode 79 = KP_Home KP_7
keycode 80 = KP_Up KP_8
keycode 81 = KP_Prior KP_9
keycode 82 = KP_Subtract XF86_Prev_VMode
keycode 83 = KP_Left KP_4
keycode 84 = KP_Begin KP_5
keycode 85 = KP_Right KP_6
keycode 86 = KP_Add XF86_Next_VMode
keycode 87 = KP_End KP_1
keycode 88 = KP_Down KP_2
keycode 89 = KP_Next KP_3
keycode 90 = KP_Insert KP_0
keycode 91 = KP_Delete KP_Decimal KP_Delete KP_Separator
keycode 92 = Print Sys_Req
keycode 93 = Mode_switch
keycode 94 = less greater bar brokenbar bar brokenbar
keycode 95 = F11 XF86_Switch_VT_11
keycode 96 = F12 XF86_Switch_VT_12
keycode 97 = Home
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 101 =
keycode 102 = Right
keycode 103 = End
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
keycode 107 = Delete
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 110 = Pause Break
keycode 111 = Print Sys_Req
keycode 112 = KP_Divide XF86_Ungrab
keycode 113 = Alt_R Meta_R ISO_Level3_Shift Multi_key
keycode 114 = Pause Break
keycode 115 = Super_L
keycode 116 = Super_R
keycode 117 = Menu
keycode 118 =
keycode 119 =
keycode 120 =
keycode 121 =
keycode 122 =
keycode 123 =
keycode 124 = ISO_Level3_Shift
keycode 125 = NoSymbol Alt_L
keycode 126 = KP_Equal
keycode 127 = NoSymbol Super_L
keycode 128 = NoSymbol Hyper_L
keycode 129 =
keycode 130 =
keycode 131 =
keycode 132 =
keycode 133 =
keycode 134 =
keycode 135 =
keycode 136 =
keycode 137 =
keycode 138 =
keycode 139 =
keycode 140 =
keycode 141 =
keycode 142 =
keycode 143 =
keycode 144 = F20
keycode 145 = F17
keycode 146 = F19
keycode 147 = F32
keycode 148 = F33
keycode 149 = F34
keycode 150 =
keycode 151 =
keycode 152 =
keycode 153 = F21
keycode 154 =
keycode 155 =
keycode 156 = NoSymbol Meta_L
keycode 157 =
keycode 158 =
keycode 159 =
keycode 160 = F27
keycode 161 =
keycode 162 = F22
keycode 163 =
keycode 164 = F23
keycode 165 =
keycode 166 =
keycode 167 =
keycode 168 =
keycode 169 =
keycode 170 =
keycode 171 =
keycode 172 =
keycode 173 =
keycode 174 = F26
keycode 175 =
keycode 176 = F25
keycode 177 =
keycode 178 = F19
keycode 179 =
keycode 180 =
keycode 181 =
keycode 182 =
keycode 183 =
keycode 184 =
keycode 185 =
keycode 186 =
keycode 187 =
keycode 188 =
keycode 189 =
keycode 190 =
keycode 191 =
keycode 192 =
keycode 193 =
keycode 194 =
keycode 195 =
keycode 196 =
keycode 197 =
keycode 198 =
keycode 199 =
keycode 200 =
keycode 201 =
keycode 202 =
keycode 203 =
keycode 204 =
keycode 205 =
keycode 206 =
keycode 207 =
keycode 208 =
keycode 209 =
keycode 210 =
keycode 211 =
keycode 212 =
keycode 213 =
keycode 214 =
keycode 215 =
keycode 216 =
keycode 217 =
keycode 218 =
keycode 219 =
keycode 220 =
keycode 221 =
keycode 222 =
keycode 223 = F13
keycode 224 =
keycode 225 =
keycode 226 =
keycode 227 =
keycode 228 =
keycode 229 = F29
keycode 230 = F35
keycode 231 =
keycode 232 =
keycode 233 = F31
keycode 234 = F30
keycode 235 =
keycode 236 = F14
keycode 237 = F24
keycode 238 =
keycode 239 =
keycode 240 =
keycode 241 =
keycode 242 =
keycode 243 =
keycode 244 =
keycode 245 =
keycode 246 = F28
----------------------------------------
After this no mappings so I cut off

I hope this may help somehow!

Greetings, sascha
 
Old 12-10-2004, 07:54 AM   #8
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
check that key again with xev, trying to digit <, > and | as you would normally do, then see if you can post the full KeyRelease event output you get for the 3 characters.
 
Old 12-10-2004, 08:42 AM   #9
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
Hi!

Ok ... so here we go:

This is from pressng the key itself (should be > but is |):
KeyRelease event, serial 29, synthetic NO, window 0x2600001,
root 0x148, subw 0x0, time 154634, (115,165), root:(119,197),
state 0x2000, keycode 94 (keysym 0x7c, bar), same_screen YES,
XKeysymToKeycode returns keycode: 51
XLookupString gives 1 bytes: (7c) "|"

This one from pressing while holding shift-key (should be < but is ):
KeyRelease event, serial 29, synthetic NO, window 0x2600001,
root 0x148, subw 0x0, time 204700, (98,154), root:(102,186),
state 0x2001, keycode 94 (keysym 0xa6, brokenbar), same_screen YES,
XLookupString gives 1 bytes: (a6) ""

And this one from holding AltGr-key ( should be | and is |):
KeyRelease event, serial 29, synthetic NO, window 0x2600001,
root 0x148, subw 0x0, time 248234, (26,150), root:(30,182),
state 0x2080, keycode 94 (keysym 0x7c, bar), same_screen YES,
XKeysymToKeycode returns keycode: 51
XLookupString gives 1 bytes: (7c) "|"

Hope this helps :-)
 
Old 12-10-2004, 04:36 PM   #10
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
ok, try removing "bar" from the 'keycode 51' line in your .Xmodmap and see if it works; if it still doesn't work, post the KeyRelease events you get using the old .Xmodmap
 
Old 12-10-2004, 05:01 PM   #11
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
also delete from the 'keycode 94' line the last "bar brokenbar"
 
Old 12-11-2004, 07:41 AM   #12
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
Ok, I did both changes ... nothing changed ...and here are the keyrealeses ... first is only the key.. second with shift and third with AltGr

KeyRelease event, serial 29, synthetic NO, window 0x2600001,
root 0x148, subw 0x0, time 258828, (289,786), root293,818),
state 0x2000, keycode 94 (keysym 0x7c, bar), same_screen YES,
XLookupString gives 1 bytes: (7c) "|"

KeyRelease event, serial 29, synthetic NO, window 0x2600001,
root 0x148, subw 0x0, time 271270, (153,395), root157,427),
state 0x2001, keycode 94 (keysym 0xa6, brokenbar), same_screen YES,
XLookupString gives 1 bytes: (a6) ""

KeyRelease event, serial 29, synthetic NO, window 0x2600001,
root 0x148, subw 0x0, time 285915, (490,791), root494,823),
state 0x2080, keycode 94 (keysym 0x7c, bar), same_screen YES,
XLookupString gives 1 bytes: (7c) "|"


Hope this helps.. :-)

Thanks for your help so far!

Greetings, Sascha
 
Old 12-11-2004, 06:14 PM   #13
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
try removing also "less" from 'keycode 59', and "greater" from 'keycode 60', i really hope that helps...
 
Old 12-11-2004, 06:32 PM   #14
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Trying to figure out somethings for xmodmap myself and have a question on an above list.

What does ' keycode 174 = F26 '?
Where do you define F26?
What does F26 do?

Thanks for your time.
Brian1
 
Old 12-12-2004, 03:35 AM   #15
theonebeyond
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.0
Posts: 258

Original Poster
Rep: Reputation: 30
@jnsenit

Thanks for the tip; but didn`t work .. too bad .. but it changed my . to : and some other funny things...
Man, this is really weired, isn`t it?

@Brian1
This is the keycode of one of the multimedia keys on my keyboard. And I map a Key like F26 or F24 or so to it.. because it is no real key on my keyboard... so it cannot be "pressed" like a real F1 or F2 ... F12 ... But when mapped to the multimedia key, it looks like there would be a real F26-key. And if it looks like there is one key... I can use it. So I map all my multimediakeys to F13-F40(?) and assign some functionality to it, in the keyboardlayout of KDE ... Like I controll xmms with them and start Firefox or Thunderbird ... I hope this was enough and understandble ??? If not, please ask

Thanks guys, greetings, Sascha
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM
keyboard layout acidjuice Slackware 10 02-22-2005 08:51 AM
X.org keyboard layout problem drigz Linux - Software 4 08-20-2004 07:27 AM
Keyboard Layout orlenok Linux - Newbie 2 10-05-2003 09:53 PM
uk keyboard layout in X fateslack Linux - Newbie 1 02-28-2003 04:27 PM


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