Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Creating "Keyboard Models" in kde / X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 526
Location: Wales, UK

PostPosted: Sat Dec 22, 2012 8:12 am    Post subject: [Solved] Creating "Keyboard Models" in kde / X Reply with quote

I have purchased a steelseries 6GV2 keyboard, which I am very happy about. I do like the mechanical keys (who said I am retro! :D ).
Has anyone else here tuned the setup for this keyboard? I have two keys where the output is transposed and I would like to modify the setup to fix this (although my fingers will need retraining as they automatically go for the current locations!).

I'm off to study xkb configuration, and in the absence of information from anyone else, I will post the results here (or on the wiki) for others.


Last edited by paulj on Sun Dec 23, 2012 7:46 am; edited 1 time in total
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 526
Location: Wales, UK

PostPosted: Sat Dec 22, 2012 6:32 pm    Post subject: Reply with quote

Ok. For X configuration, at a user level:

I created a file ~/.XModmap with the following contents:
Code:
keycode  27 = r R r R sterling registered sterling registered r R sterling registered
keycode  51 = grave notsign grave notsign bar bar bar
keycode  49 = numbersign asciitilde numbersign asciitilde dead_grave dead_breve dead_grave

The first code (27) maps the sterling sign on the R key, the other two swap the two keys. The file is called through xmodmap:
Code:
xmodmap ~/.Xmodmap

for testing, and is called by xinitrc without any further configuration during xorg startup.

So I am happy with X, I now need to fix it in the virtual terminals, as there the original mapping is still functional!

Off for more study...!
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 526
Location: Wales, UK

PostPosted: Sun Dec 23, 2012 7:46 am    Post subject: Reply with quote

Top fix the console, I ended up copying /usr/share/keymaps/i386/qwerty/uk.map.gz to a new file (uk_ss6GV2.map.gz) and swapping the output for keycodes 41 and 43. I then updated /etc/conf.d/keymaps:
Code:
# Use keymap to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.
keymap="uk_ss6GV2"

This now works from boot up, and should be persistent through upgrades of sys-apps/kbd.

Edit: One point (but not problem) I didn't manage to clarify - the key codes for the two offending keys are different in X and the console.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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