Re: Keyboard layout – strange behaviour
Johnny Rosenberg
gurus.knugum at gmail.com
Fri Jan 16 17:03:42 UTC 2015
2014-11-02 14:31 GMT+01:00 Johnny Rosenberg <gurus.knugum at gmail.com>:
> 2014-11-02 13:06 GMT+01:00 Tom H <tomh0665 at gmail.com>:
>
>> On Sun, Nov 2, 2014 at 4:45 AM, Johnny Rosenberg <gurus.knugum at gmail.com>
>> wrote:
>> >
>> > I have had my own keyboard layout for years now, I think at least since
>> 2008
>> > or so. I call it ”Johnny Rosenberg” and it works perfectly. The actual
>> > keyboard (the hardware) is Swedish and I am too. Surprise…
>> >
>> > Today I finally did some changes since I was kind of annoyed about some
>> > character locations. The change involved two keys.
>> > Before change:
>> > 7-key (at the line above the ”qwerty” line):
>> > |
>> > Shift → /
>> > AltGr → {
>> > Shift+AltGr → /
>> >
>> > ¨-key (at the ”qwerty” line to the right of the ”å” key:
>> > ¨ (dead key)
>> > Shift → ^ (dead key)
>> > AltGr → ~
>> > Shift+AltGr → ˇ (dead key)
>> >
>> > Now I want to move three characters around a bit: /, | and ¨.
>> > After change:
>> > 7-key (at the line above the ”qwerty” line):
>> > /
>> > Shift → ¨ (dead key)
>> > AltGr → {
>> > Shift+AltGr → /
>> >
>> > ¨-key (at the ”qwerty” line to the right of the ”å” key:
>> > |
>> > Shift → ^ (dead key)
>> > AltGr → ~
>> > Shift+AltGr → ˇ (dead key)
>> >
>> >
>> > So I made the necessary changes to /usr/sgare/X11/xkb/symbols/se and I
>> even
>> > restarted the computer.
>> > I also selected another layout, then my own layout again and so on, but
>> no
>> > matter what I do (so far, at least), my old layout is still used. The
>> layout
>> > view thing tells me my new layout, but the result of pressing keys still
>> > gives me the old one!
>> >
>> > How do the system even know my old layout? It's removed from the
>> system! Or
>> > isn't it? I could easily change the layout like this in earlier Ubuntu
>> > versions, is something added now, like I need to ”compile” the files or
>> > something? At least that wasn't needed when I added my layout right
>> after
>> > doing a fresh install of Ubuntu 14.04. I just replaced the se file with
>> my
>> > own (and also the evdev.xml and evdev.lst, but there are no further
>> changes
>> > needed in those in this particular case).
>>
>> Try rebuilding the initramfs.
>>
>
> Okay, googled a bit to learn what that is and then did my first try, which
> looked like ”update-initramfs -u -k all”. Then restarted. Same problem:
> Logging in as me, I have the old layout (even though the view feature tells
> me that I have the new one), but when logging in as my wife I have the new
> layout.
>
> I guess I could create a new user and then delete the old one, but having
> to do that every time I want to change my keyboard layout? I don't think
> so… :P
>
>
> Thanks for trying.
>
>
> Kind regards
>
> Johnny Rosenberg
> ジョニー・ローゼンバーグ
>
>
>
I finally got a hint about this:
Just like I guessed, the files are compiled somehow and they seems to end
up as .xkm files in /var/lib/xkb.
Removing them and then restarting seems to force the system to recompile
them. Here's that directory after removing the .xkm files and then
restarting the computer:
totalt 82k
-rw-r--r-- 1 root root 621 2014-12-10 19:18 README.compiled
-rw-r--r-- 1 root root 13k 2015-01-16 17:48
server-2CC9C32FBE5DCE16CB821BF6944FA880F4CCBAFE.xkm
-rw-r--r-- 1 root root 13k 2015-01-16 17:47
server-523B07B557B20588EB459118C97940B7C9FF61EB.xkm
-rw-r--r-- 1 root root 14k 2015-01-16 17:48
server-A312F43D9AF1BBED519E194AC3574283BEE9E933.xkm
-rw-r--r-- 1 root root 14k 2015-01-16 17:47
server-A646B59F4F74A3FFC548206895170A0D2DC45913.xkm
-rw-r--r-- 1 root root 12k 2015-01-16 17:47
server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
After som more digging, I found that there is a xkbcomp command that seems
to compile xkb settings somehow, but I didn't understand how to use it
properly, so just removing the files and let the system compile them for me
seems to be my option for now.
Kind regards
Johnny Rosenberg
ジョニー・ローゼンバーグ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150116/2dc40565/attachment.html>
More information about the ubuntu-users
mailing list