Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB wired MAC keyboard on Gentoo Linux (Xorg) missing keys
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Sun Sep 02, 2007 8:19 pm    Post subject: USB wired MAC keyboard on Gentoo Linux (Xorg) missing keys Reply with quote

Hello there!

I've got myself one of those fancy-looking MAC keyboards for the MAC MINI G4 on wich I'm running Gentoo on a year ago as my official home OS.
The problem is that I can't get it configured properly: I am spanish, so my MAC keyboard is spanish, obviously. The nearest perfect configuration approach was setting the XkbModel to "macintosh_g5" and the XkbLayout to "es". That goes fine for numbers, letters (even our particular enie letter) and characters activated by pressing the shift key as a modifier.
BUT I'am currently using this system for programming and scripting, so I need the special keys you can get on a PC keyboard with ALT-GR as modifier, souch as the pipe, and those won't come out with the Ctrl, Alt or Apple key as modifier.

I have tried with "pc105" as keyboard model, wth very similar results, and "macintosh" with vaery strange behaviour resulting in most letters gone or changed by numbers... any ideas??

Thanks, I am very near to a perfect Gentoo system on the G4 MAC!!
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Sep 05, 2007 1:11 pm    Post subject: Reply with quote

I dare to say that most of the Macintosh keyboard layouts are just plain wrong and outdated. I am Portuguese and I what I did was create a ~/.Xmodmap file specific for my keyboard layout. When I get into my GNOME desktop, the .Xmodmap file is automatically loaded and then all is well. The hard part is creating that file.

Here is mine:

Code:
keycode   8 =
keycode   9 = Escape
keycode  10 = 1 exclam
keycode  11 = 2 quotedbl at
keycode  12 = 3 numbersign EuroSign
keycode  13 = 4 dollar
keycode  14 = 5 percent
keycode  15 = 6 ampersand
keycode  16 = 7 slash braceleft
keycode  17 = 8 parenleft bracketleft
keycode  18 = 9 parenright bracketright
keycode  19 = 0 equal braceright
keycode  20 = apostrophe question
keycode  21 = plus asterisk
keycode  22 = BackSpace
keycode  23 = Tab ISO_Left_Tab
keycode  24 = q Q
keycode  25 = w W
keycode  26 = e E End
keycode  27 = r R
keycode  28 = t T
keycode  29 = y Y
keycode  30 = u U
keycode  31 = i I
keycode  32 = o O
keycode  33 = p P Pause
keycode  34 = masculine ordfeminine
keycode  35 = dead_acute dead_grave
keycode  36 = Return
keycode  37 = Control_L
keycode  38 = a A Home
keycode  39 = s S
keycode  40 = d D KP_Delete
keycode  41 = f F
keycode  42 = g G
keycode  43 = h H
keycode  44 = j J
keycode  45 = k K
keycode  46 = l L
keycode  47 = ccedilla Ccedilla
keycode  48 = dead_tilde dead_circumflex
keycode  49 = guillemotleft guillemotright
keycode  50 = Shift_L
keycode  51 = backslash bar
keycode  52 = z Z
keycode  53 = x X
keycode  54 = c C
keycode  55 = v V
keycode  56 = b B
keycode  57 = n N
keycode  58 = m M
keycode  59 = comma semicolon
keycode  60 = period colon
keycode  61 = minus underscore
keycode  62 = Shift_R
keycode  63 = KP_Multiply
keycode  64 = Alt_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 = F17
keycode  78 =
keycode  79 = KP_7
keycode  80 = KP_8
keycode  81 = KP_9
keycode  82 = KP_Subtract
keycode  83 = KP_4
keycode  84 = KP_5
keycode  85 = KP_6
keycode  86 = KP_Add
keycode  87 = KP_1
keycode  88 = KP_2
keycode  89 = KP_3
keycode  90 = KP_0
keycode  91 = period
keycode  92 =
keycode  93 = F16
keycode  94 = less greater
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 =
keycode 107 = Delete
keycode 108 = Return
keycode 109 = Control_R
keycode 110 =
keycode 111 =
keycode 112 = KP_Divide
keycode 113 = Alt_R
keycode 114 =
keycode 115 = Mode_switch
keycode 116 = Mode_switch
keycode 117 =
keycode 118 =
keycode 119 =
keycode 120 =
keycode 121 =
keycode 122 =
keycode 123 =
keycode 124 =
keycode 125 =
keycode 126 =
keycode 127 =
keycode 128 =
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 =
keycode 145 =
keycode 146 =
keycode 147 =
keycode 148 =
keycode 149 =
keycode 150 =
keycode 151 =
keycode 152 =
keycode 153 =
keycode 154 =
keycode 155 =
keycode 156 =
keycode 157 = KP_Equal
keycode 158 =
keycode 159 =
keycode 160 =
keycode 161 =
keycode 162 =
keycode 163 =
keycode 164 =
keycode 165 =
keycode 166 =
keycode 167 =
keycode 168 =
keycode 169 =
keycode 170 =
keycode 171 =
keycode 172 =
keycode 173 =
keycode 174 =
keycode 175 =
keycode 176 =
keycode 177 =
keycode 178 =
keycode 179 =
keycode 180 =
keycode 181 =
keycode 182 = F13
keycode 183 = F14
keycode 184 = F15
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 =
keycode 224 =
keycode 225 =
keycode 226 =
keycode 227 =
keycode 228 =
keycode 229 =
keycode 230 =
keycode 231 =
keycode 232 =
keycode 233 =
keycode 234 =
keycode 235 =
keycode 236 =
keycode 237 =
keycode 238 =
keycode 239 =
keycode 240 =
keycode 241 =
keycode 242 =
keycode 243 =
keycode 244 =
keycode 245 =
keycode 246 =
keycode 247 =
keycode 248 =
keycode 249 =
keycode 250 =
keycode 251 =
keycode 252 =
keycode 253 =
keycode 254 =
keycode 255 =


You can use xev to find out the keycodes for your keys. As I said, this could take a bit of work, but it's the best option, and you even get the chance to easily add a few more keybinding, if you want to. :D
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Sep 05, 2007 7:29 pm    Post subject: Reply with quote

Yes, the macintosh layouts are wrong, they're for the 2.4 kernel ADB driver. :)

Most of the time, the pc105 layout works, but if it doesn't come up with the correct layout and submit it to the X.org upstream developers so they can include support for your keyboard too.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum