2010, June 02 (Wed) | |
Linux – SUN UNIX Keyboard & Linux Gnome | |
---|---|
I shot a UNIX keyboard on ebay. Of course, it “just works” when you plug it in. However, I want it to work properly, that is, the special keys on the left should show their labels when assigning them e.g. in gnome-keybinding-properties. To do that, it is apparently necessary to edit the xkb rules & xml files which are found in There is a “Sun Type 5/6” Layout available in gnome-keyboard-properties, but it mysteriously renders the BackSpace key unusuable — this might be a particular bug of my installation, any hints appreciated. (has apparently been fixed in this commit, which probably means fixed in xkeyboard-config 1.8) Update; the old solution provided problematic (it has been hidden below.) Here is the new approach: Fix the BackSpace key with this patch:
Fix the “too old” AltGr mapping (XOrg changed it from Mode_switch to ISO_Level3_Shift, which is defined in the level3 symbols:)
Shuffle the modifier maps:
Gnome wants its so-called “<Alt>”-binding on Mod1. I put the ♦Meta-keys there, because they’re in the right place. It further requires Mod2 to be Num_Lock, otherwise it is not happy and a lot of modifier keys stop working when Num_Lock is enabled. (Only the Mod2 is ignored when calculating the overlaps.) The former Mode_switch is mapped to Mod5 by the include above. With this configuration, the following is now an useful addition to your
That way, Alt can be used to generate “Alternate keys” and ♦Meta works for key movement. (X)Emacs on the other hand wants all kinds of “Meta” to be on one modifier, and (optionally) all kinds of “Alt” on the same, or another. My previous setup was causing one Meta key and the Alt key mapped to Mod1, and another one to Mod4. With the modifier mappings above, Meta correctly generates M- and Alt — generates A- (Super, aka Win-key, would get interpreted as S- in XEmacs.) I suspect since I have not bound any <Super> keys, Gnome-Do is now confused and launches on a simple press of the Space-bar! Makes you unable to types spaces. I don’t know how to fix this. Trying to assign Alt+space as the Summon Key fails — it only displays “space”… since I don’t use Gnome-Do anyway, I removed it for now using I wanted to add the UNIX layout to the keyboard image display in the Gnome keyboard properties, so I made a new layout in the rules directory: 1. Added a new model to
2. Do the same for
3. Add rules to
Fix a bug in the
Modify the ctrl:nocaps rule to make CapsLock an additional right Control (the default key for example in VirtualBox) with this patch: (optional)
Fix the geometry (caps and control are swapped):
Other problems Unfortunately, I cannot get the Compose LED to light up. Gnome doesn’t accept the SunFront keybinding to bring windows to the front — what’s up with that?? It works when I just assign it, but stops working on next login. As a workaround, I could get it to work by setting It is not neccessary to choose any options in the gnome-keyboard-properties. |
|
Continue reading “SUN UNIX Keyboard & Linux Gnome” » | |
2010, June 18 (Fri) | |
Programmierung – int log2 in gcc / c++ | |
I wonder why this result isn’t on google’s #1 for int log2 gcc. To get the integer logarithm to the base of 2, try
|
|
Navigation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
« | (older) | (newer) | » | |||||||
« | May 2010 | « | Main | ‹ | All articles list (Archives) | › | Search | » | July 2010 | » |