Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alt/Meta on Type5c keyboard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
creideiki
n00b
n00b


Joined: 19 Feb 2003
Posts: 61
Location: Linköping, Sweden

PostPosted: Tue Jun 21, 2005 11:30 pm    Post subject: Alt/Meta on Type5c keyboard Reply with quote

I have three Ultra10:s with Swedish type5c keyboards running Gentoo-sources 2.6.11-r8 and X.org 6.8.2-r2 with the SunFFB XAA patch. Initially, I used Ferris McCormick's sample xorg.conf from http://dev.gentoo.org/~fmccor/docs/xorg/xorg.conf/xorg.conf.html, with XkbLayout "se" instead of "en_US", but with that the bucky bit keys didn't work right.

According to "xev", the Meta keys gave keycodes for Super, and Emacs interpreted Alt as Meta. This is annoying, so I searched both these forums and Google for a while before I found that adding
Code:
Option      "XkbSymbols"  "sun/se(sun5)"
to the keyboard section of xorg.conf made it work.

This post is mainly here so that others can search for it, but I guess I might as well ask a few questions:

  • Why are the bucky bit keys wrong in the default setup? From what I can understand of /usr/lib/X11/xkb/keymap/sun/se, I'd think all Swedish type5 keymaps should already include symbols from sun/se(sun5).
  • Is adding the explicit XkbSymbols directive the Right Way to solve this?
  • What happens on a US keyboard? Should the sample configuration be changed to include this (with "us" instead of "se", obviously)?

Here's the entire keyboard section for completeness:
Code:
Section "InputDevice"
  Identifier  "Keyboard0"
  Driver      "kbd"
  Option      "XkbModel"    "type5"
  Option      "XkbRules"    "xorg"
  Option      "XkbLayout"   "se"
  Option      "XkbGeometry" "sun(type5)"
  Option      "XkbSymbols"  "sun/se(sun5)"
EndSection
Back to top
View user's profile Send private message
stalkerg
n00b
n00b


Joined: 12 Sep 2005
Posts: 18

PostPosted: Mon Sep 12, 2005 8:17 pm    Post subject: Reply with quote

i am use
Code:

    Driver   "kbd"
    Option   "XkbModel"   "type5"
    Option   "XkbRules"   "xorg"
    Option   "XkbLayout"   "us,ru"   
    Option   "XkbGeometry"   "sun(type5)"


and my script for change layout xkbch:
Code:

#!/bin/bash

if test -e ~/.xkbch; then
setxkbmap -layout $1
rm ~/.xkbch
echo "layout $1"
else
setxkbmap -layout $2
touch ~/.xkbch
echo "layout $2"
fi


use
Code:

xkbch "us" "ru"

and add to XFce hotkeys.
(ru,se,uk and etc)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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