Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mac Keyboards
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
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Thu Sep 02, 2004 5:42 am    Post subject: Mac Keyboards Reply with quote

I know this is an used and boring topic - the Mac keyboard layouts for non-us keyboards. Don't know if "us" layout users have the same problem to.
It doesn`t seem as if there is any "official" howto to solve the problem of more or less important keys like @, ~, |, {} and [] :wink:
Assuming there is a mass of international mac ppc gentoo users out there in this big wide world of ours I ask myself, how do all the others handle this delicate problem?
What I tried:
- compiled the ADB thing in the kernel (not the RAW option)
- set the Keyboard to "macintosh" in XF86Config
- also tried "pc105" in XF86Config
- followed this howto http://www.yellowdoglinux.com/support/
solutions/ydl_general/keyboard_german.shtml

without success.

So, what I wish to know is - could we make a sticky out of such a topic, or is the solution so simple that it`s not worth it (and I don't see it :lol:).
Is there an easy workaround for this?
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Thu Sep 02, 2004 9:53 am    Post subject: Reply with quote

I have a PB 15" with a UK keyboard.

My machine is setup to use UTF-8 and the characters displayed in the console and in X exactly match what's printed on the keyboard.

I had to create an xkb keymap and console keymap for my powerbook. You can find them at http://l003026.zseriespenguins.ihost.com/~gnome/gentoo/

Take a look at the xorg.conf (not the XF86Config-4, which is old), XKB keymap and console keymap files.

Hope this helps
_________________
http://markferry.net
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Fri Sep 03, 2004 5:43 am    Post subject: Reply with quote

Thanks. I'm afraid it won't work because I have a german keyboard.
Back to top
View user's profile Send private message
Denwid
n00b
n00b


Joined: 14 Apr 2005
Posts: 2

PostPosted: Wed Apr 20, 2005 9:04 am    Post subject: Reply with quote

I have exactly this problem, too. I'm on a 466Mhz iBook and have a swiss-german keyboard layout.
Is there any other solution then writing my own keymap? I'm quite a noob and i don't know how i would do such a thing.
Maybe there is atleast some "standard" Apple laptop keymap, which enables the alt key or the function key? At the moment i'm using the "de" keymap, because this is where most of the braces and other special signs are available, but i can't write any ä or ö and so on...
I've tried the de_CH-latin1 keymap, too. But that was even worse than the de.

And by the way: I don't know why, but i was unable to download the uk powerbook keymap from your site, gnomeza.
_________________
VENI, VIDI, VICI
Back to top
View user's profile Send private message
Letscho
n00b
n00b


Joined: 27 Jan 2005
Posts: 17
Location: Dresden, Germany

PostPosted: Wed Apr 20, 2005 10:54 am    Post subject: Reply with quote

With
Code:

xmodmap -pke

the actuall keymap under X is shown.

You can make changes to this keymap with your own .Xmodmap.
Read the manpage of xmodmap, the most things are explained there.

Sorry, but i can't post my .Xmodmap file from my ibook, because it's at home :-(

If you need the keycodes of some keys, use
Code:
xev

and hit a key. It will show you the keycode.

The Syntax of a row is like
keycode = (hit normal) (hit with SHIFT pressed) (hit with ALTGR pressed) ...
I'm not sure, i haven't the man page here, sorry.

AltGr is called Mode_shift i think. Maybe this will help you.

Try to google after ".Xmodmap apple" or a similar phrase. Maybe you will find, what you are looking for.
Back to top
View user's profile Send private message
Letscho
n00b
n00b


Joined: 27 Jan 2005
Posts: 17
Location: Dresden, Germany

PostPosted: Wed Apr 20, 2005 10:56 am    Post subject: Reply with quote

I forgot, to load your changes type
Code:
xmodmap <your_file>
.
This should work.

Maybe i will post my .Xmodmap this evening or tomorrow.

bye
Back to top
View user's profile Send private message
Denwid
n00b
n00b


Joined: 14 Apr 2005
Posts: 2

PostPosted: Wed Apr 20, 2005 3:35 pm    Post subject: Reply with quote

Mhh... I'm using it only in console mode, so i don't need an X keymap I guess. Sorry I didn't mention that earlier. Is there a tool like xev for the command line? That would be interesting i guess...
Thanks anyway.
_________________
VENI, VIDI, VICI
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Wed Apr 20, 2005 10:10 pm    Post subject: Reply with quote

Denwid wrote:
Is there a tool like xev for the command line?

Try showkey (from sys-apps/kbd).
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
Letscho
n00b
n00b


Joined: 27 Jan 2005
Posts: 17
Location: Dresden, Germany

PostPosted: Fri Apr 22, 2005 3:44 pm    Post subject: Reply with quote

Here is my .Xmodmap for my (german) ibook.

Code:

! ~/.Xmodmap
! Delete
keycode 108 = Delete
! Alt_Gr
keycode 115 = Mode_switch
! Alt_Gr keys (German Keyboard)
keycode 22 = BackSpace
keycode 24 = q Q at
keycode 26 = e E EuroSign
keycode 58 = m M mu
keycode 11 = 2 quotedbl twosuperior
keycode 12 = 3 section threesuperior
keycode 16 = 7 slash braceleft
keycode 17 = 8 parenleft bracketleft
keycode 18 = 9 parenright bracketright
keycode 19 = 0 equal braceright
keycode 35 = plus asterisk asciitilde
keycode 20 = ssharp question backslash
keycode 94 = less greater bar

I hope, it will help you. ;-)
Back to top
View user's profile Send private message
Patchoulol
n00b
n00b


Joined: 12 Mar 2004
Posts: 17

PostPosted: Fri Apr 22, 2005 5:59 pm    Post subject: Reply with quote

But is there anything for the Apple USB keyboard?
Back to top
View user's profile Send private message
dulrich
n00b
n00b


Joined: 23 Apr 2005
Posts: 46

PostPosted: Sat Apr 23, 2005 1:20 pm    Post subject: Reply with quote

If I give to keycode 115 = Mode_Switch I have an error:

Code:

Loading ./fr_CH-latin1.map.gz
unknown keysym 'Mode_switch'
./fr_CH-latin1.map.gz:85: syntax error
syntax error in map file
key bindings not changed

bash-2.05b# loadkeys fr_CH-latin1
Loading ./fr_CH-latin1.map.gz
unknown keysym 'Multi_key'
./fr_CH-latin1.map.gz:85: syntax error
syntax error in map file
key bindings not changed


If I write AltGr it's ok, but it doesn't work.... is there something to do?

I have a powermac with apple usb keyboard pro, fr_CH-latin1.map and xorg.
Back to top
View user's profile Send private message
enrique
Guru
Guru


Joined: 03 Sep 2002
Posts: 342
Location: Denmark

PostPosted: Sat Apr 23, 2005 8:53 pm    Post subject: Reply with quote

Using xmodmap is the right way to go, but I (don't know why) has allways done this:

http://www.rockhopper.dk/linux/powerbook/powerbook-titanium.html#chap9

It's for a danish keyboard, and I have maped the Apple/Option key to Alt_Gr, aka Mode_switch, and the Enter key to Delete.
_________________
Kind regards, enrique
Workstation,HTPC,Powerbook
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