You are not logged in.

#1 2012-08-12 18:59:12

joelteixeira
Member
From: Fortaleza - CE
Registered: 2012-08-12
Posts: 7

Keyboard Layout on console with systemd (UK International)

I have a UK keyboard and I'm trying to get "dead keys" working on console with a pure systemd instalation without sucess...

The reason is that I need characters like: áãàõéò and so on...

On X it works great with the following code on "/etc/X11/xorg.conf.d/10-evdev.conf"

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "XkbLayout" "gb"
        Option "XkbVariant" "intl"
EndSection


but I'm not finding a way to make it work on console with systemd, searching for documentation on google didn't help me either.

Here my "/etc/vconsole.conf" file right now:
KEYMAP=uk
FONT=lat9w-16
FONT_MAP=8859-1_to_uni

Offline

#2 2012-08-12 20:37:58

rutgerr
Member
From: São Paulo, SP - Brasil
Registered: 2011-06-06
Posts: 72

Re: Keyboard Layout on console with systemd (UK International)

try the us-acentos

Last edited by rutgerr (2012-08-12 20:47:30)

Offline

#3 2012-08-12 20:53:02

joelteixeira
Member
From: Fortaleza - CE
Registered: 2012-08-12
Posts: 7

Re: Keyboard Layout on console with systemd (UK International)

@rutgerr,

Thanks, it could be an workaround but is not the solution I expected cause it mess with all other keys (~@|"£!) since UK and US have a different layout. Before systemd everything use to work as expected when using rc.conf

Offline

#4 2012-08-12 21:07:17

rutgerr
Member
From: São Paulo, SP - Brasil
Registered: 2011-06-06
Posts: 72

Re: Keyboard Layout on console with systemd (UK International)

Well, if works before there's no reason to don't work now
Try a setup in  this way:

KEYMAP=uk
FONT=
FONT_MAP=

Offline

#5 2012-08-12 21:19:26

joelteixeira
Member
From: Fortaleza - CE
Registered: 2012-08-12
Posts: 7

Re: Keyboard Layout on console with systemd (UK International)

Your suggestions was the last one I tried, but again no changes. Maybe before systemd the system was using "/etc/X11/xorg.conf.d/10-evdev.conf" globally.

Also, I tried to insert XKBVARIANT (the same parameter from 10-evdev) on "/etc/vconsole.conf". but no luck:

KEYMAP=uk
FONT=
FONT_MAP=
XKBVARIANT=intl

It's kinda of ironic how is so simple to have an international layout for an american keyboard and so tricky to get the same result on a UK one.

Offline

#6 2012-08-12 21:26:02

joelteixeira
Member
From: Fortaleza - CE
Registered: 2012-08-12
Posts: 7

Re: Keyboard Layout on console with systemd (UK International)

I'll try to unpack the uk.map.zip and edit to insert rules for dead keys like we have already on us-acentos.map.zip. (can't think on another solution right now)

systemd is not exacly new (opensuse 12.1 was using it on lauch), but oh my... what a poor documentation.

Offline

#7 2012-08-12 21:34:42

rutgerr
Member
From: São Paulo, SP - Brasil
Registered: 2011-06-06
Posts: 72

Re: Keyboard Layout on console with systemd (UK International)

Offline

#8 2012-08-13 11:39:51

oupsemma
Member
Registered: 2010-01-01
Posts: 70

Re: Keyboard Layout on console with systemd (UK International)

Have you tried
$ setxkbmap -layout gb -variant intl

That's what I'm using on a UK keyboard to get the French accents.
I've put it into my Openbox autostart script, as when I was using it in the /etc/X11/xorg.conf.d/10-evdev.conf it kept being wiped away when updates occurred.

With it,  No need for a compose key; typing apostrophe followed by a vowel will give you the accented vowel, the same with grave key, umlaut key, caret key, tilde key.
Just have to remember that a real apostrophe will have to be followed by a space.

Offline

#9 2012-08-13 20:37:57

mijenix
Member
From: Switzerland
Registered: 2007-04-19
Posts: 16

Re: Keyboard Layout on console with systemd (UK International)

you can also use xmodemap to create your own layout

First write out your current xmodmap:

xmodmap -pke > ~/.Xmodmap

then edit the file I use alt + a = ä, etc.

it looks like this:

keycode  30 = u U udiaeresis Udiaeresis
keycode  32 = o O odiaeresis Odiaeresis
keycode  38 = a A adiaeresis Adiaeresis

Hope it helps to customize your layout big_smile

cheers
mijenix

Offline

#10 2012-08-14 01:19:58

joelteixeira
Member
From: Fortaleza - CE
Registered: 2012-08-12
Posts: 7

Re: Keyboard Layout on console with systemd (UK International)

@oupsemma thanks, maybe I wasn't clear cause my english sometimes fails smile but the issue I'm describing is console (terminal) related only (ctrl+alt+F1...6). When using a terminal like xterm / yakuake on X (KDE here) it works perfectly. Setxkbmap sets keyboard setup for X and it's working great already.

@mijenix thanks for all the details, but I think the above applies to xmodmap too (X related)

I'll try just to keep some distance from terminal (virtual console) from now on guys. I can use xterm anyway smile Thanks for all replies, I just can't think on any other distro community that's rocks like archlinux.

Offline

Board footer

Powered by FluxBB