Keyboard Layout für Apple Keyboard?
Hallo Leute, also ich habe eine Frage zu einem Keyboard. Ich habe ein neues Mac Keyboard und möchte dieses am PC nutzen. (Ich gebe zu, nicht ganz gewöhnlich, aber ich finde den Tasten Anschlag sehr gut bei diesen Keyboards) Das Keyboard funktioniert auch wunderbar, nur habe ich kein @ Zeichen, also wie kann ich mir das Zeichen auf eine Tastenkombination legen? Gruß Can
Am Montag, 30. August 2004 11:49 schrieb Can-Carlo Dörtbudak:
Hallo Leute, [...] Das Keyboard funktioniert auch wunderbar, nur habe ich kein @ Zeichen, also wie kann ich mir das Zeichen auf eine Tastenkombination legen?
War das nicht shift-apfel-1 oder alt-apfel-1 oder so?
Peter
Am Montag, den 30.08.2004, 12:09 +0200 schrieb Peter Baumgartner:
Am Montag, 30. August 2004 11:49 schrieb Can-Carlo Dörtbudak:
Hallo Leute, [...] Das Keyboard funktioniert auch wunderbar, nur habe ich kein @ Zeichen, also wie kann ich mir das Zeichen auf eine Tastenkombination legen?
War das nicht shift-apfel-1 oder alt-apfel-1 oder so?
Das ist lange her. Ist schon seit Jahren ALT-L. Gruß, R@tti :-) -- -o) fontlinge | Fontmanagement for Linux | Schriftenverwaltung in Linux /\\ http://freshmeat.net/projects/fontlinge/ _\_V http://www.gesindel.de https://sourceforge.net/projects/fontlinge/
Am Dienstag, 31. August 2004 00:00 schrieb Joerg Rossdeutscher:
Am Montag, den 30.08.2004, 12:09 +0200 schrieb Peter Baumgartner:
Am Montag, 30. August 2004 11:49 schrieb Can-Carlo Dörtbudak:
Hallo Leute,
[...]
Das Keyboard funktioniert auch wunderbar, nur habe ich kein @ Zeichen, also wie kann ich mir das Zeichen auf eine Tastenkombination legen?
War das nicht shift-apfel-1 oder alt-apfel-1 oder so?
Das ist lange her. Ist schon seit Jahren ALT-L.
Ist auch ein paar Jahre her, daß ich regelmäßig mit "angebissenen" gearbeitet habe ;-)) Peter
On 30 Aug 2004 at 11:49, Can-Carlo Dörtbudak wrote:
Hallo Leute,
also ich habe eine Frage zu einem Keyboard. Ich habe ein neues Mac Keyboard und möchte dieses am PC nutzen. (Ich gebe zu, nicht ganz gewöhnlich, aber ich finde den Tasten Anschlag sehr gut bei diesen Keyboards)
Das Keyboard funktioniert auch wunderbar, nur habe ich kein @ Zeichen, also wie kann ich mir das Zeichen auf eine Tastenkombination legen?
Hallo Can, geht es nicht einfach mit CTRL-ALT-Q? Gruß Daniel
Hallo, Am Mon, 30 Aug 2004, Can-Carlo Dörtbudak schrieb:
Hi Daniel,
geht es nicht einfach mit CTRL-ALT-Q? komischer Weise nicht. Ich habe keine Ahnung warum.
Konsole oder unter X? Fuer X: Was spuckt ein 'xmodmap -pke | grep at' aus? Was fuer einen keycode bekommst du in 'xev' wenn du AltGr allein, und was, wenn du AltGr-q drueckst? (bitte einen "Block" a la: KeyPress event, serial 28, synthetic NO, window 0x3c00001, root 0x26, subw 0x0, time 2990847485, (355,222), root:(388,591), state 0x10, keycode 116 (keysym 0xff7e, Mode_switch), same_screen YES, XLookupString gives 0 characters: "" KeyPress event, serial 28, synthetic NO, window 0x3c00001, root 0x26, subw 0x0, time 2990847700, (355,222), root:(388,591), state 0x2010, keycode 24 (keysym 0xe5, aring), same_screen YES, XLookupString gives 1 characters: "å" der erste Teil rauscht mehrfach vorbei, da du die Taste ja halten musst). Achtung: ich hab die "AltGr" Funktion Mode_switch auf den Windows-Tasten und auf Mode_switch-q eben 'å'. Fuer AltGr (rechts vom Space) bekommst du auf PC-Tastaturen den Keycode 113, ich vermute mal, deine Tastatur sendet da evtl. einen anderen keycode. BTW: funktionieren andere Zeichen, die du mit Mode_switch (aka AltGr) eingeben willst? Z.B. []\ usw.? Oder ist es nur das '@'? -dnh --
Ich hätte auch nie geglaubt, das es 10 Minuten dauern kann, bis jemand ohne Fehler einmal ein lspci -v fehlerfrei eingegeben hat. Hast Du auch erwähnt, daß man anschließend die RETURN-Taste drücken muß? [> Torsten Hallmann und Bernd Brodesser in suse-linux]
Hi David,
Konsole oder unter X? Habe nur für X und Konsole in X getestet. Fuer X:
Was spuckt ein 'xmodmap -pke | grep at' aus?
doertbud@workstation:~> xmodmap -pke | grep at keycode 22 = BackSpace Terminate_Server keycode 24 = q Q at Greek_OMEGA at Greek_OMEGA keycode 53 = x X guillemotright greater guillemotright greater keycode 91 = KP_Delete KP_Separator keycode 94 = less greater bar brokenbar bar brokenbar
Was fuer einen keycode bekommst du in 'xev' wenn du AltGr allein, und was, wenn du AltGr-q drueckst? (bitte einen "Block" a la: AltGr, bzw. rechter Apfel:
KeyRelease event, serial 30, synthetic NO, window 0x3200001, root 0x89, subw 0x3200002, time 1962733, (45,42), root:(46,791), state 0x50, keycode 116 (keysym 0xffec, Super_R), same_screen YES, XLookupString gives 0 bytes: AltGr und q: KeyPress event, serial 30, synthetic NO, window 0x3200001, root 0x89, subw 0x3200002, time 2025746, (46,35), root:(47,784), state 0x50, keycode 24 (keysym 0x71, q), same_screen YES, XLookupString gives 1 bytes: (71) "q" XmbLookupString gives 1 bytes: (71) "q" XFilterEvent returns: False
Achtung: ich hab die "AltGr" Funktion Mode_switch auf den Windows-Tasten und auf Mode_switch-q eben 'ĺ'. Fuer AltGr (rechts vom Space) bekommst du auf PC-Tastaturen den Keycode 113, ich vermute mal, deine Tastatur sendet da evtl. einen anderen keycode.
BTW: funktionieren andere Zeichen, die du mit Mode_switch (aka AltGr) eingeben willst? Z.B. []\ usw.? Oder ist es nur das '@'? Jetzt wo Du es erwähnst, das hatte ich noch gar nicht nachgesehen. Aber ie kleppen alle nicht. Ich habe noch nicht viel gemahct mit dem Rechner, aber spätestens beim nächsten TeX wäre es mir aufgefallen.
Gibt es überhaupt hoffnung für das Teil? Gruß Can
Hallo, Am Tue, 31 Aug 2004, Can-Carlo Dörtbudak schrieb:
Konsole oder unter X? Habe nur für X und Konsole in X getestet.
Ok. Auf der Konsole geht das nochmal anders (showkey / loadkeys).
Fuer X:
Was spuckt ein 'xmodmap -pke | grep at' aus?
doertbud@workstation:~> xmodmap -pke | grep at keycode 24 = q Q at Greek_OMEGA at Greek_OMEGA
Ok, das ist schonmal richtig.
Was fuer einen keycode bekommst du in 'xev' wenn du AltGr allein, und was, wenn du AltGr-q drueckst? (bitte einen "Block" a la: AltGr, bzw. rechter Apfel:
KeyRelease event, serial 30, synthetic NO, window 0x3200001, root 0x89, subw 0x3200002, time 1962733, (45,42), root:(46,791), state 0x50, keycode 116 (keysym 0xffec, Super_R), same_screen YES, XLookupString gives 0 bytes:
Und das ist flasch.
Gibt es überhaupt hoffnung für das Teil?
Aber klar! Teste zuerst mit: xmodmap -e 'keycode 116 = Mode_switch' Zurueck: xmodmap -e 'keycode 116 = Super_R' Wenn's klappt schreibe keycode 116 = Mode_switch in deine ~/.Xmodmap. Wenn du in KDE die Belegung eingestellt hast, dann musst du noch ein 'xmodmap ~/.Xmodmap' im Autostart unterbringen. Eigentlich sollte man auch noch die Modifier anpassen, maile dazu mal die Ausgabe von 'xmodmap -pm'. Achso: ich gehe davon aus, dass du "Super_R" nicht brauchst. -dnh -- Die Geschichte macht die Menschen, nicht die Menschen Geschichte. -- in "Highlander", die Serie
Hallo, Am Tue, 31 Aug 2004, Can-Carlo Dörtbudak schrieb:
Teste zuerst mit:
xmodmap -e 'keycode 116 = Mode_switch'
Zurueck:
xmodmap -e 'keycode 116 = Super_R'
Wenn ich den Befehl eingebe, dann ändert sich das Verhalten des Keyboards nicht. Muß ich noch etwas beachten, außer diesen Befehl?
Normal nicht. Was sagt denn 'xev' nachdem du (nur) xmodmap -e 'keycode 116 = Mode_switch' ausgefuehrt hast? -dnh -- "Sich selbst zu zitieren ist egozentrisch, selbstherrlich und unsympathisch. Und ausserdem rekursiv." (Marian Wild in dieser Sig.) [Marian Wild in dag°]
Hallo David, hier ein Ergebnis nach xmodmap -e 'keycode 116 = Super_R'
xmodmap -e 'keycode 116 = Mode_switch'
KeyPress event, serial 30, synthetic NO, window 0x3200001, root 0x89, subw 0x3200002, time 3765309, (55,44), root:(976,62), state 0x50, keycode 24 (keysym 0x71, q), same_screen YES, XLookupString gives 1 bytes: (71) "q" XmbLookupString gives 1 bytes: (71) "q" XFilterEvent returns: False KeyRelease event, serial 30, synthetic NO, window 0x3200001, root 0x89, subw 0x3200002, time 3765421, (55,44), root:(976,62), state 0x50, keycode 24 (keysym 0x71, q), same_screen YES, XLookupString gives 1 bytes: (71) "q" Gruß Can
Hallo, Am Wed, 01 Sep 2004, Can-Carlo Dörtbudak schrieb:
Hallo David,
hier ein Ergebnis nach xmodmap -e 'keycode 116 = Super_R'
xmodmap -e 'keycode 116 = Mode_switch'
KeyPress event, serial 30, synthetic NO, window 0x3200001, root 0x89, subw 0x3200002, time 3765309, (55,44), root:(976,62), state 0x50, keycode 24 (keysym 0x71, q), same_screen YES, XLookupString gives 1 bytes: (71) "q" XmbLookupString gives 1 bytes: (71) "q" XFilterEvent returns: False
Und wie sieht die Ausgabe zum "AltGr" druecken aus? Da schlaegt wohl noch der "Super"-Modifier durch, denn: state 0x0001 = Shift state 0x0002 = Caps_lock state 0x0004 = Ctrl state 0x0008 = Mod1 (normal Alt) state 0x0010 = Mod2 (normal Num_Lock) state 0x0020 = Mod3 (normal Meta) state 0x0040 = Mod4 (normal Super) state 0x0080 = Mod5 (normal Hyper) state 0x2000 = Mode_switch Diese States werden ggfs. addiert, z.B. alle +0x0010 wenn Num_lock mit Mod2 versehen ist und aktiv ist. Oder z.B.: Ctrl + Shift hat state 0x0005. Und Mode_switch + Mod1 + Strg + Shift hat state 0x200d (0x2000 + 0x0008 + 0x0004 + 0x0001). "state 0x50" ist also Mod4 + Mod1 (Super + Num_Lock). Achtung: die Modifier mod1 bis mod5 bekommen ihre Sematik durch das Keysym, an das sie gebunden werden. Folgendes: state 0x0008 = Mod1 (Num_Lock) state 0x0010 = Mod2 (Hyper) state 0x0020 = Mod3 (Super) state 0x0040 = Mod4 (Meta) state 0x0080 = Mod5 (Alt) waere also genauso gut moeglich. ==== man xkeycaps (reformatiert) ==== Modifier Bit Modifier bits are attributes which certain keysyms can have. Some modifier bits have predefined semantics: Shift, Lock, and Control. The remaining modifier bits (Mod1 through Mod5) have semantics which are defined by the keys with which they are associated. That is, the Control modifier means Control if it is attached to Control_L or Control_R, and is illegal elsewhere. But Mod1 means Meta if it is attached to Meta_L or Meta_R; but it would mean Alt if it were attached to Alt_L or Alt_R; or Hyper with Hyper_L or Hyper_R; and so on. (It could not, however, be attached to Control_L, since the Control modifier has already spoken for those keysyms.) If you're thinking that this is all senselessly complicated... you're right. ==== Diese manpage sollte man sowieso mal lesen. AFAIK ist die Keymap bei SUSE immer noch nicht sauber... Jedenfalls helfen dann 'xmodmap -pm' und xev zur Aufklaerung: $ xmodmap -pm xmodmap: up to 2 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x4e) control Control_L (0x25), Control_R (0x6d) mod1 Alt_L (0x40), Alt_R (0x71) mod2 Num_Lock (0x4d) mod3 Meta_R (0x75) mod4 Super_R (0x6e) mod5 $ xmodmap -e 'keycode 110 = Super_R' -e 'clear mod4' -e 'clear mod5' -e 'add mod5 = Super_R' $ xmodmap -pm [..] mod3 Meta_R (0x75) mod4 mod5 Super_R (0x6e) $ xmodmap -e 'keycode 110 = Super_R' -e 'clear mod4' -e 'clear mod5' -e 'add mod4 = Super_R' 'xev' zeigt jeweils "state" fuer "Super_R" mit Mod4 0x0040 und mit Mod5 0x0080. D.h. die Semantik "Super" ist wirklich unabhaengig vom jew. gewaehlten Modifier. Versuch's also mal mit: xmodmap -e 'keycode 116 = Mode_switch' -e 'clear Mod4' Zurueck: xmodmap -e 'keycode 116 = Super_R -e 'clear Mod4' \ -e 'add Mod4 = Super_R' BTW: das ganze kann man dann natuerlich in der ~/.Xmodmap festhalten und automatisieren, auch dann, wenn man KDE verwendet. -dnh -- "AOL has proven that they have the ability to send a CD or three to every chordate on the planet once a month." -- Douglas Henke "That's not even a requirement; my pet cactus was getting them for a while after I signed him up for a free magazine subscription." -- Joe Bramblett
Am Montag, 30. August 2004 18:41 schrieb Can-Carlo Dörtbudak:
Hi Daniel,
geht es nicht einfach mit CTRL-ALT-Q?
komischer Weise nicht. Ich habe keine Ahnung warum.
Das Apple Keyboard hat IIRC andere Scancodes und (auch das deutsche!) eine Belegung, die sich von der amerikanischen ableitet, aber modifiziert wurde, (warum auch immer). Bei Atari war das ähnlich. Peter
participants (5)
-
Can-Carlo Dörtbudak
-
Daniel Bauer
-
David Haller
-
Joerg Rossdeutscher
-
Peter Baumgartner